/* ==========================================================================
   NOVRA LOGIN PANEL vFinal
   UX/UI: Luxury, Glassmorphism, Consistent Animations
   ========================================================================== */

/* --- 1. OVERLAY (Fundo Escuro com Blur) --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Escurecimento suave */
    backdrop-filter: blur(5px);      /* Efeito de vidro fosco premium */
    -webkit-backdrop-filter: blur(5px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- 2. PAINEL LATERAL (Slide-in) --- */
.login-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px; /* Largura padrão desktop */
    height: 100vh;
    background: #ffffff;
    z-index: 4001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    
    /* Estado inicial: fora da tela à direita */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    display: flex;
    flex-direction: column;
}

.login-panel.active {
    transform: translateX(0);
}

/* --- 3. CABEÇALHO & BOTÃO DE FECHAR (Consistência com Menu) --- */
.login-panel__header {
    padding: 20px 30px;
    height: 80px; /* Mesma altura do Header do site */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
}

.login-panel__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #000;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Botão de Fechar Unificado */
.login-panel__close {
    background: transparent;
    border: none;
    cursor: pointer;
    
    /* Tamanho e Flex para centrar o SVG */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #000;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    
    /* Remove padding default do browser */
    padding: 0;
    margin-right: -10px; /* Alinhamento visual à direita */
}

/* Animação idêntica ao Menu Principal */
.login-panel__close:hover {
    transform: rotate(90deg); /* Rotação suave */
    opacity: 0.7;
}

.login-panel__close svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px; /* Traço fino elegante */
}

/* --- 4. CORPO DO PAINEL --- */
.login-panel__body {
    padding: 40px 30px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
}

.login-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

/* --- 5. FORMULÁRIOS & INPUTS --- */
.novra-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    height: 50px; /* Altura confortável para toque */
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0; /* Design quadrado Luxury */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; /* 16px evita zoom no iPhone */
    color: #000;
    background: #ffffff;
    transition: all 0.3s ease;
    
    /* Remove estilos nativos */
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus {
    background: #fff;
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.form-group input::placeholder {
    color: #ccc;
    font-weight: 300;
}

/* Utilitário de Senha */
.password-wrapper {
    position: relative;
}

.toggle-pass {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toggle-pass:hover { color: #000; }

/* Links Auxiliares */
.forgot-pass-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #666;
    text-decoration: underline;
    align-self: flex-start;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.forgot-pass-link:hover { color: #000; }

/* --- 6. BOTÕES PADRONIZADOS (Consistência com Checkout/PDP) --- */
.form-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Base Comum */
.btn-primary, .btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 54px; /* Altura padrão dos botões grandes do site */
    
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Botão Primário (Preto Sólido) */
.btn-primary {
    background-color: #000;
    color: #ffffff;
    border-color: #000;
}

.btn-primary:hover {
    background-color: #333333; /* Cinza Chumbo (Padrão do Checkout) */
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombra suave de profundidade */
}

/* Botão Secundário (Outline/Ghost) */
.btn-secondary {
    background-color: transparent;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background-color: #000; /* Fundo vira Preto Sólido */
    border-color: #000;
    color: #ffffff;            /* Texto vira Branco */
    transform: translateY(-1px);
}

/* --- 7. DIVISORES & RODAPÉ DO PAINEL --- */
.mobile-divider {
    border: 0;
    height: 1px;
    background: #f0f0f0;
    margin: 30px 0;
}

.register-section {
    text-align: center;
}

.register-section .section-title {
    margin-bottom: 1rem;
    color: #000;
}

/* --- 8. RESPONSIVIDADE (Mobile First) --- */
@media (max-width: 768px) {
    .login-panel {
        max-width: 100%; /* Ocupa tela toda */
    }

    .login-panel__header {
        padding: 15px 20px;
    }

    .login-panel__body {
        padding: 30px 20px;
    }

    .btn-primary, .btn-secondary {
        font-size: 0.75rem; /* Ligeiramente menor em mobile */
    }
}