:root {
    --pkf-ink: #1c1c22;
    --pkf-ink-dark: #16161b;
    --pkf-burgundy: #8a1538;
    --pkf-burgundy-light: #c2436a;
    --pkf-gold: #b8893b;
    --primary: var(--pkf-burgundy);
    --primary-dark: var(--pkf-ink);
    --bg: #f5f3f0;
    --text: #1c1c22;
    --muted: #6b7785;
    --danger: #c33;
    --warning: #b07a00;
    --border: #e4e0da;
    --card: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 20%, rgba(194, 67, 106, 0.28), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(138, 21, 56, 0.45), transparent 50%),
        linear-gradient(135deg, var(--pkf-ink-dark) 0%, var(--pkf-ink) 50%, var(--pkf-burgundy) 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ---------- Tarjeta simple (setup / cambiar contraseña) ---------- */
.auth-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(28, 28, 34, 0.45);
    padding: 36px;
    width: 100%;
    max-width: 440px;
    animation: rise 0.6s ease both;
}

.auth-card h1 {
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
    color: var(--pkf-ink);
    font-size: 24px;
    letter-spacing: -0.01em;
}

.auth-card p.lead { color: var(--muted); margin-top: -4px; }

/* ---------- Tarjeta split (login) ---------- */
.auth-card-split {
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(28, 28, 34, 0.55);
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    animation: rise 0.7s ease both;
}

.auth-hero {
    position: relative;
    padding: 48px 44px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(184, 137, 59, 0.30), transparent 55%),
        linear-gradient(160deg, var(--pkf-ink) 0%, #5e0d26 55%, var(--pkf-burgundy) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
}

.auth-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 137, 59, 0.25), transparent 70%);
    pointer-events: none;
}

.auth-hero__logo {
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: inline-flex;
    align-self: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.auth-hero__logo img {
    display: block;
    height: 56px;
    width: auto;
}

.auth-hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.auth-hero__intro {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    color: rgba(255,255,255,0.86);
}

.auth-hero__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-hero__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,0.95);
}

.auth-hero__features .dot {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.auth-hero__features strong { color: #fff; display: block; margin-bottom: 2px; }

.auth-hero__footer {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-form {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    color: var(--pkf-ink);
    margin: 0 0 4px;
}

.auth-form__sub {
    color: var(--muted);
    margin: 0 0 28px;
    font-size: 14px;
}

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--pkf-ink);
    letter-spacing: 0.01em;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.form-group input:hover { border-color: #b6c2cf; }
.form-group input:focus {
    outline: none;
    border-color: var(--pkf-burgundy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(138, 21, 56, 0.15);
}

.btn {
    background: linear-gradient(135deg, var(--pkf-burgundy) 0%, var(--pkf-ink) 100%);
    color: #fff;
    border: 0;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(138, 21, 56, 0.25);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(138, 21, 56, 0.35); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: #6b7785; }
.btn-danger { background: var(--danger); }
.btn-block { width: 100%; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fde8e8; color: var(--danger); border: 1px solid #f5c2c2; }
.alert-info { background: #e6f1fa; color: var(--pkf-ink); border: 1px solid #bcdaf0; }
.alert-warning { background: #fff4d6; color: var(--warning); border: 1px solid #f0d785; }

.muted { color: var(--muted); font-size: 13px; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .auth-card-split {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
    .auth-hero { padding: 32px 28px; gap: 20px; }
    .auth-hero h2 { font-size: 24px; }
    .auth-hero__logo img { height: 48px; }
    .auth-form { padding: 32px 28px; }
}


/* ─── PKF Attest · tipografía corporativa ───
   Titulares en serif (Georgia) como la identidad de PKF Attest;
   el cuerpo sigue en sans para mantener la legibilidad de las tablas. */
h1, h2, h3, h4,
.nav-title, .section-title, .hero h1,
.landing-header h1, .platform-card h2,
.auth-card h1, .auth-hero h2, .admin-header h1 {
    font-family: Georgia, 'Times New Roman', 'Poppins', serif !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}
