/* ─── Auth pages specific styles ─────────────────────────────────────────── */
.auth-body {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: stretch;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* Left brand panel */
.auth-brand {
    background: linear-gradient(135deg, light-dark(#f4f9f6, #05100c) 0%, light-dark(#e6f2eb, #081a13) 50%, light-dark(#e1eee6, #0b241a) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
}
.brand-content { position: relative; z-index: 2; }
.brand-logo {
    display: flex; align-items: center; gap: 1rem;
    font-size: 1.5rem; font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* Logo icon — color y tamaño definidos aquí, no en el PHP */
.auth-logo-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-logo-icon svg { width: 48px; height: 48px; display: block; }

.brand-headline {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.brand-features {
    list-style: none;
    display: flex; flex-direction: column; gap: .85rem;
}
.brand-features li {
    display: flex; align-items: center; gap: .75rem;
    font-size: .9rem; color: var(--text-secondary);
}
.feat-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feat-icon svg { width: 100%; height: 100%; display: block; }

/* Orbs */
.brand-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .35;
}
.orb-1 { width: 300px; height: 300px; background: var(--accent); top: -100px; right: -80px; }
.orb-2 { width: 200px; height: 200px; background: var(--emerald); bottom: 80px; left: -60px; }
.orb-3 { width: 150px; height: 150px; background: var(--amber); bottom: -50px; right: 100px; }

/* Right form panel */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-surface);
    position: relative;
}
.auth-card {
    width: 100%;
    max-width: 420px;
}
.auth-card-header { margin-bottom: 2rem; }
.auth-card-header h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: .4rem; }
.auth-card-header p  { color: var(--text-muted); font-size: .9rem; }

.auth-form .form-group { margin-bottom: 1.4rem; }
.auth-hint {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .78rem;
    color: var(--text-muted);
}
.auth-hint code {
    background: var(--bg-elevated);
    padding: .1rem .35rem;
    border-radius: .25rem;
    font-size: .78rem;
    color: var(--accent-light);
}

/* Theme toggle (login page) — reemplaza el uso de utilidades Tailwind inline */
.theme-toggle-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: .45rem;
    transition: background var(--transition), color var(--transition);
}
.theme-toggle-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* ─── Responsive auth ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form-panel { min-height: 100vh; }
}

@media (max-width: 480px) {
    .auth-form-panel { padding: 1.25rem; }
    .auth-card-header h2 { font-size: 1.5rem; }
    .auth-card-header p { font-size: 0.85rem; }
}
