* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 300px;
    height: auto;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

.loading-spinner {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 5px solid #e5e7eb;
    border-top-color: #0068FF;
    border-radius: 50%;
    animation: spin-loading 1s linear infinite;
}

@keyframes pulse-loading {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin-loading {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: auto;
    background: linear-gradient(315deg, #0050CC 3%, #0068FF 38%, #3385FF 68%, #6BA3FF 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.wave {
    background: rgb(255 255 255 / 15%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.5;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.4;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }
    25% {
        transform: translateX(-25%);
    }
    50% {
        transform: translateX(-50%);
    }
    75% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(1);
    }
}

.city-marquee {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.city-track {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite;
}

.city-image {
    height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.robot-container {
    position: absolute;
    z-index: 11;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

.robot-floating {
    height: auto;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    display: block;
}

.robot-fechado {
    background-color: rgba(26, 46, 84, 1);
    position: absolute;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    animation: blink 4s infinite;
    transform-origin: top center;
}

@keyframes blink {
    0%, 47%, 53%, 95%, 100% {
        opacity: 0;
        transform: scaleY(0);
    }
    48%, 52% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    max-width: 240px;
    height: auto;
}

.welcome-text {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-label i {
    color: #0068FF;
    margin-right: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
}

.input-field {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f9fafb;
}

.input-field:focus {
    border-color: #0068FF;
    background: #ffffff;
}

.input-field::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 18px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0068FF;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: #0068FF;
    border-color: #0068FF;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 11px;
}

.checkbox-label {
    font-size: 14px;
    color: #6b7280;
}

.forgot-password {
    font-size: 14px;
    color: #0068FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0050CC;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: #0068FF;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
}

.btn-login:hover {
    background: #0050CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 8px;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.register-link a {
    color: #0068FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #0050CC;
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 28px;
        border-radius: 28px;
    }

    .welcome-text {
        font-size: 24px;
    }

    .logo {
        max-width: 180px;
    }

    .city-image {
        height: 80px;
    }

    .city-track {
        animation: marquee 40s linear infinite;
    }

    .robot-container {
        display: none;
    }
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    min-width: 300px;
    max-width: 500px;
    transform: translateX(500px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 24px;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success i {
    color: #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error i {
    color: #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info i {
    color: #3b82f6;
}

.notification span {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .notification {
        min-width: auto;
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

/* reCAPTCHA */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.recaptcha-container > div {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 768px) {
    .recaptcha-container > div {
        transform: scale(0.85);
    }
}