/* Auth-only presentation. No shared site selectors or remote dependencies. */
.auth-page {
    box-sizing: border-box;
    --auth-ink: #1e2442;
    --auth-muted: #69718c;
    --auth-accent: #5949df;
    --auth-accent-hover: #4939c8;
    --auth-border: #e0e4ef;
    --auth-field-bg: #fafbfe;
    --auth-panel: #fff;
    --auth-focus: rgba(91, 76, 224, .13);
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 9% 0%, #eae7fb 0, transparent 43%), radial-gradient(ellipse at 94% 97%, #e4edfc 0, transparent 40%), #f3f5fa;
    color: var(--auth-ink);
    font: 14px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page a { color: var(--auth-accent); text-decoration: none; }
.auth-page button, .auth-page input { font: inherit; }
.auth-page button { cursor: pointer; }
.auth-page button:disabled { cursor: not-allowed; }
.auth-page a, .auth-page button, .auth-page input { -webkit-tap-highlight-color: transparent; }
.auth-page a:focus-visible, .auth-page button:focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 4px; }
.auth-page [hidden], .auth-page .hidden { display: none !important; }
.auth-page .auth-layout {
    width: 100%; max-width: 1240px;
    min-height: min(800px, calc(100svh - 64px));
    display: grid; grid-template-columns: 1.06fr 1fr;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 28px; overflow: hidden;
    background: var(--auth-panel);
    box-shadow: 0 24px 80px -40px rgba(37,43,84,.3), 0 2px 8px rgba(40,46,76,.025);
    animation: auth-layout-in .65s cubic-bezier(.2,.75,.25,1) both;
}
.auth-page .auth-visual {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 40px 44px 32px;
    color: #26284c;
    background: radial-gradient(ellipse at 70% 55%, rgba(206,211,255,.48), transparent 67%), linear-gradient(145deg,#f1efff,#eaf1fc);
}
.auth-page .auth-visual::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(101,106,177,.055) 1px,transparent 1px), linear-gradient(90deg,rgba(101,106,177,.055) 1px,transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(transparent,#000 45%,transparent);
}
.auth-page .auth-brand, .auth-page .auth-mobile-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-size: 22px; font-weight: 750; letter-spacing: -.7px; }
.auth-page .auth-brand { align-self: flex-start; width: 100%; }
.auth-page .auth-brand img, .auth-page .auth-mobile-brand img { object-fit: contain; flex: 0 0 auto; border-radius: 12px; }
.auth-page .auth-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 30px; color: #fff; background: linear-gradient(135deg,#8b76f9,#4d54d8); box-shadow: 0 5px 10px rgba(90,77,187,.17); }
.auth-page .auth-brand-tag { margin-left: auto; font-size: 9px; font-weight: 650; letter-spacing: 1.8px; color: #707598; padding: 5px 9px; border: 1px solid rgba(106,108,161,.2); border-radius: 5px; white-space: nowrap; }
.auth-page .auth-visual-copy { margin-top: 66px; position: relative; z-index: 1; }
.auth-page .auth-visual-kicker { display: flex; align-items: center; gap: 9px; color: #777b9a; margin: 0 0 18px; font-size: 12px; letter-spacing: 1px; }
.auth-page .auth-visual-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: #8b7bea; box-shadow: 0 0 0 4px rgba(133,115,232,.1); }
.auth-page .auth-visual h2 { font-size: clamp(34px,3.3vw,46px); line-height: 1.43; letter-spacing: -1.8px; font-weight: 750; margin: 0; }
.auth-page .auth-visual h2 > span { background: linear-gradient(110deg,#5557d8,#9270d9); color: transparent; background-clip: text; -webkit-background-clip: text; }
.auth-page .auth-visual-description { max-width: 390px; margin: 17px 0 0; font-size: 13px; line-height: 1.9; color: #777b98; }
.auth-page .auth-art { position: relative; width: calc(100% + 56px); margin: 0 -28px; flex: 1; min-height: 285px; display: flex; align-items: center; color: #7c73d7; }
.auth-page .auth-orbit-art { display: block; width: 100%; max-height: 362px; overflow: visible; }
.auth-page .auth-sphere-light { stop-color: #c8c6ff; }
.auth-page .auth-sphere-mid { stop-color: #817ee5; }
.auth-page .auth-sphere-dark { stop-color: #544bb1; }
.auth-page .auth-orbit-outer { transform-origin: 260px 186px; animation: auth-orbit-turn 70s linear infinite; }
.auth-page .auth-orb-core { animation: auth-orb-float 7s ease-in-out infinite; }
.auth-page .auth-sparkles { animation: auth-sparkle 5s ease-in-out infinite alternate; }
.auth-page .auth-art-label { position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: rgba(255,255,255,.87); border: 1px solid rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(92,92,156,.25); animation: auth-label-float 7s ease-in-out infinite; }
.auth-page .auth-art-label--top { top: 13%; right: 3%; }
.auth-page .auth-art-label--bottom { left: 5%; bottom: 12%; animation-delay: -3s; }
.auth-page .auth-art-icon { font-size: 23px; color: #7464ce; background: #f0edfe; border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; }
.auth-page .auth-art-label b { display: block; font-size: 11px; font-weight: 650; color: #56577a; line-height: 1.6; }
.auth-page .auth-art-label small { display: block; font-size: 7px; font-weight: 600; letter-spacing: 1px; color: #777b9c; }
.auth-page .auth-visual-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: #767b99; margin-top: 6px; }
.auth-page .auth-visual-footer-line { width: 22px; height: 1px; background: #a8acc6; }
.auth-page .auth-visual-footer p { margin: 0; font-size: 11px; letter-spacing: .3px; }
.auth-page .auth-visual-footer i { font-style: normal; margin: 0 4px; opacity: .7; }
.auth-page .auth-visual-index { margin-left: auto; font-size: 8px; letter-spacing: 1.2px; }
.auth-page .auth-main { min-width: 0; display: flex; flex-direction: column; padding: 34px 52px 24px; background: var(--auth-panel); }
.auth-page .auth-back { align-self: flex-end; color: var(--auth-muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.auth-page .auth-back:hover { color: var(--auth-accent); }
.auth-page .auth-form-wrap { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth-page .auth-mobile-brand { display: none; }
.auth-page .auth-heading { margin-bottom: 30px; }
.auth-page .auth-eyebrow { margin: 0 0 11px; font-size: 10px; line-height: 1.5; font-weight: 650; letter-spacing: 2.3px; color: var(--auth-accent); }
.auth-page .auth-heading h1 { margin: 0; font-size: 32px; line-height: 1.4; letter-spacing: -1px; font-weight: 750; }
.auth-page .auth-heading-dot { color: var(--auth-accent); margin-left: 3px; }
.auth-page .auth-description { color: var(--auth-muted); font-size: 13px; margin: 10px 0 0; }
.auth-page .auth-tabs { padding: 5px; background: #f2f3f9; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 11px; margin: 0 0 26px; }
.auth-page .auth-tabs button { background: transparent; color: var(--auth-muted); border: 0; padding: 9px 6px; border-radius: 8px; font-size: 13px; font-weight: 550; transition: color .2s,background .2s,box-shadow .2s; }
.auth-page .auth-tabs button[aria-selected="true"] { background: var(--auth-panel); color: var(--auth-accent); box-shadow: 0 2px 6px rgba(39,44,76,.08); }
.auth-page [data-auth-panel]:not([hidden]) { animation: auth-panel-in .24s ease-out both; }
.auth-page .auth-panel-heading { font-size: 17px; margin: 30px 0 18px; padding-top: 22px; border-top: 1px solid var(--auth-border); }
.auth-page.auth-tabs-ready .auth-panel-heading { display: none; }
.auth-page .auth-form { display: flex; flex-direction: column; gap: 21px; }
.auth-page .auth-field { min-width: 0; }
.auth-page .auth-field > label, .auth-page .auth-field-label { display: block; margin-bottom: 8px; color: var(--auth-ink); font-size: 12px; font-weight: 550; }
.auth-page .auth-input-wrap { position: relative; }
.auth-page .auth-input { width: 100%; min-width: 0; height: 50px; border: 1px solid var(--auth-border); border-radius: 10px; background: var(--auth-field-bg); color: var(--auth-ink); padding: 0 14px; font-size: 14px; outline: none; transition: border-color .2s,background .2s,box-shadow .2s; }
.auth-page .auth-input-wrap > .auth-input { padding-left: 43px; }
.auth-page .auth-input-wrap--password > .auth-input { padding-right: 59px; }
.auth-page .auth-input::placeholder { color: #939aae; opacity: 1; font-size: 13px; }
.auth-page .auth-input:hover { border-color: #c6c9dd; }
.auth-page .auth-input:focus { background: var(--auth-panel); border-color: var(--auth-accent); box-shadow: 0 0 0 4px var(--auth-focus); }
.auth-page .auth-input-icon { position: absolute; left: 14px; top: 15px; color: #929ab2; pointer-events: none; transition: color .2s; }
.auth-page .auth-input-wrap:focus-within .auth-input-icon { color: var(--auth-accent); }
.auth-page .auth-password-toggle { position: absolute; inset: 5px 6px 5px auto; min-width: 44px; padding: 0 7px; background: transparent; border: 0; border-radius: 6px; color: var(--auth-muted); font-size: 11px; }
.auth-page .auth-password-toggle:hover, .auth-page .auth-password-toggle[aria-pressed="true"] { color: var(--auth-accent); background: var(--auth-focus); }
.auth-page .auth-code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.auth-page .auth-code-button { padding: 0 14px; min-width: 112px; border: 1px solid #d9d4f6; border-radius: 10px; background: #f5f3ff; color: var(--auth-accent); font-size: 12px; font-weight: 550; transition: background .2s,border-color .2s; }
.auth-page .auth-code-button:hover:not(:disabled) { background: #ebe7ff; border-color: #b6acea; }
.auth-page .auth-code-button:disabled { color: var(--auth-muted); background: #f1f2f6; border-color: var(--auth-border); }
.auth-page .auth-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; margin-top: -2px; }
.auth-page .auth-check { display: flex; align-items: flex-start; gap: 8px; color: var(--auth-muted); font-size: 12px; cursor: pointer; }
.auth-page .auth-check input { margin: 3px 0 0; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--auth-accent); cursor: pointer; }
.auth-page .auth-check input:focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 3px; }
.auth-page .auth-check--terms { line-height: 1.8; }
.auth-page .auth-submit { position: relative; display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; width: 100%; padding: 12px 40px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: linear-gradient(110deg,#6154dc,#7d56dd); font-size: 14px; font-weight: 650; box-shadow: 0 6px 15px -6px rgba(94,72,204,.5); transition: transform .2s,box-shadow .2s,filter .2s; }
.auth-page .auth-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px -7px rgba(94,72,204,.6); filter: brightness(1.04); }
.auth-page .auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-page .auth-submit:disabled { opacity: .65; box-shadow: none; }
.auth-page .auth-button-arrow { position: absolute; right: 19px; font-size: 19px; font-weight: 400; opacity: .9; }
.auth-page form[aria-busy="true"] .auth-submit::before { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.auth-page form[aria-busy="true"] .auth-button-arrow { display: none; }
.auth-page .auth-field-help { color: var(--auth-muted); font-size: 11px; line-height: 1.6; margin: 7px 0 0; }
.auth-page .auth-alert { color: #a52e42; background: #fff2f3; border: 1px solid #f5cbd1; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.75; margin-bottom: 22px; overflow-wrap: anywhere; }
.auth-page .auth-message { margin: 9px 0 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-page .text-red-600, .auth-page .auth-field-error { color: #b83142; }
.auth-page .text-emerald-600 { color: #19755c; }
.auth-page .auth-field-error { font-size: 11px; margin: 6px 0 0; }
.auth-page .auth-input[aria-invalid="true"] { border-color: #ca4d60; }
.auth-page .auth-sms-note { margin: 17px 0 0; color: var(--auth-muted); font-size: 11px; line-height: 1.85; }
.auth-page .auth-form-footer { text-align: center; font-size: 12px; color: var(--auth-muted); margin: 28px 0 0; }
.auth-page .auth-form-footer a { font-weight: 600; margin-left: 6px; }
.auth-page .auth-form-footer a span { display: inline-block; margin-left: 3px; transition: transform .2s; }
.auth-page .auth-form-footer a:hover span { transform: translateX(3px); }
.auth-page .auth-admin-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--auth-muted); font-size: 11px; margin: 23px 0 0; }
.auth-page .auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--auth-border); color: var(--auth-muted); font-size: 10px; }
.auth-page .auth-footer a { color: var(--auth-muted); }
.auth-page.auth-page--register .auth-form-wrap { padding: 24px 0 28px; }
.auth-page.auth-page--register .auth-heading { margin-bottom: 22px; }
.auth-page.auth-page--register .auth-heading h1 { font-size: 29px; }
.auth-page.auth-page--register .auth-form { gap: 16px; }
.auth-page.auth-page--register .auth-form-footer { margin-top: 22px; }
.auth-page.auth-page--admin { --auth-ink: #edf2fa; --auth-muted: #96a5bc; --auth-accent: #74d7e7; --auth-accent-hover: #9ee7ef; --auth-border: #2a3a50; --auth-field-bg: #142337; --auth-panel: #101e30; --auth-focus: rgba(116,215,231,.12); background: radial-gradient(ellipse at 18% 12%,#1a2e46,transparent 56%),#0a1320; }
.auth-page.auth-page--admin .auth-layout { border-color: #26374d; box-shadow: 0 30px 90px -30px rgba(0,0,0,.55); }
.auth-page.auth-page--admin .auth-visual { color: #e0ebf7; background: radial-gradient(ellipse at 40% 65%,rgba(35,93,119,.3),transparent 67%),linear-gradient(150deg,#182f46,#15263b); border-right: 1px solid #26394e; }
.auth-page.auth-page--admin .auth-visual::before { background-image: linear-gradient(rgba(119,181,203,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(119,181,203,.07) 1px,transparent 1px); }
.auth-page.auth-page--admin .auth-brand-tag { color: #8cacc2; border-color: #365267; }
.auth-page.auth-page--admin .auth-brand-mark { background: linear-gradient(135deg,#5095b5,#3b5c89); }
.auth-page.auth-page--admin .auth-visual h2 > span { background-image: linear-gradient(110deg,#8de1e8,#83a9df); }
.auth-page.auth-page--admin .auth-visual-kicker, .auth-page.auth-page--admin .auth-visual-description, .auth-page.auth-page--admin .auth-visual-footer { color: #93adc3; }
.auth-page.auth-page--admin .auth-visual-kicker > span { background: #7dcfdd; box-shadow: 0 0 0 4px rgba(125,207,221,.1); }
.auth-page.auth-page--admin .auth-art { color: #74b7cf; }
.auth-page.auth-page--admin .auth-sphere-light { stop-color: #a2dde4; }
.auth-page.auth-page--admin .auth-sphere-mid { stop-color: #4e90ac; }
.auth-page.auth-page--admin .auth-sphere-dark { stop-color: #284c78; }
.auth-page.auth-page--admin .auth-art-label { background: #203b50; border-color: #37566c; box-shadow: 0 10px 30px -12px rgba(0,0,0,.3); }
.auth-page.auth-page--admin .auth-art-label b { color: #d5e5ee; }
.auth-page.auth-page--admin .auth-art-label small { color: #98b1c4; }
.auth-page.auth-page--admin .auth-art-icon { color: #85cfd9; background: #294b60; }
.auth-page.auth-page--admin .auth-visual-footer-line { background: #55778b; }
.auth-page.auth-page--admin .auth-input::placeholder { color: #8292aa; }
.auth-page.auth-page--admin .auth-input:hover { border-color: #466178; }
.auth-page.auth-page--admin .auth-input:focus { border-color: var(--auth-accent); }
.auth-page.auth-page--admin .auth-input-icon { color: #8096b1; }
.auth-page.auth-page--admin .auth-submit { background: linear-gradient(110deg,#92dce5,#77bbd9); color: #142c41; box-shadow: 0 5px 18px -8px rgba(96,182,206,.3); }
.auth-page.auth-page--admin .auth-submit:hover:not(:disabled) { box-shadow: 0 10px 22px -10px rgba(120,201,220,.45); }
.auth-page.auth-page--admin .auth-alert { background: #362533; border-color: #633446; color: #ffc2c9; }
.auth-page.auth-page--admin .auth-field-error { color: #ffa8b5; }
.auth-page.auth-motion-paused .auth-orbit-outer, .auth-page.auth-motion-paused .auth-orb-core, .auth-page.auth-motion-paused .auth-sparkles, .auth-page.auth-motion-paused .auth-art-label { animation-play-state: paused; }
@keyframes auth-layout-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-panel-in { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-orbit-turn { to { transform: rotate(360deg); } }
@keyframes auth-orb-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes auth-label-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes auth-sparkle { from { opacity: .4; } to { opacity: .9; } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) { .auth-page .auth-layout { min-height: 820px; } .auth-page .auth-visual-copy { margin-top: 78px; } }
@media (max-width: 1100px) {
    .auth-page { padding: 24px; }
    .auth-page .auth-layout { min-height: calc(100svh - 48px); }
    .auth-page .auth-visual { padding: 34px 30px 28px; }
    .auth-page .auth-main { padding: 30px 34px 24px; }
    .auth-page .auth-brand-tag, .auth-page .auth-visual-index { display: none; }
    .auth-page .auth-visual-copy { margin-top: 58px; }
    .auth-page .auth-art-label--top { right: 0; }
    .auth-page .auth-art-label--bottom { left: 0; }
}
@media (max-width: 820px) {
    .auth-page { padding: 22px; background: radial-gradient(ellipse at 15% 0%,#e9e5fc,transparent 55%),#f4f6fc; }
    .auth-page .auth-layout { display: block; max-width: 540px; min-height: auto; border-radius: 22px; }
    .auth-page .auth-visual { display: none; }
    .auth-page .auth-main { padding: 24px 36px 22px; min-height: min(720px,calc(100svh - 44px)); }
    .auth-page .auth-mobile-brand { display: inline-flex; margin-bottom: 31px; font-size: 22px; }
    .auth-page .auth-mobile-brand .auth-brand-mark { width: 36px; height: 36px; font-size: 26px; border-radius: 11px; }
    .auth-page .auth-form-wrap { padding: 22px 0 34px; }
    .auth-page .auth-heading { margin-bottom: 26px; }
    .auth-page .auth-heading h1 { font-size: 30px; }
    .auth-page .auth-input { font-size: 16px; }
    .auth-page.auth-page--register .auth-heading h1 { font-size: 27px; }
    .auth-page.auth-page--register .auth-form-wrap { padding: 16px 0 28px; }
    .auth-page.auth-page--register .auth-mobile-brand { margin-bottom: 24px; }
    .auth-page.auth-page--admin { background: radial-gradient(ellipse at 0 0%,#233b52,transparent 65%),#0c1827; }
    .auth-page .auth-orbit-outer, .auth-page .auth-orb-core, .auth-page .auth-art-label, .auth-page .auth-sparkles { animation: none; }
}
@media (max-width: 420px) {
    .auth-page { padding: 12px; }
    .auth-page .auth-layout { border-radius: 18px; }
    .auth-page .auth-main { padding: 20px 22px; min-height: calc(100svh - 24px); }
    .auth-page .auth-heading h1 { font-size: 29px; }
    .auth-page.auth-page--register .auth-heading h1 { font-size: 24px; letter-spacing: -.8px; }
    .auth-page .auth-description { font-size: 12px; }
    .auth-page .auth-code-row { gap: 8px; }
    .auth-page .auth-code-button { min-width: 102px; padding: 0 9px; }
    .auth-page .auth-code-row .auth-input { padding: 0 10px; }
    .auth-page .auth-code-row .auth-input::placeholder { font-size: 12px; }
    .auth-page .auth-footer { font-size: 9px; }
}
@media (hover: none) { .auth-page .auth-submit:hover:not(:disabled) { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
