/* ARQUIVO: assets/css/login.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body, #f3f4f6);
}

.login-screen {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

/* Lado Esquerdo - IMAGEM DE FUNDO NO RETÂNGULO GRANDE */
.login-visual {
    flex: 1.2;
    /* Coloque o link da sua imagem de fundo aqui abaixo 👇 */
    background-image: url('../../img/frente.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
}

/* O EFEITO DE VIDRO QUE COBRE A IMAGEM INTEIRA */
.login-visual::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(15, 23, 42, 0.55); /* Escurece um pouco a imagem para dar contraste */
    backdrop-filter: blur(12px); /* O desfoque do vidro sobre a imagem */
    -webkit-backdrop-filter: blur(12px); /* Para iPhone/Safari */
    z-index: 1;
}

/* O conteúdo fica flutuando POR CIMA do vidro */
.visual-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visual-quote-container {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 25px;
    font-style: italic;
    min-height: 80px; 
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra para o texto pular da tela */
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent-color, #818cf8);
    vertical-align: middle;
    margin-left: 4px;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.visual-footer {
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Lado Direito - Formulário */
.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card, #ffffff);
    padding: 40px;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main, #111827);
    margin: 0 0 8px 0;
}

.login-subtitle {
    color: var(--text-muted, #6b7280);
    font-size: 1rem;
    margin: 0;
}

.login-input-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main, #374151);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg, #f9fafb);
    color: var(--text-main, #111827);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color, #1e293b);
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
    background: var(--bg-card, #ffffff);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
}

.remember-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color, #1e293b);
    border-radius: 4px;
}

.forgot-link {
    color: var(--accent-color, #1e293b);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.forgot-link:hover { opacity: 0.7; }

.login-btn {
    width: 100%;
    background-color: var(--accent-color, #1e293b);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.register-link {
    color: var(--accent-color, #1e293b);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}
.register-link:hover { opacity: 0.8; }

/* RESPONSIVIDADE MOBILE (Mantém o painel de vidro em cima) */
@media (max-width: 900px) {
    .login-screen {
        flex-direction: column; 
    }
    
    .login-visual {
        flex: none;
        padding: 40px 20px 60px 20px; 
        min-height: 250px; /* Dá espaço para ver a imagem no topo */
    }
    
    .visual-quote-container {
        font-size: 1.4rem; 
        min-height: 60px;
        margin-bottom: 15px;
    }
    
    .login-form-wrapper {
        flex: 1;
        padding: 30px 20px;
        border-radius: 30px 30px 0 0; 
        margin-top: -30px; 
        z-index: 20;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    }
}