@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

:root {
    --pf-blue: #248dd2;
    --pf-green: #76c65b;
    --pf-accent: var(--pf-green);
    --pf-ink: #172033;
    --pf-muted: #667085;
    --pf-border: rgba(23, 32, 51, .12);
    --pf-radius: 8px;
}
* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pf-ink);
    background: #07111f;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 42vw;
    height: 42vw;
    min-width: 360px;
    min-height: 360px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(16px);
    opacity: .48;
    z-index: 0;
}

body::before {
    left: -14vw;
    top: -18vw;
    background: radial-gradient(circle, rgba(36, 141, 210, .46), transparent 62%);
    animation: loginGlowA 14s cubic-bezier(.22, .61, .36, 1) infinite alternate;
}

body::after {
    right: -16vw;
    bottom: -18vw;
    background: radial-gradient(circle, rgba(118, 198, 91, .36), transparent 64%);
    animation: loginGlowB 16s cubic-bezier(.22, .61, .36, 1) infinite alternate;
}

@keyframes loginGlowA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(40px, 26px, 0) scale(1.08); }
}

@keyframes loginGlowB {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-36px, -24px, 0) scale(1.1); }
}
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    background:
        linear-gradient(135deg, rgba(36, 141, 210, .28), transparent 34%),
        linear-gradient(315deg, rgba(118, 198, 91, .22), transparent 32%),
        #07111f;
    position: relative;
    z-index: 1;
}
.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    padding: 64px;
    overflow: hidden;
}
.login-brand::before {
    content: "";
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 92%);
    animation: loginGridDrift 18s linear infinite;
}

.login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .08) 48%, transparent 62%);
    transform: translateX(-120%);
    animation: loginSweep 7s cubic-bezier(.16, 1, .3, 1) infinite;
}

@keyframes loginGridDrift {
    to { background-position: 42px 42px, 42px 42px; }
}

@keyframes loginSweep {
    0%, 54% { transform: translateX(-120%); opacity: 0; }
    64% { opacity: 1; }
    82%, 100% { transform: translateX(120%); opacity: 0; }
}
.brand-content {
    position: relative;
    max-width: 620px;
    color: #fff;
    animation: brandEnter .72s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes brandEnter {
    from { opacity: 0; transform: translateX(-22px); }
    to { opacity: 1; transform: translateX(0); }
}
.brand-logo img {
    width: min(420px, 82vw);
    max-height: 110px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 34px;
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1), filter 360ms ease;
}

.brand-logo img:hover {
    transform: translateY(-2px) scale(1.018);
    filter: drop-shadow(0 18px 32px rgba(36, 141, 210, .22));
}
.brand-title {
    margin: 0;
    max-width: 620px;
    font-size: clamp(34px, 5vw, 55px);
    line-height: 1.02;
    letter-spacing: 0;
}
.brand-subtitle {
    margin: 18px 0 0;
    max-width: 560px;
    color: rgba(235, 245, 255, .78);
    line-height: 1.75;
    font-size: 16px;
}
.brand-divider {
    width: 116px;
    height: 4px;
    margin: 28px 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pf-blue), var(--pf-green));
    background-size: 180% 100%;
    animation: loginGradientMove 4s linear infinite;
}

@keyframes loginGradientMove {
    to { background-position: 180% 0; }
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
}
.kpi-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--pf-radius);
    padding: 16px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(14px);
    transition: transform 260ms cubic-bezier(.16, 1, .3, 1), border-color 260ms ease, background 260ms ease;
    animation: loginMetricEnter .62s cubic-bezier(.16, 1, .3, 1) both;
}

.kpi-card:nth-child(2) { animation-delay: 80ms; }
.kpi-card:nth-child(3) { animation-delay: 160ms; }

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(118, 198, 91, .36);
    background: rgba(255, 255, 255, .1);
}

@keyframes loginMetricEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.kpi-value { font-size: 24px; font-weight: 900; }
.kpi-label { margin-top: 4px; font-size: 12px; color: rgba(235, 245, 255, .7); }
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: #f4f8fb;
    position: relative;
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(36, 141, 210, .14), transparent 34%),
        radial-gradient(circle at 86% 80%, rgba(118, 198, 91, .12), transparent 30%);
}
.login-card {
    width: min(100%, 450px);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    padding: 34px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 70px rgba(23, 32, 51, .16);
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: loginCardEnter .72s cubic-bezier(.16, 1, .3, 1) both;
    transition: transform 300ms cubic-bezier(.16, 1, .3, 1), box-shadow 300ms ease, border-color 300ms ease;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(36, 141, 210, .1), transparent 34%, rgba(118, 198, 91, .1));
    opacity: .7;
}

.login-card:hover {
    transform: translateY(-3px);
    border-color: rgba(36, 141, 210, .24);
    box-shadow: 0 34px 86px rgba(23, 32, 51, .2);
}

.login-card > * { position: relative; }

@keyframes loginCardEnter {
    from { opacity: 0; transform: translateX(24px) scale(.985); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
.login-header { margin-bottom: 24px; }
.login-header h2 { margin: 0; font-size: 26px; }
.login-header p { margin: 8px 0 0; color: var(--pf-muted); line-height: 1.55; }
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--pf-muted);
    font-size: 13px;
    font-weight: 800;
}
.login-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    padding: 0 13px;
    background: #fff;
    outline: none;
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms ease, border-color 220ms ease;
}
.login-input:focus {
    border-color: var(--pf-blue);
    box-shadow: 0 0 0 4px rgba(36, 141, 210, .12);
    transform: translateY(-1px);
}
.btn-login {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: var(--pf-radius);
    color: #fff !important;
    font-weight: 900;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            var(--pf-blue, #248dd2),
            var(--pf-accent, var(--pf-green, #76c65b))
        ) !important;
    background-size: 160% 100%;
    box-shadow: 0 16px 34px rgba(36, 141, 210, .28);
    position: relative;
    overflow: hidden;
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms ease, background-position 700ms ease;
}

.btn-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%);
    transition: transform 620ms cubic-bezier(.16, 1, .3, 1);
}

.btn-login:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 20px 44px rgba(36, 141, 210, .34);
}

.btn-login:hover::before { transform: translateX(120%); }
.btn-login:active { transform: translateY(0) scale(.99); }
.btn-login:disabled { opacity: .55; cursor: not-allowed; }
.error-alert {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--pf-radius);
    border: 1px solid rgba(229, 72, 77, .24);
    background: rgba(229, 72, 77, .09);
    color: #b4232a;
    font-size: 13px;
    animation: alertShake 420ms cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes alertShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
.login-footer, .copyright {
    text-align: center;
    color: var(--pf-muted);
    font-size: 13px;
}
.login-footer { margin-top: 18px; }
.login-footer a { color: var(--pf-blue); font-weight: 850; text-decoration: none; }
.login-footer a {
    transition: color 180ms ease, text-shadow 180ms ease;
}
.login-footer a:hover {
    color: #1269a6;
    text-shadow: 0 8px 22px rgba(36, 141, 210, .24);
}
.copyright { margin-top: 16px; font-size: 12px; }
.register-card {
    width: 520px;
}
.register-info {
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .15);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}
.success-alert {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 13px;
}
@media (max-width: 980px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand { min-height: 44vh; padding: 36px; }
    .login-brand::before { inset: 18px; }
    .login-panel { padding: 24px; }
}
@media (max-width: 620px) {
    .login-brand { display: none; }
    .login-panel { min-height: 100vh; }
    .login-card { padding: 24px; }
    .kpi-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* Login y registro: tarjeta dividida con identidad corporativa. */
body.auth-modern {
    --auth-primary-dark: color-mix(in srgb, var(--pf-blue) 68%, #03182b);
    --auth-primary-deep: color-mix(in srgb, var(--pf-blue) 50%, #020c16);
    --auth-primary-light: color-mix(in srgb, var(--pf-blue) 72%, #ffffff);
    --auth-accent-soft: color-mix(in srgb, var(--pf-accent) 72%, #ffffff);
    display: grid;
    place-items: center;
    padding: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .14), transparent 24%),
        radial-gradient(circle at 82% 86%, color-mix(in srgb, var(--pf-accent) 26%, transparent), transparent 30%),
        linear-gradient(145deg, var(--pf-blue), var(--auth-primary-dark) 56%, var(--auth-primary-deep));
}

body.auth-modern::before,
body.auth-modern::after { display: none; }

.auth-modern .login-page {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(390px, .95fr) minmax(440px, 1.05fr);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.auth-modern .login-brand {
    min-width: 0;
    padding: 58px 52px;
    background:
        radial-gradient(circle at 18% 112%, rgba(255, 255, 255, .13) 0 22%, transparent 22.5%),
        linear-gradient(145deg, var(--auth-primary-light), var(--pf-blue) 52%, var(--auth-primary-dark));
    isolation: isolate;
    background-size: 160% 160%;
    animation: authBackgroundFlow 14s ease-in-out infinite alternate;
}

.auth-modern .login-brand::before {
    inset: 50% -86px auto auto;
    width: 220px;
    height: 220px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    mask-image: none;
    animation: authOrbFloat 9s ease-in-out infinite;
    z-index: -1;
}

.auth-modern .login-brand::after {
    inset: auto -35px 68px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--auth-primary-light), var(--pf-blue));
    box-shadow: 0 16px 36px rgba(3, 55, 91, .3);
    transform: none;
    animation: authOrbFloat 7s ease-in-out infinite reverse;
    opacity: 1;
    z-index: -1;
}

.auth-modern .brand-content { max-width: 390px; }
.auth-modern .brand-logo img {
    width: min(280px, 80%);
    height: 72px;
    margin-bottom: 44px;
    object-position: left center;
}
.auth-modern .brand-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-modern .brand-title {
    max-width: 370px;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.08;
}
.auth-modern .brand-company-name {
    margin-top: 12px;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    font-weight: 700;
}
.auth-modern .brand-subtitle {
    max-width: 355px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.7;
}
.auth-modern .brand-divider {
    width: 72px;
    margin: 25px 0;
    background: rgba(255, 255, 255, .82);
    animation: none;
}
.auth-modern .kpi-grid { max-width: 350px; gap: 9px; }
.auth-modern .kpi-card {
    padding: 13px 12px;
    border-color: rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .09);
    box-shadow: none;
}
.auth-modern .kpi-value { font-size: 18px; }
.auth-modern .kpi-label { font-size: 10px; }

.auth-modern .login-panel {
    padding: 48px clamp(38px, 5vw, 78px);
    background: #fff;
}
.auth-modern .login-panel::before {
    inset: auto -54px -54px auto;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pf-accent), var(--pf-blue));
    animation: authCornerPulse 8s ease-in-out infinite;
}
.auth-modern .login-card,
.auth-modern .register-card {
    width: min(100%, 440px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.auth-modern .login-card::before { display: none; }
.auth-modern .login-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}
.auth-modern .login-header { margin-bottom: 28px; }
.auth-modern .login-header h2 {
    font-size: clamp(29px, 4vw, 38px);
    letter-spacing: -.035em;
}
.auth-modern .login-header p {
    max-width: 390px;
    margin-top: 9px;
    font-size: 13px;
}
.auth-modern .form-group { margin-bottom: 17px; }
.auth-modern .form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
}
.auth-modern .login-input {
    height: 50px;
    padding: 0 15px;
    border-color: #dfe4ea;
    border-radius: 9px;
    background: #f5f6f8;
    color: var(--pf-ink);
}
.auth-modern .login-input::placeholder { color: #98a2b3; }
.auth-modern .password-field { position: relative; }
.auth-modern .password-field .login-input { padding-right: 52px; }
.auth-modern .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #667085;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.auth-modern .password-toggle:hover,
.auth-modern .password-toggle:focus-visible {
    color: var(--pf-blue);
    background: color-mix(in srgb, var(--pf-blue) 10%, transparent);
    outline: none;
}
.auth-modern .password-toggle:active { transform: translateY(-50%) scale(.92); }
.auth-modern .eye-icon {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 70% 30% / 70% 30%;
    transform: rotate(45deg);
}
.auth-modern .eye-icon::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: currentColor;
}
.auth-modern .password-toggle[aria-pressed="true"] .eye-icon::before {
    content: "";
    position: absolute;
    left: 8px;
    top: -5px;
    width: 2px;
    height: 24px;
    background: currentColor;
}
.auth-modern .btn-login {
    min-height: 50px;
    margin-top: 4px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--auth-primary-dark), var(--pf-blue), var(--pf-accent)) !important;
    box-shadow: 0 13px 28px rgba(9, 91, 148, .22);
}
.auth-modern .login-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
}
.auth-modern .copyright { margin-top: 14px; }

@keyframes authBackgroundFlow {
    0% { background-position: 0% 20%; }
    100% { background-position: 100% 80%; }
}
@keyframes authOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-12px, -18px, 0) scale(1.045); }
}
@keyframes authCornerPulse {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.12); opacity: 1; }
}

.auth-register .login-page { min-height: 100vh; }
.auth-register .login-panel { padding-top: 34px; padding-bottom: 34px; }
.auth-register .login-header { margin-bottom: 20px; }
.auth-register .form-group { margin-bottom: 12px; }
.auth-register .login-input { height: 46px; }
.auth-register .brand-logo img { margin-bottom: 30px; }

@media (max-width: 920px) {
    body.auth-modern { padding: 0; }
    .auth-modern .login-page { grid-template-columns: minmax(285px, .8fr) minmax(390px, 1.2fr); }
    .auth-modern .login-brand { padding: 44px 34px; }
    .auth-modern .login-panel { padding: 42px 34px; }
}

@media (max-width: 720px) {
    body.auth-modern { display: block; padding: 0; background: #fff; }
    .auth-modern .login-page { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .auth-modern .login-brand {
        display: flex;
        min-height: 250px;
        padding: 30px 28px 46px;
    }
    .auth-modern .brand-logo img { width: 210px; height: 56px; margin-bottom: 20px; }
    .auth-modern .brand-title { font-size: 29px; }
    .auth-modern .brand-subtitle { margin-top: 10px; }
    .auth-modern .brand-divider,
    .auth-modern .kpi-grid,
    .auth-modern .brand-company-name { display: none; }
    .auth-modern .login-brand::before { inset: auto -60px -105px auto; width: 180px; height: 180px; }
    .auth-modern .login-brand::after { right: 38px; bottom: -36px; width: 90px; height: 90px; }
    .auth-modern .login-panel { min-height: auto; padding: 42px 28px; }
    .auth-modern .login-panel::before { display: none; }
}

.setup-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(36, 141, 210, .22), transparent 34%),
        linear-gradient(315deg, rgba(118, 198, 91, .18), transparent 32%),
        #07111f;
    overflow-y: auto;
}

.setup-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
    gap: 28px;
    padding: 32px;
    position: relative;
    z-index: 1;
}

.setup-hero,
.setup-panel {
    display: flex;
    align-items: stretch;
}

.setup-hero-card,
.setup-form {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
}

.setup-hero-card {
    position: sticky;
    top: 32px;
    min-height: calc(100vh - 64px);
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
        rgba(255, 255, 255, .06);
    overflow: hidden;
}

.setup-hero-card::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
}

.setup-hero-card > * {
    position: relative;
}

.setup-hero-card > img {
    width: min(340px, 88%);
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 36px;
}

.setup-hero-card span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.setup-hero-card h1 {
    margin: 18px 0 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: 0;
}

.setup-hero-card p {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(235, 245, 255, .78);
    line-height: 1.72;
}

.setup-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.setup-preview div {
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
}

.setup-preview strong {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    text-transform: uppercase;
}

.setup-preview img {
    width: 100%;
    height: 46px;
    object-fit: contain;
    object-position: left center;
}

.setup-form {
    padding: 30px;
    background: rgba(255, 255, 255, .96);
}

.setup-head {
    margin-bottom: 24px;
}

.setup-head span {
    color: var(--pf-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.setup-head h2 {
    margin: 8px 0 0;
    font-size: 32px;
}

.setup-head p {
    margin: 8px 0 0;
    color: var(--pf-muted);
}

.setup-section {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(36, 141, 210, .055), transparent 34%),
        linear-gradient(315deg, rgba(118, 198, 91, .055), transparent 30%),
        #fff;
}

.setup-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.setup-grid label {
    display: grid;
    gap: 8px;
    color: var(--pf-muted);
    font-size: 13px;
    font-weight: 850;
}

.setup-wide {
    grid-column: 1 / -1;
}

.setup-color {
    padding: 6px;
}

@media (max-width: 1040px) {
    .setup-page {
        grid-template-columns: 1fr;
    }

    .setup-hero-card {
        position: relative;
        top: auto;
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .setup-page {
        padding: 16px;
    }

    .setup-form,
    .setup-hero-card {
        padding: 22px;
    }

    .setup-grid,
    .setup-preview {
        grid-template-columns: 1fr;
    }
}
/* El acceso público comparte el scrollbar compacto de la aplicación. */
:root{--pf-login-scroll-thumb:rgba(100,116,139,.38);--pf-login-scroll-hover:rgba(14,165,233,.62)}
html,body,*{scrollbar-width:thin;scrollbar-color:var(--pf-login-scroll-thumb) transparent}
*::-webkit-scrollbar{width:7px;height:7px}
*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}
*::-webkit-scrollbar-thumb{min-width:28px;min-height:28px;border:1px solid transparent;border-radius:999px;background:var(--pf-login-scroll-thumb);background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:var(--pf-login-scroll-hover);background-clip:padding-box}
