/* ==========================================================================
   GQ VIAGENS — ESTILOS DA TELA DE LOGIN
   Design premium, glassmorphism, micro-animações
   ========================================================================== */

/* --- LOGIN PAGE BODY --- */
.login-page {
    background: linear-gradient(135deg, #0a2e4d 0%, #0077B6 40%, #00B4D8 70%, #90E0EF 100%);
    min-height: 100vh;
}

/* --- LOGIN MAIN --- */
.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 100px 20px 40px;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    z-index: 1;
}

/* --- DECORAÇÃO DE FUNDO --- */
.login-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    left: -120px;
    animation: floatCircle 25s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 50%;
    animation: floatCircle 18s ease-in-out infinite 5s;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* --- LOGIN CARD (GLASSMORPHISM) --- */
.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: cardAppear 0.6s ease-out;
    z-index: 1;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- HEADER DO CARD --- */
.login-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cor-secundaria), var(--cor-secundaria-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 151, 112, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 151, 112, 0.4); }
    50% { box-shadow: 0 8px 36px rgba(255, 151, 112, 0.6); }
}

.login-card-header h1 {
    font-family: var(--fonte-titulos);
    font-size: 1.75rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 300;
}

/* --- FORMULÁRIO --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-family: var(--fonte-principal);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    border-color: var(--cor-secundaria);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 151, 112, 0.2);
}

/* --- PASSWORD TOGGLE --- */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* --- MENSAGENS DE ERRO E SUCESSO --- */
.login-error,
.login-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-error.show,
.login-success.show {
    opacity: 1;
    max-height: 80px;
    margin-top: -8px;
}

.login-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff8a95;
}

.login-error i {
    color: #ff6b7a;
    flex-shrink: 0;
}

.login-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #7dff9a;
}

.login-success i {
    color: #5cff7e;
    flex-shrink: 0;
}

/* --- BOTÃO DE LOGIN --- */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--cor-secundaria), var(--cor-secundaria-hover));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--fonte-titulos);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 151, 112, 0.3);
    margin-top: 8px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 151, 112, 0.45);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- FOOTER DO LOGIN --- */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.login-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.login-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-1px);
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .login-main {
        padding: 90px 16px 30px;
    }
    
    .login-card {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .login-card-header h1 {
        font-size: 1.5rem;
    }
    
    .login-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 28px 18px;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
    
    .login-btn {
        padding: 14px;
    }
}
