:root {
    --auth-bg: #070714;
    --auth-bg-2: #15071f;
    --auth-card: #ffffff;
    --auth-ink: #181126;
    --auth-muted: #676174;
    --auth-line: #e7e5ef;
    --auth-pink: #ec168c;
    --auth-orange: #ff7a18;
    --auth-yellow: #ffd72e;
    --auth-purple: #7a24d8;
    --auth-radius: 6px;
    --auth-gradient: linear-gradient(100deg, var(--auth-pink), var(--auth-orange) 58%, var(--auth-yellow));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.auth-landing-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: var(--auth-ink);
    background: var(--auth-bg);
    text-rendering: geometricPrecision;
}
.auth-landing-body a { color: inherit; text-decoration: none; }
.auth-landing-body .site-header {
    min-height: 78px;
    padding: 0 5.6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 20, .93);
    border-bottom: 1px solid rgba(255,255,255,.11);
    backdrop-filter: blur(18px);
}
.auth-landing-body .brand {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    min-height: 42px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-landing-body .brand img {
    display: block;
    max-width: 158px;
    max-height: 50px;
    object-fit: contain;
}
.auth-landing-body .brand:empty::before {
    content: "";
    display: block;
    width: 120px;
    height: 34px;
}
.auth-landing-body .site-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 28px);
    color: rgba(255,255,255,.86);
    font-size: 15px;
    font-weight: 800;
}
.auth-landing-body .site-header nav a {
    position: relative;
    color: rgba(255,255,255,.86);
    padding: 28px 0 25px;
    transition: color .18s ease;
}
.auth-landing-body .site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--auth-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}
.auth-landing-body .site-header nav a:hover { color: #fff; }
.auth-landing-body .site-header nav a:hover::after { transform: scaleX(1); }

.auth-landing-body .auth-page {
    min-height: calc(100vh - 78px);
    padding: clamp(36px, 5vw, 74px) 5.6vw 82px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(circle at 17% 10%, rgba(236, 22, 140, .34), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(255, 122, 24, .25), transparent 28%),
        radial-gradient(circle at 78% 78%, rgba(255, 215, 46, .18), transparent 28%),
        linear-gradient(135deg, #080814 0%, #1b0b27 48%, #311023 100%);
    position: relative;
    overflow: hidden;
}
.auth-landing-body .auth-page::before,
.auth-landing-body .auth-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}
.auth-landing-body .auth-page::before {
    width: 520px;
    height: 520px;
    right: -190px;
    top: 130px;
    background: radial-gradient(circle, rgba(255, 122, 24, .22), transparent 68%);
}
.auth-landing-body .auth-page::after {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(236, 22, 140, .22), transparent 70%);
}
.auth-landing-body .auth-card {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255,255,255,.56);
    border-radius: var(--auth-radius);
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--auth-gradient) border-box;
    box-shadow: 0 26px 80px rgba(7,7,20,.33);
    overflow: hidden;
}
.auth-landing-body .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--auth-gradient);
}
.auth-landing-body .auth-card--small {
    width: min(560px, 100%);
}
.auth-landing-body .auth-card__intro {
    margin-bottom: 8px;
}
.auth-landing-body .auth-card__intro .eyebrow,
.auth-landing-body .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--auth-purple), var(--auth-pink));
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-landing-body .auth-card__intro h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: .98;
    letter-spacing: -.045em;
    background: linear-gradient(90deg, #181126 0%, var(--auth-pink) 48%, var(--auth-orange) 78%, #f1b500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-landing-body .auth-card--small .auth-card__intro h1 {
    font-size: clamp(34px, 6vw, 48px);
}
.auth-landing-body .auth-card__intro p {
    max-width: 760px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 17px;
    line-height: 1.6;
}
.auth-landing-body .alert {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: var(--auth-radius);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}
.auth-landing-body .alert-error { background: #fff1f4; color: #a8071a; border: 1px solid #ffd5de; }
.auth-landing-body .alert-success { background: #eefbe8; color: #237804; border: 1px solid #c9efbd; }
.auth-landing-body .alert-info { background: #fff7e8; color: #8a4b00; border: 1px solid #ffe0a6; }
.auth-landing-body .alert-warning { background: #fff7e8; color: #8a4b00; border: 1px solid #ffe0a6; }

.auth-landing-body .form-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}
.auth-landing-body .form-grid--single {
    grid-template-columns: 1fr;
}
.auth-landing-body .full-row,
.auth-landing-body .form-actions {
    grid-column: 1 / -1;
}
.auth-landing-body .form-grid label {
    display: grid;
    gap: 8px;
    color: #21182e;
    font-weight: 800;
    font-size: 14px;
}
.auth-landing-body .form-grid small {
    color: #7a7487;
    font-weight: 600;
    line-height: 1.45;
}
.auth-landing-body .form-grid input,
.auth-landing-body .form-grid select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8d5e2;
    border-radius: var(--auth-radius);
    background: #fff;
    color: #171225;
    font: inherit;
    font-size: 15px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.auth-landing-body .form-grid input:focus,
.auth-landing-body .form-grid select:focus {
    outline: 0;
    border-color: var(--auth-pink);
    box-shadow: 0 0 0 4px rgba(236, 22, 140, .13);
}
.auth-landing-body .password-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.auth-landing-body .password-row input {
    min-width: 0;
}
.auth-landing-body .ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd8e7;
    border-radius: var(--auth-radius);
    background: #fff7fb;
    color: #a70f64;
    font-weight: 900;
    cursor: pointer;
}
.auth-landing-body .checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #eeeaf4;
    border-radius: var(--auth-radius);
    background: #fbfaff;
    color: #352b44;
    font-weight: 700 !important;
    line-height: 1.45;
}
.auth-landing-body .checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    accent-color: var(--auth-pink);
}
.auth-landing-body .checkbox-label span {
    display: block;
    min-width: 0;
}
.auth-landing-body .checkbox-label a,
.auth-landing-body .auth-note a,
.auth-landing-body .form-actions a,
.auth-landing-body .form-actions p a {
    color: #b70f6d;
    font-weight: 900;
}
.auth-landing-body .form-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.auth-landing-body .form-actions p {
    margin: 0;
    color: var(--auth-muted);
}
.auth-landing-body .primary-btn,
.auth-landing-body button.primary-btn,
.auth-landing-body input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--auth-radius);
    background: var(--auth-gradient);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(236, 22, 140, .23);
    transition: transform .18s ease, box-shadow .18s ease;
}
.auth-landing-body .primary-btn:hover,
.auth-landing-body button.primary-btn:hover,
.auth-landing-body input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(236, 22, 140, .29);
}
.auth-landing-body .auth-note {
    margin: 4px 0 0;
    color: var(--auth-muted);
    font-weight: 700;
}
.auth-landing-body .hp-field { display: none !important; }

@media (max-width: 820px) {
    .auth-landing-body .site-header {
        min-height: auto;
        padding: 16px 20px;
        align-items: flex-start;
        flex-direction: column;
    }
    .auth-landing-body .site-header nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 20px;
    }
    .auth-landing-body .site-header nav a {
        padding: 6px 0;
    }
    .auth-landing-body .site-header nav a::after { bottom: 0; }
    .auth-landing-body .auth-page {
        min-height: calc(100vh - 116px);
        padding: 30px 16px 56px;
    }
    .auth-landing-body .auth-card {
        padding: 25px 18px;
    }
    .auth-landing-body .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .auth-landing-body .form-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .auth-landing-body .primary-btn,
    .auth-landing-body button.primary-btn,
    .auth-landing-body input[type="submit"] {
        width: 100%;
    }
}

/* v22bm - Alineación de checkboxes en formularios con visual landing */
.auth-landing-body .checkbox-label {
    align-items: center !important;
}
.auth-landing-body .checkbox-label input[type="checkbox"] {
    margin: 0 !important;
    align-self: center !important;
}
.auth-landing-body .checkbox-label span {
    line-height: 1.35;
}
@media (max-width: 640px) {
    .auth-landing-body .checkbox-label {
        align-items: flex-start !important;
    }
    .auth-landing-body .checkbox-label input[type="checkbox"] {
        margin-top: .18em !important;
        align-self: flex-start !important;
    }
}

/* v22bp - Selector de idioma en auth y cierre visual de traducciones */
.auth-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}
.auth-lang-switcher__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 0 10px !important;
    border-radius: 999px;
    color: rgba(255,255,255,.72) !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}
.auth-lang-switcher__item::after { display: none !important; }
.auth-lang-switcher__item.is-active {
    color: #1a1024 !important;
    background: var(--auth-gradient);
}
@media (max-width: 820px) {
    .auth-lang-switcher { order: -1; }
    .auth-landing-body .site-header nav {
        align-items: center;
    }
}


/* v22bu - Validación visible "Soy humano" en registro */
.auth-landing-body .human-check-label {
    border-color: rgba(255, 151, 35, .35);
    background: linear-gradient(135deg, #fff7fb 0%, #fffdf3 100%);
    box-shadow: 0 12px 26px rgba(255, 111, 0, .08);
}
.auth-landing-body .human-check-label span {
    color: #20112c;
    font-weight: 900;
}
.auth-landing-body .human-check-label input[type="checkbox"] {
    accent-color: var(--auth-orange);
}
