:root {
    --auth-ink: #101828;
    --auth-muted: #667085;
    --auth-border: #e7e7ee;
    --auth-soft: #f8f7fb;
    --auth-purple: #6d28d9;
    --auth-purple-dark: #4c1d95;
    --auth-pink: #db2777;
    --auth-gold: #d97706;
    --auth-success: #15803d;
    --auth-card: rgba(255, 255, 255, .96);
    --auth-shadow: 0 24px 70px rgba(16, 24, 40, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body.auth-page {
    min-height: 100svh;
    margin: 0;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(219, 39, 119, .12), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(109, 40, 217, .14), transparent 34%),
        linear-gradient(180deg, #fffafd 0%, #f8f7fb 58%, #ffffff 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--auth-purple); }
a:hover { color: var(--auth-purple-dark); }

.auth-shell {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 22px 0;
}

.auth-frame { width: 100%; }
.auth-grid { align-items: stretch; }

/* En móvil el formulario SIEMPRE aparece primero. */
.auth-form-column { order: 1; }
.auth-showcase-column { order: 2; }

.auth-card,
.auth-showcase {
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 30px;
    overflow: hidden;
}

.auth-card {
    background: var(--auth-card);
    box-shadow: var(--auth-shadow);
    padding: clamp(22px, 5vw, 38px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--auth-ink);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.02em;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-purple), var(--auth-pink));
    box-shadow: 0 10px 26px rgba(109, 40, 217, .22);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--auth-purple);
    background: rgba(109, 40, 217, .08);
    font-size: .78rem;
    font-weight: 800;
}

.auth-title {
    margin: 12px 0 8px;
    font-size: clamp(1.9rem, 7vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 950;
}

.auth-copy {
    margin: 0 0 22px;
    color: var(--auth-muted);
    line-height: 1.58;
}

.auth-card .form-label {
    margin-bottom: 7px;
    font-size: .92rem;
    font-weight: 800;
}

.auth-card .form-control {
    min-height: 52px;
    border: 1px solid #d7d9e0;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
    box-shadow: none;
    background: #fff;
}

.auth-card .form-control:focus {
    border-color: rgba(109, 40, 217, .55);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, .09);
}

.auth-card .input-group .form-control {
    border-radius: 14px 0 0 14px;
}

.auth-password-toggle {
    min-width: 52px;
    border: 1px solid #d7d9e0;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: #fff;
    color: var(--auth-muted);
}

.auth-password-toggle:hover { color: var(--auth-purple); }

.auth-submit {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--auth-purple), var(--auth-pink));
    color: #fff;
    box-shadow: 0 14px 32px rgba(109, 40, 217, .20);
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    filter: brightness(.98);
    transform: translateY(-1px);
}

.auth-submit:disabled { transform: none; }

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

.auth-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
}

.auth-links a.auth-link-muted { color: var(--auth-muted); }
.auth-links a.auth-link-muted:hover { color: var(--auth-ink); }

.auth-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid rgba(109, 40, 217, .12);
    border-radius: 15px;
    background: rgba(109, 40, 217, .045);
    color: #4a3f62;
    font-size: .88rem;
    line-height: 1.48;
}

.auth-note i { color: var(--auth-purple); margin-top: 1px; }

.auth-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.auth-trust-item {
    padding: 10px 8px;
    border-radius: 13px;
    background: #fafafa;
    color: var(--auth-muted);
    text-align: center;
    font-size: .72rem;
    line-height: 1.25;
}

.auth-trust-item i {
    display: block;
    margin-bottom: 5px;
    color: var(--auth-purple);
    font-size: 1rem;
}

.auth-showcase {
    position: relative;
    height: 100%;
    min-height: 420px;
    padding: clamp(28px, 5vw, 48px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(244, 114, 182, .28), transparent 28%),
        radial-gradient(circle at 15% 90%, rgba(251, 191, 36, .18), transparent 28%),
        linear-gradient(145deg, #16112b 0%, #2d145f 58%, #5b1b66 100%);
    box-shadow: var(--auth-shadow);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -85px;
    bottom: -110px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.auth-showcase-content { position: relative; z-index: 2; }
.auth-showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .13);
    font-size: .82rem;
    font-weight: 800;
}

.auth-showcase h2 {
    max-width: 560px;
    margin: 20px 0 12px;
    font-size: clamp(2rem, 5vw, 3.55rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 950;
}

.auth-showcase p {
    max-width: 560px;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
}

.auth-showcase-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.auth-showcase-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .07);
}

.auth-showcase-item i {
    color: #f9a8d4;
    font-size: 1.1rem;
    margin-top: 2px;
}

.auth-showcase-item strong { display: block; font-size: .94rem; }
.auth-showcase-item span { display: block; margin-top: 2px; color: rgba(255,255,255,.68); font-size: .82rem; }

.registration-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (min-width: 992px) {
    .auth-shell { padding: 34px 0; }
    .auth-showcase-column { order: 1; }
    .auth-form-column { order: 2; }
    .auth-showcase { min-height: 640px; }
    .auth-card { min-height: 640px; display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 991.98px) {
    .auth-shell { align-items: flex-start; padding-top: 14px; }
    .auth-grid { --bs-gutter-y: 14px; }
    .auth-showcase { min-height: 0; }
    .auth-showcase h2 { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
    .auth-shell { padding: 0; }
    .auth-frame { padding: 0; max-width: none; }
    .auth-grid { margin: 0; }
    .auth-form-column,
    .auth-showcase-column { padding: 0; }
    .auth-card {
        border-radius: 0 0 26px 26px;
        border-top: 0;
        padding: 18px 18px 22px;
        box-shadow: 0 16px 42px rgba(16,24,40,.10);
    }
    .auth-showcase {
        margin: 12px 12px 22px;
        border-radius: 24px;
        padding: 24px 20px;
        box-shadow: none;
    }
    .auth-kicker { margin-top: 18px; }
    .auth-title { font-size: 2rem; }
    .auth-copy { margin-bottom: 18px; }
    .auth-card .mb-3 { margin-bottom: .85rem !important; }
    .auth-trust-row { gap: 6px; }
    .auth-trust-item { padding: 9px 5px; font-size: .68rem; }
}
