/* ============================================================
   LOGIN.CSS — BoxBoxCRM Tela de Login
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* --- LADO ESQUERDO: Imagem Automotiva --- */
.login-visual {
    position: relative;
    overflow: hidden;
    background: #000;
}
.login-visual-bg {
    position: absolute; inset: 0;
    background: url('../assets/backgrounds/login-hero.jpg') center/cover no-repeat;
    opacity: 0.7;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}
.login-visual-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,13,15,0.6) 0%, rgba(59,130,246,0.1) 100%);
}
.login-visual-content {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}
.login-tagline {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 12px;
}
.login-tagline span { color: var(--accent-blue); }
.login-tagline-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

/* --- LADO DIREITO: Formulário --- */
.login-form-side {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 48px;
    background: var(--bg-surface);
    position: relative;
}
.login-form-box {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease both;
}
.login-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 40px;
}
.login-logo img {
    height: 40px;
    object-fit: contain;
}
.login-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.login-logo-text span { color: var(--accent-blue); }

.login-title { font-size: 1.75rem; margin-bottom: 6px; }
.login-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

.login-form { display: flex; flex-direction: column; gap: 20px; }

.remember-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.875rem;
}
.remember-check {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary); cursor: pointer;
}
.remember-check input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 15px; height: 15px;
}

.login-btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* --- ALERTA DE ERRO --- */
.login-alert {
    display: flex; align-items: center; gap: 10px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #ef4444;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease;
}
.login-alert::before { content: '⚠️'; }
.login-alert.hidden { display: none; }

/* --- FOOTER --- */
.login-footer {
    position: absolute; bottom: 24px;
    font-size: 0.75rem; color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-form-side { padding: 32px 24px; }
}
