:root {
    --auth-ink: #0f172a;
    --auth-ink-2: #334155;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-bg: #f4f4f5;
    --auth-card: #ffffff;
    --auth-primary: #18181b;
    --auth-primary-hover: #27272a;
    --auth-primary-ring: rgba(24, 24, 27, 0.12);
    --auth-ioa: #4338ca;
    --auth-ioa-soft: #eef2ff;
    --auth-ok: #047857;
    --auth-ok-bg: #ecfdf5;
    --auth-err: #b91c1c;
    --auth-err-bg: #fef2f2;
    --auth-radius: 16px;
    --auth-radius-sm: 10px;
    --auth-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 48px rgba(15, 23, 42, 0.07);
    --auth-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--auth-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--auth-ink);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
}
.auth-page__grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.auth-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 40px 36px;
    background: var(--auth-primary);
    color: #fafafa;
}
.auth-aside__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s;
}
.auth-aside__brand:hover {
    opacity: 0.88;
    color: #fff;
    text-decoration: none;
}
.auth-aside__brand-mark {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.auth-aside__brand img {
    height: 32px;
    width: auto;
    max-width: 140px;
    display: block;
    object-fit: contain;
}
.auth-aside__hero {
    margin-top: auto;
    margin-bottom: auto;
    padding: 20px 0;
    max-width: 18rem;
}
.auth-aside__hero h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.auth-aside__hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(250, 250, 250, 0.72);
}
.auth-aside__points {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.auth-aside__points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(250, 250, 250, 0.85);
    line-height: 1.5;
}
.auth-aside__points li strong {
    font-weight: 600;
    color: #fff;
}
.auth-lead strong {
    font-weight: 600;
    color: var(--auth-ink);
}
.auth-aside__points li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    opacity: 0.9;
}
.auth-aside__copy {
    font-size: 12px;
    color: rgba(250, 250, 250, 0.45);
}
.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    background: var(--auth-bg);
}
.auth-brand--mobile {
    display: none;
}
.auth-panel {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.auth-panel__card {
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 32px 32px 28px;
}
.auth-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-muted);
}
.auth-panel__card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--auth-ink);
}
.auth-lead {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--auth-muted);
    line-height: 1.6;
}
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: var(--auth-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid;
}
.auth-alert::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    align-self: stretch;
    border-radius: 4px;
    margin: 2px 0;
}
.auth-alert--error {
    color: var(--auth-err);
    background: var(--auth-err-bg);
    border-color: #fecaca;
}
.auth-alert--error::before { background: var(--auth-err); }
.auth-alert--success {
    color: var(--auth-ok);
    background: var(--auth-ok-bg);
    border-color: #a7f3d0;
}
.auth-alert--success::before { background: var(--auth-ok); }
.auth-alert--info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.auth-alert--info::before { background: #3b82f6; }
.auth-field {
    margin-bottom: 18px;
}
.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-ink-2);
}
.auth-input,
.auth-select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--auth-ink);
    background: #fafafa;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius-sm);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:hover,
.auth-select:hover {
    border-color: #cbd5e1;
    background: #fff;
}
.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: var(--auth-ink-2);
    background: #fff;
    box-shadow: 0 0 0 3px var(--auth-primary-ring);
}
.auth-select { cursor: pointer; }
.auth-hint {
    margin: 8px 0 0;
    min-height: 1.35em;
    font-size: 13px;
    line-height: 1.45;
    color: var(--auth-muted);
}
.auth-hint.ok { color: var(--auth-ok); }
.auth-hint.err { color: var(--auth-err); }
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--auth-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.auth-btn:active { transform: scale(0.99); }
.auth-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--auth-primary-ring);
}
.auth-btn--primary {
    color: #fff;
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}
.auth-btn--primary:hover {
    background: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
    color: #fff;
    text-decoration: none;
}
.auth-btn--ioa {
    justify-content: flex-start;
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
    color: var(--auth-ioa);
    background: var(--auth-ioa-soft);
    border-color: #c7d2fe;
}
.auth-btn--ioa:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: var(--auth-ioa);
    text-decoration: none;
}
.auth-btn--ioa-filled {
    color: #fff;
    background: var(--auth-ioa);
    border-color: var(--auth-ioa);
}
.auth-btn--ioa-filled:hover {
    background: #3730a3;
    border-color: #3730a3;
    color: #fff;
}
.auth-btn--ioa-filled .auth-btn__ioa-tag {
    color: var(--auth-ioa);
    background: rgba(255, 255, 255, 0.95);
}
.auth-btn__ioa-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #fff;
    background: var(--auth-ioa);
    border-radius: 5px;
}
.auth-btn__ioa-text {
    flex: 1;
    text-align: left;
    font-weight: 600;
}
.auth-btn__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.65;
}
.auth-btn--ioa:hover .auth-btn__chevron {
    opacity: 1;
}
.auth-btn--ioa-filled .auth-btn__chevron {
    opacity: 0.85;
}
.auth-btn--ioa:not(:has(.auth-btn__ioa-text)) {
    justify-content: center;
    color: var(--auth-ink);
    background: #fff;
    border-color: var(--auth-line);
}
.auth-btn--ioa:not(:has(.auth-btn__ioa-text)):hover {
    background: #fafafa;
    border-color: #cbd5e1;
    color: var(--auth-ink);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--auth-muted);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}
.auth-steps {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: auth-step;
}
.auth-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--auth-ink-2);
    line-height: 1.5;
}
.auth-steps li:last-child { margin-bottom: 0; }
.auth-steps__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
    color: var(--auth-ink-2);
    background: #f4f4f5;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
}
.auth-steps__text strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: var(--auth-ink);
}
.auth-note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    font-size: 12px;
    color: var(--auth-muted);
    line-height: 1.6;
}
.auth-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
}
.auth-foot a {
    color: var(--auth-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
.auth-foot a:hover {
    color: var(--auth-ink);
    text-decoration: none;
}
.auth-foot__sep {
    color: var(--auth-line);
    user-select: none;
}
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        display: none;
    }
    .auth-brand--mobile {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0 auto 24px;
        font-weight: 700;
        font-size: 1rem;
        color: var(--auth-ink);
        text-decoration: none;
    }
    .auth-brand--mobile:hover {
        color: var(--auth-primary);
        text-decoration: none;
    }
    .auth-brand--mobile img {
        height: 32px;
        width: auto;
        max-width: 120px;
        object-fit: contain;
    }
    .auth-main {
        padding: 32px 20px 40px;
    }
    .auth-panel__card {
        padding: 26px 22px 24px;
    }
}
@media (max-width: 400px) {
    .auth-main { padding: 24px 16px 32px; }
    .auth-panel__card { padding: 22px 18px 20px; }
}
