/* ============================================================
   KURZO — AUTH (logins trabajador + empresa)
   Paleta y tipografías coherentes con landing.css
   ============================================================ */

:root {
    --auth-navy: #0f2240;
    --auth-navy-2: #1e3a5f;
    --auth-orange: #ea580c;
    --auth-orange-2: #f97316;
    --auth-bg: #ffffff;
    --auth-bg-alt: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-text: #0f172a;
    --auth-text-muted: #64748b;
    --auth-shadow-lg: 0 20px 50px -12px rgba(15,34,64,.2);
    --auth-shadow-sm: 0 1px 3px rgba(15,34,64,.06);
}

body.auth-body {
    margin: 0; min-height: 100vh;
    display: flex; flex-direction: column;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--auth-text);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%);
    -webkit-font-smoothing: antialiased;
}

/* ───────── Navbar superior (mini) ───────── */
.auth-nav {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--auth-border);
}
.auth-nav-inner {
    max-width: 1180px; margin: 0 auto; padding: .75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.auth-brand {
    display: flex; align-items: center; gap: .55rem;
    color: var(--auth-navy); font-weight: 700; font-size: 1.1rem;
    text-decoration: none; letter-spacing: -0.01em;
}
.auth-brand img { height: 32px; width: auto; display: block; }
.auth-back {
    color: var(--auth-text-muted); font-size: .88rem; font-weight: 500;
    text-decoration: none; padding: .45rem .8rem; border-radius: 8px;
    transition: background .2s, color .2s;
}
.auth-back:hover { background: var(--auth-bg-alt); color: var(--auth-navy); }

/* ───────── Main + footer ───────── */
.auth-main {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem; position: relative; overflow: hidden;
}
.auth-main::before, .auth-main::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .4; pointer-events: none; z-index: 0;
}
.auth-main::before {
    top: -100px; left: -80px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(234,88,12,.3), transparent 70%);
}
.auth-main::after {
    bottom: -120px; right: -100px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(15,34,64,.15), transparent 70%);
}
.auth-footer {
    text-align: center; padding: 1.2rem 1rem; color: var(--auth-text-muted);
    font-size: .82rem; border-top: 1px solid var(--auth-border);
    background: var(--auth-bg);
}
.auth-footer a { color: var(--auth-text-muted); text-decoration: none; margin: 0 .25rem; }
.auth-footer a:hover { color: var(--auth-orange); }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN TRABAJADOR (override .login-page / .login-card)
   ═══════════════════════════════════════════════════════════════════ */
.auth-body .login-page {
    background: transparent; min-height: auto;
    padding: 0; display: block; width: 100%; max-width: 560px;
    position: relative; z-index: 1;
}
.auth-body .login-bg { display: none !important; }

.auth-body .login-card {
    background: #fff; border-radius: 22px;
    box-shadow: var(--auth-shadow-lg); border: 1px solid var(--auth-border);
    padding: 2.5rem 2.25rem 2rem; width: 100%;
    max-width: none;
}
.auth-body .login-header { text-align: center; margin-bottom: 1.75rem; }
.auth-body .login-icon {
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; background: none; width: auto; height: auto;
    border-radius: 0; box-shadow: none;
}
.auth-body .login-icon img { height: 68px !important; width: auto; }
.auth-body .login-title {
    font-family: 'Playfair Display', serif !important; font-weight: 700 !important;
    font-size: 2rem !important; line-height: 1.15 !important; letter-spacing: -0.02em;
    color: var(--auth-navy) !important; margin: 0 0 .4rem !important;
}
.auth-body .login-title em {
    color: var(--auth-orange); font-style: italic; font-weight: 700;
}
.auth-body .login-subtitle {
    color: var(--auth-text-muted) !important; font-size: .95rem !important;
    margin: 0 !important; font-family: 'DM Sans', sans-serif;
}

.auth-body .step-label {
    font-size: .72rem !important; color: var(--auth-orange) !important;
    font-weight: 700 !important; letter-spacing: .12em !important;
    text-transform: uppercase; margin-bottom: 1rem !important;
}

.auth-body .form-group label {
    font-size: .85rem; font-weight: 600; color: var(--auth-navy);
    margin-bottom: .4rem; display: block;
}
.auth-body .form-group input,
.auth-body .form-group select {
    font-family: 'DM Sans', sans-serif; font-size: .95rem;
    padding: .7rem .9rem; border: 1.5px solid var(--auth-border);
    border-radius: 10px; background: #fff; color: var(--auth-text);
    transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
.auth-body .form-group input:focus,
.auth-body .form-group select:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}
.auth-body .field-hint {
    font-size: .78rem; color: var(--auth-text-muted);
    margin: .4rem 0 0;
}
.auth-body .req { color: var(--auth-orange); }
.auth-body .opt { color: var(--auth-text-muted); font-weight: 400; }

/* Botones */
.auth-body .btn-primary {
    background: var(--auth-orange); color: #fff;
    padding: .7rem 1.2rem; border: none; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .95rem;
    cursor: pointer;
    box-shadow: 0 6px 16px -4px rgba(234,88,12,.4);
    transition: background .2s, transform .15s, box-shadow .2s;
}
.auth-body .btn-primary:hover:not(:disabled) {
    background: var(--auth-orange-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(234,88,12,.5);
}
.auth-body .btn-primary:disabled {
    background: #cbd5e1; color: #fff;
    box-shadow: none; cursor: not-allowed;
}
.auth-body .btn-full { width: 100%; }
.auth-body .btn-cta { padding: .85rem 1.2rem; font-size: 1rem; border-radius: 12px; }

.auth-body .btn-ghost {
    background: transparent; color: var(--auth-text-muted);
    border: 1.5px solid var(--auth-border); border-radius: 10px;
    padding: .55rem 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600;
    font-size: .88rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.auth-body .btn-ghost:hover {
    background: var(--auth-bg-alt); color: var(--auth-navy); border-color: var(--auth-navy);
}
.auth-body .btn-sm { font-size: .82rem; padding: .35rem .8rem; }

/* Empresa preview, cursos, empleado banner — detalles visuales */
.auth-body .empresa-preview {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
}
.auth-body .empresa-ok { color: var(--auth-orange); }
.auth-body .empleado-found-banner {
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.3);
    color: #065f46;
    border-radius: 10px;
}
.auth-body .nit-error {
    background: #fef2f2; border: 1px solid #fecaca;
    color: #991b1b; border-radius: 10px;
}

.auth-body .alert-error {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
    padding: .7rem 1rem; border-radius: 10px; font-size: .9rem;
    margin-bottom: 1rem;
}

.auth-body .login-footer {
    text-align: center; font-size: .88rem; color: var(--auth-text-muted);
    margin-top: 1.5rem;
}
.auth-body .login-footer a {
    color: var(--auth-orange); font-weight: 600; text-decoration: none;
}
.auth-body .login-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN ADMIN (override .admin-login-page / .admin-login-card)
   ═══════════════════════════════════════════════════════════════════ */
.auth-body .admin-login-page {
    background: transparent; min-height: auto;
    padding: 0; display: block; width: 100%; max-width: 460px;
    position: relative; z-index: 1;
}
.auth-body .admin-login-card {
    background: #fff; border-radius: 22px;
    box-shadow: var(--auth-shadow-lg); border: 1px solid var(--auth-border);
    padding: 2.5rem 2.25rem 2rem; width: 100%;
    max-width: none;
}
.auth-body .admin-login-header { text-align: center; margin-bottom: 1.75rem; }
.auth-body .admin-login-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 68px; height: 68px; margin: 0 auto 1rem;
    background: rgba(234,88,12,.1); color: var(--auth-orange);
    border-radius: 18px; font-size: 2rem;
    box-shadow: none;
}
.auth-body .admin-login-header h1 {
    font-family: 'Playfair Display', serif !important; font-weight: 700 !important;
    font-size: 1.8rem !important; color: var(--auth-navy) !important;
    margin: 0 0 .3rem !important; letter-spacing: -0.02em;
}
.auth-body .admin-login-header p {
    color: var(--auth-text-muted) !important; font-size: .92rem !important;
    margin: 0 !important;
}
.auth-body .login-back {
    display: block; text-align: center; color: var(--auth-text-muted);
    font-size: .88rem; text-decoration: none; margin-top: 1.25rem;
    padding: .5rem; border-radius: 8px; transition: background .2s, color .2s;
}
.auth-body .login-back:hover { background: var(--auth-bg-alt); color: var(--auth-orange); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .auth-nav-inner { padding: .6rem 1rem; }
    .auth-brand span { display: none; }
    .auth-body .login-card,
    .auth-body .admin-login-card {
        padding: 1.8rem 1.3rem 1.5rem; border-radius: 18px;
    }
    .auth-body .login-title { font-size: 1.6rem !important; }
    .auth-body .admin-login-header h1 { font-size: 1.4rem !important; }
}
