:root {
    --auth-blue: #2468f2;
    --auth-blue-deep: #1f4fe0;
    --auth-navy: #081a48;
    --auth-muted: #6f7d9f;
    --auth-line: #dfe6f4;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.auth-modern-page {
    margin: 0;
    color: var(--auth-navy);
    background: #f6f8ff;
    font-family: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-modern {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(520px, .98fr);
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 9% 6%, rgba(255,255,255,.98) 0 11%, transparent 34%),
        radial-gradient(circle at 76% 8%, rgba(214,226,255,.72), transparent 33%),
        linear-gradient(135deg, #f7f9ff 0%, #eef3ff 58%, #f9fbff 100%);
}

.auth-modern::before,
.auth-modern::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.auth-modern::before {
    width: 76vw;
    height: 76vw;
    left: -34vw;
    bottom: -52vw;
    border: 1px solid rgba(120,157,255,.15);
    box-shadow: 0 0 0 54px rgba(255,255,255,.24), 0 0 0 112px rgba(114,150,255,.055);
}

.auth-modern::after {
    width: 40vw;
    height: 80vw;
    top: -35vw;
    left: 38vw;
    transform: rotate(23deg);
    background: rgba(255,255,255,.58);
}

.auth-showcase {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: clamp(28px, 3.6vw, 64px) clamp(34px, 8vw, 150px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 13px;
    color: var(--auth-navy);
    font-size: clamp(22px, 1.9vw, 34px);
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
}

.auth-brand:hover { color: var(--auth-navy); text-decoration: none; }
.auth-brand-mark { width: 55px; height: 40px; flex: 0 0 auto; }

.auth-showcase-copy {
    width: min(650px, 100%);
    margin: clamp(58px, 10vh, 140px) auto 0;
}

.auth-showcase-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 3.1vw, 54px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .045em;
}

.auth-showcase-copy > p {
    max-width: 570px;
    margin: 0;
    color: #607094;
    font-size: clamp(15px, 1.15vw, 20px);
    line-height: 1.9;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 38px;
}

.auth-benefit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.auth-benefit-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border-radius: 13px;
    color: var(--auth-blue);
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(218,228,255,.75));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 8px 26px rgba(45,88,190,.1);
}
.auth-benefit-icon svg { width: 26px; height: 26px; }
.auth-benefit strong { display: block; font-size: 15px; white-space: nowrap; }
.auth-benefit small { display: block; margin-top: 3px; color: #7e8aa7; font-size: 12px; white-space: nowrap; }

.auth-hero-art {
    position: absolute;
    width: min(680px, calc(100% - 64px));
    height: auto;
    max-height: 51vh;
    left: 50%;
    bottom: clamp(150px, 19vh, 220px);
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 30px 38px rgba(53, 83, 210, .16));
    user-select: none;
    pointer-events: none;
}

.auth-panel-wrap {
    z-index: 2;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
    padding: 4.6vh clamp(24px, 2.2vw, 42px) 4.6vh 0;
}

.auth-panel {
    width: min(650px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: clamp(34px, 5vh, 64px) clamp(34px, 4vw, 72px);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 34px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 30px 85px rgba(48,68,125,.14);
    scrollbar-width: thin;
    backdrop-filter: blur(20px);
}

.auth-panel.auth-panel-compact { width: min(580px, 100%); }

.auth-panel-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-panel-brand .auth-brand { align-self: auto; font-size: 29px; }
.auth-panel-brand .auth-brand-mark { width: 52px; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--auth-line);
}

.auth-page-heading { margin: 0 0 34px; text-align: center; }
.auth-page-heading h1 {
    margin: 0 0 10px;
    color: var(--auth-navy);
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 700;
}
.auth-page-heading p { margin: 0; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }
.auth-page-footer { margin-top: 26px; text-align: center; }
.auth-page-footer a { color: var(--auth-blue); font-weight: 600; text-decoration: none; }
.auth-page-footer a:hover { color: var(--auth-blue-deep); text-decoration: none; }
.auth-tab {
    position: relative;
    padding: 13px 10px 18px;
    color: #8390ac;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}
.auth-tab:hover { color: var(--auth-blue); text-decoration: none; }
.auth-tab.active { color: var(--auth-blue); }
.auth-tab.active::after {
    content: "";
    position: absolute;
    height: 4px;
    right: 25%;
    bottom: -2px;
    left: 25%;
    border-radius: 8px;
    background: var(--auth-blue);
}

.auth-modern .login-signin,
.auth-modern .register-signin { color: var(--auth-navy); text-align: left; }

.auth-pane[hidden],
.auth-pane [hidden] { display: none !important; }
.auth-pane { animation: auth-pane-in .22s ease-out; }
@keyframes auth-pane-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.auth-modern .form-group { margin-bottom: 18px; }
.auth-modern .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-field { position: relative; }
.auth-field-icon {
    position: absolute;
    z-index: 1;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 19px;
    color: #66779f;
    transform: translateY(-50%);
    pointer-events: none;
}
.auth-field-icon svg { width: 100%; height: 100%; }

.auth-modern .auth-input,
.auth-modern .custom-input,
.auth-modern select.auth-input {
    width: 100%;
    height: 58px !important;
    padding: 0 18px 0 55px !important;
    color: var(--auth-navy) !important;
    border: 1px solid #d9e1f0 !important;
    border-radius: 11px !important;
    outline: none;
    background: rgba(255,255,255,.7) !important;
    box-shadow: none !important;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-modern .auth-input.no-icon { padding-left: 18px !important; }
.auth-modern .auth-input:focus,
.auth-modern .custom-input:focus {
    border-color: #7aa3ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(36,104,242,.09) !important;
}
.auth-modern .auth-input::placeholder,
.auth-modern .custom-input::placeholder { color: #9aa6bf !important; font-weight: 400 !important; opacity: 1; }

.auth-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 17px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #607196;
    border: 0;
    background: transparent;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
}
.auth-password-toggle svg { width: 22px; height: 22px; }

.auth-options { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 28px; }
.auth-modern .checkbox { color: #526181 !important; }
.auth-modern .checkbox > span { border-color: #cbd6e9 !important; background: #fff !important; }
.auth-modern .checkbox > input:checked ~ span { border-color: var(--auth-blue) !important; background: var(--auth-blue) !important; }
.auth-link { color: var(--auth-blue) !important; font-weight: 600; }

.auth-primary-btn,
.auth-modern .btn-login {
    width: 100%;
    min-height: 58px;
    color: #fff !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(110deg, #2368f3, #3156ee) !important;
    box-shadow: 0 13px 28px rgba(42,91,237,.24) !important;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .08em;
    transition: transform .2s, box-shadow .2s;
}
.auth-primary-btn:hover,
.auth-modern .btn-login:hover { transform: translateY(-1px); box-shadow: 0 17px 34px rgba(42,91,237,.31) !important; }

.auth-secondary { margin-top: 27px; color: #667494; text-align: center; }
.auth-secondary a { margin-left: 8px; color: var(--auth-blue); font-weight: 600; }
.auth-secondary button,
.auth-text-button { padding: 0; color: var(--auth-blue); border: 0; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.auth-secondary button { margin-left: 8px; }
.auth-feedback { min-height: 21px; margin: -8px 2px 11px; color: #d74354; font-size: 13px; line-height: 1.5; }
.auth-feedback.success { color: #16855b; }
.auth-closed { padding: 38px 12px; text-align: center; }
.auth-closed h2 { color: var(--auth-navy); font-size: 22px; }
.auth-closed p { color: var(--auth-muted); }
.auth-terms { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--auth-line); color: #657493; font-size: 13px; line-height: 1.7; }
.auth-modern .fv-help-block { color: #e24c5c; font-size: 12px; }
.auth-modern .embed-captcha > div { margin: 0 auto; }
.auth-modern .g-recaptcha { display: flex; justify-content: center; }

.auth-code-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.auth-code-group .auth-input { border-radius: 11px 0 0 11px !important; }
.auth-code-group .btn-send-code {
    min-width: 126px;
    padding: 0 17px;
    color: #fff;
    border: 0;
    border-radius: 0 11px 11px 0;
    background: var(--auth-blue);
    font-weight: 600;
}

@media (max-width: 1180px) {
    .auth-modern { grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); }
    .auth-showcase { padding-right: 45px; padding-left: 45px; }
    .auth-benefits { grid-template-columns: 1fr; gap: 12px; }
    .auth-benefit small { display: none; }
    .auth-hero-art {
        width: min(520px, calc(100% - 56px));
        max-height: 40vh;
        left: 50%;
        bottom: 24px;
    }
}

@media (min-width: 901px) and (max-height: 820px) {
    .auth-showcase-copy { margin-top: clamp(34px, 6vh, 58px); }
    .auth-benefits { margin-top: 24px; }
    .auth-hero-art {
        width: min(500px, calc(100% - 72px));
        max-height: 36vh;
        bottom: 18px;
    }
}

@media (max-width: 900px) {
    .auth-modern { display: block; min-height: 100vh; }
    .auth-showcase { position: absolute; min-height: auto; inset: 0 0 auto; padding: 24px; }
    .auth-showcase-copy, .auth-benefits, .auth-hero-art { display: none; }
    .auth-panel-wrap { min-height: 100vh; justify-content: center; padding: 86px 18px 24px; }
    .auth-panel { max-height: none; padding: 34px 28px; border-radius: 25px; }
    .auth-panel-brand { display: none; }
}

@media (max-width: 520px) {
    .auth-showcase { padding: 19px 21px; }
    .auth-brand { font-size: 22px; }
    .auth-brand-mark { width: 44px; height: 34px; }
    .auth-panel-wrap { padding: 74px 10px 10px; }
    .auth-panel { padding: 25px 19px 28px; border-radius: 21px; }
    .auth-tabs { margin-bottom: 25px; }
    .auth-tab { font-size: 17px; }
    .auth-modern .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .auth-code-group .btn-send-code { min-width: 106px; padding: 0 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
