/**
 * 登录页专属样式。
 *
 * 使用统一浅色背景与居中单卡片布局，避免左右分栏造成割裂感。
 */
:root {
    --login-ink: #12233a;
    --login-muted: #718096;
    --login-blue: #2c69eb;
    --login-cyan: #39c6d7;
    --login-border: #dce5ef;
    --login-danger: #dc4556;
}

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

body.login-page {
    min-width: 320px;
    color: var(--login-ink);
    background: #eff5fb;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: #145df5;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-visual {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(92, 214, 224, .18), transparent 26%),
        radial-gradient(circle at 88% 84%, rgba(86, 111, 236, .15), transparent 30%),
        linear-gradient(145deg, #f5fbfd 0%, #eff4fb 52%, #f5f4fc 100%);
}

.page-grid {
    position: absolute;
    inset: 0;
    opacity: .52;
    background-image:
        linear-gradient(rgba(49, 105, 170, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 105, 170, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.aurora-one {
    top: 22%;
    left: -9%;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(40, 152, 191, .1);
    box-shadow:
        0 0 0 80px rgba(62, 183, 207, .025),
        0 0 0 160px rgba(62, 183, 207, .018);
}

.aurora-two {
    right: -7%;
    bottom: -22%;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(80, 102, 211, .09);
    box-shadow:
        0 0 0 95px rgba(92, 110, 223, .024),
        0 0 0 190px rgba(92, 110, 223, .015);
}

.radar-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(76vw, 880px);
    color: rgba(51, 129, 178, .05);
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    transform: translate(-50%, -49%) rotate(5deg);
}

.journey-ghost {
    position: absolute;
    top: 50%;
    left: 49%;
    width: min(78vw, 960px);
    color: rgba(103, 86, 207, .075);
    fill: rgba(255, 255, 255, .2);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transform: translate(-50%, -50%) rotate(-3deg);
}

.register-page .page-visual {
    background:
        radial-gradient(circle at 10% 16%, rgba(104, 218, 211, .19), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(135, 102, 226, .18), transparent 34%),
        linear-gradient(132deg, #f4fbfa 0%, #f3f5fb 52%, #f7f2fc 100%);
}

.register-page .aurora-one {
    border-color: rgba(41, 171, 157, .12);
    box-shadow:
        0 0 0 80px rgba(72, 195, 181, .026),
        0 0 0 160px rgba(72, 195, 181, .018);
}

.register-page .aurora-two {
    border-color: rgba(125, 88, 205, .11);
    box-shadow:
        0 0 0 95px rgba(131, 94, 213, .028),
        0 0 0 190px rgba(131, 94, 213, .018);
}

.register-global-page .page-visual {
    background:
        radial-gradient(circle at 9% 18%, rgba(76, 190, 220, .18), transparent 29%),
        radial-gradient(circle at 86% 78%, rgba(73, 105, 226, .17), transparent 34%),
        linear-gradient(135deg, #f3fafc 0%, #f2f5fb 52%, #f3f3fc 100%);
}

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 92px;
    padding: 0 clamp(28px, 5vw, 76px);
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--login-ink);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(31, 154, 184, .36);
    border-radius: 50%;
    background: linear-gradient(145deg, #173a5d, #0b223b);
    box-shadow: 0 8px 18px rgba(17, 54, 85, .14);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
    position: absolute;
    border: 1px solid rgba(80, 222, 237, .75);
    border-radius: 50%;
    content: "";
}

.brand-mark::before {
    width: 23px;
    height: 23px;
}

.brand-mark::after {
    width: 7px;
    height: 7px;
    border-color: #fff;
    background: #35cadc;
    box-shadow: 0 0 9px #35cadc;
}

.brand-mark i {
    top: 7px;
    right: 3px;
    width: 5px;
    height: 5px;
    border: 0;
    background: #fff;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: .06em;
}

.brand-name small {
    margin-top: 3px;
    color: #91a0b2;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .22em;
}

.header-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.back-home,
.language-switch {
    color: #67768a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.back-home {
    display: inline-flex;
    gap: 6px;
    padding: 9px 12px;
    align-items: center;
    border-radius: 99px;
}

.back-home svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.back-home:hover {
    color: #245fda;
    background: rgba(255, 255, 255, .62);
}

.language-switch {
    padding: 8px 12px;
    border: 1px solid rgba(187, 201, 218, .7);
    border-radius: 99px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
}

.language-switch:hover {
    border-color: #9eb8e7;
    color: #245fda;
    background: rgba(255, 255, 255, .9);
}

.login-main {
    display: grid;
    width: min(100%, 1120px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 112px 24px 42px;
    box-sizing: border-box;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 458px;
    gap: clamp(54px, 7vw, 104px);
}

.login-context {
    min-width: 0;
}

.context-copy {
    padding-left: 4px;
}

.context-eyebrow {
    display: flex;
    gap: 9px;
    margin-bottom: 17px;
    align-items: center;
    color: #2b829b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.context-eyebrow > span:first-child {
    color: #36b7c8;
    font-size: 15px;
}

.context-copy h2 {
    max-width: 540px;
    font-size: clamp(36px, 3.25vw, 50px);
    line-height: 1.22;
    letter-spacing: -.045em;
}

.context-copy > p {
    max-width: 520px;
    margin-top: 18px;
    color: #66788d;
    font-size: 14px;
    line-height: 1.8;
}

.context-report {
    width: min(100%, 510px);
    margin-top: 35px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .52);
    box-shadow:
        0 18px 44px rgba(63, 91, 127, .09),
        0 0 0 1px rgba(135, 164, 193, .1);
    backdrop-filter: blur(16px);
}

.context-report__head {
    display: flex;
    padding: 16px 19px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(127, 156, 188, .12);
}

.context-report__head > div {
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.context-report__head span {
    color: #8998a9;
    font-size: 9px;
    letter-spacing: .08em;
}

.context-report__head strong {
    color: #24364c;
    font-size: 13px;
}

.context-report__head > em {
    display: inline-flex;
    gap: 6px;
    padding: 5px 9px;
    align-items: center;
    border: 1px solid rgba(42, 180, 138, .13);
    border-radius: 99px;
    color: #3f8d74;
    background: rgba(224, 248, 240, .68);
    font-size: 9px;
    font-style: normal;
}

.context-report__head > em i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3cb98e;
}

.context-report__body {
    display: grid;
    padding: 18px 20px 20px;
    align-items: center;
    grid-template-columns: 128px 1fr;
    gap: 22px;
}

.context-score {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#36bfcf 0 23%, #427cf0 23% 78%, rgba(104, 144, 192, .12) 78% 100%);
    box-shadow: 0 10px 25px rgba(56, 116, 205, .13);
}

.context-score::before {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(247, 251, 254, .96);
    content: "";
}

.context-score > div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
}

.context-score strong {
    color: #1c3550;
    font-size: 29px;
}

.context-score span {
    margin-left: 2px;
    color: #8a99aa;
    font-size: 8px;
}

.context-metrics {
    display: grid;
    gap: 14px;
}

.context-metrics > div {
    display: grid;
    gap: 7px;
}

.context-metrics span {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.context-metrics b {
    color: #5d6e82;
    font-size: 10px;
    font-weight: 600;
}

.context-metrics em {
    color: #347eaa;
    font-size: 10px;
    font-style: normal;
}

.context-metrics > div > i {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(90, 125, 166, .11);
}

.context-metrics > div > i::after {
    display: block;
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3c76ec, #37c3d2);
    content: "";
}

.context-trust {
    display: flex;
    gap: 24px;
    margin: 19px 0 0 4px;
    color: #718298;
    font-size: 10px;
}

.context-trust span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.context-trust i {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    color: #2897a9;
    background: rgba(46, 168, 185, .09);
    font-size: 9px;
    font-style: normal;
}

.context-trust b {
    font-weight: 500;
}

.register-page .context-eyebrow {
    color: #6757b7;
}

.register-page .context-eyebrow > span:first-child {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(105, 88, 190, .2);
    border-radius: 8px;
    color: #7564c5;
    background: rgba(255, 255, 255, .55);
    font-size: 9px;
    letter-spacing: 0;
}

.register-page.register-global-page .context-eyebrow {
    color: #326fbd;
}

.register-page.register-global-page .context-eyebrow > span:first-child {
    border-color: rgba(61, 118, 196, .2);
    color: #3978c9;
}

.register-journey {
    width: min(100%, 520px);
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 20px;
    background: rgba(255, 255, 255, .58);
    box-shadow:
        0 22px 50px rgba(70, 72, 126, .1),
        0 0 0 1px rgba(129, 120, 174, .09);
    backdrop-filter: blur(18px);
}

.register-journey__head {
    display: flex;
    padding: 17px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(115, 101, 177, .1);
    background: linear-gradient(90deg, rgba(113, 200, 194, .08), rgba(138, 109, 211, .07));
}

.register-journey__head > div {
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.register-journey__head span {
    color: #7a6abd;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}

.register-journey__head strong {
    color: #28344d;
    font-size: 14px;
}

.register-journey__head em {
    padding: 6px 10px;
    border: 1px solid rgba(105, 88, 190, .13);
    border-radius: 99px;
    color: #6757b7;
    background: rgba(255, 255, 255, .64);
    font-size: 9px;
    font-style: normal;
}

.register-journey__body {
    padding: 18px 20px 20px;
}

.journey-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
}

.journey-steps li {
    display: grid;
    min-height: 102px;
    padding: 13px 12px;
    box-sizing: border-box;
    align-content: start;
    border: 1px solid rgba(125, 113, 177, .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .48);
}

.journey-steps i {
    display: grid;
    width: 27px;
    height: 27px;
    margin-bottom: 10px;
    place-items: center;
    border: 1px solid rgba(117, 100, 197, .17);
    border-radius: 8px;
    color: #8d83ae;
    background: #f6f4fb;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

.journey-steps .is-active i {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(145deg, #45bdb4, #7662d0);
    box-shadow: 0 7px 15px rgba(106, 91, 192, .2);
}

.journey-steps .is-active {
    border-color: rgba(78, 178, 176, .2);
    background: linear-gradient(145deg, rgba(238, 251, 248, .76), rgba(247, 244, 253, .7));
    box-shadow: 0 8px 20px rgba(75, 130, 148, .07);
}

.journey-steps span {
    display: grid;
    gap: 3px;
}

.journey-steps b {
    color: #344158;
    font-size: 11px;
}

.journey-steps small {
    color: #8995a7;
    font-size: 9px;
    line-height: 1.45;
}

.journey-result {
    display: flex;
    gap: 11px;
    min-height: 62px;
    margin-top: 11px;
    padding: 11px 14px;
    box-sizing: border-box;
    align-items: center;
    border: 1px solid rgba(113, 96, 192, .11);
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(238, 250, 248, .88), rgba(244, 240, 251, .92));
}

.journey-result svg {
    width: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: #6f61be;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.journey-result span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.journey-result small {
    color: #8d82b1;
    font-size: 8px;
}

.journey-result strong {
    color: #37435b;
    font-size: 11px;
    line-height: 1.45;
}

.journey-result > i {
    display: grid;
    width: 28px;
    height: 28px;
    margin-left: auto;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #7261c3;
    background: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-style: normal;
}

.register-page .context-trust i {
    color: #6a5bbd;
    background: rgba(106, 91, 189, .09);
}

.register-page.register-global-page .context-trust i {
    color: #3476c6;
    background: rgba(52, 118, 198, .09);
}

.register-page .register-card {
    border-top-color: rgba(121, 100, 203, .42);
    box-shadow:
        0 28px 80px rgba(70, 64, 128, .16),
        0 3px 12px rgba(58, 83, 120, .05),
        0 0 0 1px rgba(150, 174, 202, .13);
}

.login-card {
    position: relative;
    width: min(100%, 458px);
    padding: 38px 42px 28px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 24px;
    background: rgba(255, 255, 255, .76);
    box-shadow:
        0 28px 80px rgba(50, 76, 115, .14),
        0 3px 12px rgba(58, 83, 120, .05),
        0 0 0 1px rgba(150, 174, 202, .13);
    backdrop-filter: blur(22px);
}

.card-orbit {
    position: absolute;
    top: -62px;
    right: -58px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(51, 137, 188, .1);
    border-radius: 50%;
    pointer-events: none;
}

.card-orbit::before,
.card-orbit::after {
    position: absolute;
    border: 1px solid rgba(51, 137, 188, .075);
    border-radius: 50%;
    content: "";
}

.card-orbit::before {
    inset: 25px;
}

.card-orbit::after {
    inset: 54px;
}

.card-orbit i {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #40bdce;
    box-shadow: 0 0 0 5px rgba(64, 189, 206, .09);
}

.card-orbit i:first-child {
    top: 38px;
    left: 14px;
}

.card-orbit i:nth-child(2) {
    right: 32px;
    bottom: 18px;
    background: #6981e9;
}

.card-orbit i:last-child {
    top: 78px;
    left: 57px;
    width: 3px;
    height: 3px;
}

.login-heading {
    margin: 4px 0 30px;
}

.card-register-link + .login-heading h1 {
    padding-right: 132px;
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.login-heading p {
    margin-top: 9px;
    color: var(--login-muted);
    font-size: 13px;
}

.card-register-link {
    position: absolute;
    z-index: 2;
    top: 38px;
    right: 42px;
    display: inline-flex;
    min-height: 34px;
    padding: 0 15px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(44, 105, 235, .28);
    border-radius: 99px;
    color: #2c69eb;
    background: rgba(255, 255, 255, .5);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card-register-link:hover {
    border-color: rgba(44, 105, 235, .5);
    color: #1e58c8;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 18px rgba(44, 105, 235, .1);
}

.card-register-link:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .18);
    outline-offset: 2px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-tabs {
    display: grid;
    padding: 4px;
    border: 1px solid rgba(190, 204, 222, .72);
    border-radius: 11px;
    background: rgba(237, 243, 250, .74);
    grid-template-columns: 1fr 1fr;
}

.login-tab {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #718096;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.login-tab:hover {
    color: #315fbd;
}

.login-tab.is-active {
    color: #235fdb;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 10px rgba(42, 83, 139, .1);
}

.login-tab:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .18);
    outline-offset: 1px;
}

.login-panel {
    display: grid;
    gap: 18px;
}

.login-panel[hidden] {
    display: none;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group > label {
    font-size: 12px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #96a2b2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transform: translateY(-50%);
    pointer-events: none;
    transition: stroke .2s ease;
}

.input-wrap input {
    width: 100%;
    height: 51px;
    box-sizing: border-box;
    padding: 0 46px;
    outline: 0;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    color: #142234;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 2px 4px rgba(23, 43, 77, .02);
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input::placeholder {
    color: #a8b3c1;
}

/* 页面已提供统一的密码显隐按钮，隐藏 Edge/IE 自动注入的重复控件。 */
.input-wrap input[type="password"]::-ms-reveal,
.input-wrap input[type="password"]::-ms-clear {
    display: none;
}

.input-wrap input:hover {
    border-color: #c5d1df;
}

.input-wrap input:focus {
    border-color: #4f82eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .09);
}

.input-wrap:focus-within > svg {
    stroke: #3e79ed;
}

.field-check {
    position: absolute;
    top: 50%;
    right: 16px;
    display: none;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #27b887;
    font-size: 10px;
    transform: translateY(-50%);
}

.field-group.is-valid .field-check {
    display: grid;
}

.field-group.is-valid .input-wrap input {
    border-color: #8dd9c2;
}

.field-group.is-error .input-wrap input {
    border-color: #e57c89;
    box-shadow: 0 0 0 4px rgba(220, 69, 86, .07);
}

.field-hint,
.field-error {
    min-height: 14px;
    margin: -2px 1px 0;
    color: #8a95a4;
    font-size: 10px;
    line-height: 1.4;
}

.field-error {
    display: none;
    color: var(--login-danger);
}

.field-group.is-error .field-hint {
    display: none;
}

.field-group.is-error .field-error {
    display: block;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #8e9aaa;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #3975ed;
    background: #f0f5ff;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.eye-closed,
.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.verification-wrap input {
    padding-right: 128px;
}

.verification-button {
    position: absolute;
    top: 50%;
    right: 9px;
    min-width: 106px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #2f68dc;
    background: #eef4ff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease;
}

.verification-button:hover,
.verification-button:focus-visible {
    color: #194fae;
    background: #e2ecff;
}

.verification-button:disabled {
    color: #8a98ac;
    background: #f1f3f6;
    cursor: wait;
}

.form-options {
    display: flex;
    margin-top: -2px;
    align-items: center;
    justify-content: flex-end;
}

.text-button {
    text-decoration: none;
    padding: 3px 0;
    border: 0;
    color: #3975ed;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.reset-password-page .login-main {
    display: flex;
    width: min(100%, 620px);
    justify-content: center;
}

.reset-password-page .login-card {
    width: min(100%, 520px);
}

.reset-password-page .login-heading {
    margin-bottom: 24px;
}

.reset-password-page .login-form {
    gap: 15px;
}

.text-button:hover {
    color: #1e58c8;
}

.submit-button {
    position: relative;
    display: flex;
    width: 100%;
    height: 52px;
    margin-top: 3px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(102deg, #2468e7, #4b7af1 54%, #4775ea);
    box-shadow: 0 13px 28px rgba(44, 103, 222, .24);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.submit-button::before {
    position: absolute;
    top: -120%;
    left: -25%;
    width: 25%;
    height: 340%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
    content: "";
    transform: rotate(22deg);
    transition: left .65s ease;
}

.submit-button:hover {
    box-shadow: 0 16px 34px rgba(44, 103, 222, .31);
    filter: saturate(1.08);
    transform: translateY(-1px);
}

.submit-button:hover::before {
    left: 115%;
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:disabled {
    cursor: wait;
    filter: grayscale(.15);
}

.submit-button svg {
    position: absolute;
    right: 20px;
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform .2s ease;
}

.submit-button:hover svg {
    transform: translateX(3px);
}

.auth-switch {
    display: flex;
    gap: 5px;
    margin-top: -2px;
    align-items: center;
    justify-content: center;
    color: #7d8999;
    font-size: 11px;
}

.auth-switch a {
    color: #2c69eb;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #1e58c8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-switch a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(59, 130, 246, .18);
    outline-offset: 2px;
}

.register-card .login-heading {
    margin-bottom: 24px;
}

.register-card .login-form {
    gap: 15px;
}

.agreement-field {
    display: grid;
    gap: 6px;
    margin-top: -1px;
}

.agreement-line {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    color: #687689;
    font-size: 11px;
    line-height: 1.55;
}

.agreement-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.agreement-label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    cursor: pointer;
}

.agreement-checkbox {
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #bdc9d8;
    border-radius: 5px;
    background: rgba(255, 255, 255, .82);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.agreement-checkbox svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.agreement-input:checked + .agreement-label .agreement-checkbox {
    border-color: #3975ed;
    background: #3975ed;
}

.agreement-input:checked + .agreement-label .agreement-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.agreement-input:focus-visible + .agreement-label .agreement-checkbox {
    border-color: #3975ed;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.agreement-link {
    border-radius: 3px;
    color: #2c69eb;
    font-weight: 700;
    text-underline-offset: 3px;
}

.agreement-link:hover {
    color: #1e58c8;
}

.agreement-link:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .18);
    outline-offset: 2px;
}

.agreement-error {
    display: none;
    margin: 0 0 0 23px;
    color: var(--login-danger);
    font-size: 10px;
    line-height: 1.45;
}

.agreement-field.is-error .agreement-checkbox {
    border-color: #e57c89;
    box-shadow: 0 0 0 4px rgba(220, 69, 86, .07);
}

.agreement-field.is-error .agreement-error {
    display: block;
}

.agreement-dialog {
    width: min(680px, calc(100vw - 32px));
    height: min(640px, calc(100dvh - 64px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    color: #26364a;
    background: #fff;
    box-shadow: 0 18px 56px rgba(23, 42, 71, .22);
}

.agreement-dialog::backdrop {
    background: rgba(28, 42, 60, .46);
}

.agreement-dialog__panel {
    display: grid;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.agreement-dialog__header,
.agreement-dialog__footer {
    display: flex;
    padding: 12px 18px;
    align-items: center;
    background: #fff;
}

.agreement-dialog__header {
    justify-content: space-between;
    border-bottom: 1px solid #e8edf3;
}

.agreement-dialog__header strong {
    font-size: 15px;
}

.agreement-dialog__close {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #6f7d8f;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.agreement-dialog__close:hover,
.agreement-dialog__close:focus-visible {
    color: #285fce;
    background: #eaf1ff;
}

.agreement-dialog__content {
    min-height: 0;
    padding: 8px 20px 22px;
    overflow-y: auto;
    color: #48576a;
    background: #fff;
    font-size: 13px;
    line-height: 1.75;
    outline: 0;
}

.agreement-dialog__content > h1 {
    display: none;
}

.agreement-dialog__content .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 4px 0 14px;
    color: #7b8796;
    font-size: 11px;
}

.agreement-dialog__content h2 {
    margin: 20px 0 6px;
    color: #26364a;
    font-size: 14px;
    line-height: 1.5;
}

.agreement-dialog__content p {
    margin: 6px 0;
}

.agreement-dialog__content ul {
    margin: 6px 0;
    padding-left: 20px;
}

.agreement-dialog__content li + li {
    margin-top: 4px;
}

.agreement-dialog__content strong {
    color: #26364a;
}

.agreement-dialog__status {
    margin: 0;
    padding: 44px 0;
    color: #7b8796;
    text-align: center;
}

.agreement-dialog__footer {
    justify-content: flex-end;
    border-top: 1px solid #e8edf3;
}

.agreement-dialog__confirm {
    min-width: 132px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #326de8;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.agreement-dialog__confirm:not(:disabled):hover,
.agreement-dialog__confirm:not(:disabled):focus-visible {
    background: #245dcc;
}

.agreement-dialog__confirm:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.login-feedback {
    display: none;
    gap: 10px;
    min-height: 20px;
    padding: 11px 13px;
    align-items: flex-start;
    border: 1px solid #bde4d7;
    border-radius: 9px;
    color: #187858;
    background: #f0faf7;
    font-size: 11px;
    line-height: 1.5;
}

.login-feedback.is-visible {
    display: flex;
}

.login-feedback.is-error {
    border-color: #f0c1c7;
    color: #a52f3d;
    background: #fff4f5;
}

.login-feedback.is-error > span {
    background: #d94c5d;
}

.login-feedback > span {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #26a97c;
    font-size: 9px;
}

.card-footer {
    display: flex;
    gap: 8px;
    margin-top: 23px;
    align-items: center;
    justify-content: center;
    color: #98a3b1;
    font-size: 9px;
}

.privacy-note {
    display: flex;
    gap: 6px;
    align-items: center;
}

.privacy-note svg {
    width: 13px;
    fill: none;
    stroke: #8ca0b8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

@media (max-height: 760px) and (min-width: 641px) {
    .site-header {
        height: 76px;
    }

    .login-main {
        padding-top: 88px;
        padding-bottom: 22px;
    }

    .login-card {
        padding-top: 30px;
        padding-bottom: 22px;
    }

    .login-heading {
        margin: 2px 0 24px;
    }

    .context-copy h2 {
        font-size: 39px;
    }

    .context-report {
        margin-top: 24px;
    }
}

@media (max-width: 960px) {
    .login-main {
        width: 100%;
        justify-items: center;
        grid-template-columns: 1fr;
    }

    .login-context {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header {
        position: absolute;
        height: 76px;
        padding: 0 20px;
    }

    .brand-name strong {
        font-size: 16px;
    }

    .brand-name small {
        font-size: 7px;
    }

    .back-home {
        display: none;
    }

    .login-main {
        padding: 96px 16px 28px;
        align-items: start;
    }

    .login-card {
        padding: 32px 24px 24px;
        border-radius: 20px;
    }

    /* iOS Safari 会在聚焦字号小于 16px 的输入框时自动缩放页面。 */
    .input-wrap input {
        font-size: 16px;
    }

    .card-register-link {
        display: none;
    }

    .login-heading {
        margin: 2px 0 27px;
    }

    .card-register-link + .login-heading h1 {
        padding-right: 0;
        font-size: 29px;
    }

    .card-footer > span,
    .card-footer > p:last-child {
        display: none;
    }

    .agreement-dialog {
        width: calc(100vw - 24px);
        height: calc(100dvh - 32px);
        border-radius: 10px;
    }

    .agreement-dialog__header,
    .agreement-dialog__footer {
        padding: 11px 14px;
    }

    .agreement-dialog__content {
        padding: 6px 16px 18px;
        font-size: 13px;
    }

    .agreement-dialog__footer {
        justify-content: stretch;
    }

    .agreement-dialog__confirm {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding: 0 16px;
    }

    .login-main {
        padding-right: 12px;
        padding-left: 12px;
    }

    .login-card {
        padding-right: 20px;
        padding-left: 20px;
    }

    .card-register-link {
        right: 20px;
    }
}

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

/* 登录仅展示简短确认内容，在桌面和手机端均保持紧凑弹窗。 */
.agreement-dialog.login-agreement-dialog {
    width: min(380px, calc(100vw - 32px));
    /* 原生 dialog 居中时显式按内容定高，避免 auto 被上下定位拉伸。 */
    height: fit-content;
    min-height: 0;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

/* 覆盖协议阅读面板的满高网格，确认框只占用内容实际需要的高度。 */
.login-agreement-dialog .agreement-dialog__panel {
    display: block;
    height: auto;
}

.login-agreement-dialog .agreement-dialog__header,
.login-agreement-dialog .agreement-dialog__footer {
    padding: 8px 16px;
}

.login-agreement-dialog .agreement-dialog__content {
    padding: 10px 16px;
    line-height: 1.5;
}

.login-agreement-dialog .agreement-dialog__content p {
    margin: 0 0 6px;
}

/* 微信启用时仅扩展 Tab 列数，保留原有按钮视觉样式。 */
.login-tabs--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#credential-actions { display: grid; gap: 18px; }
#credential-actions[hidden] { display: none; }

/* 登录方式图标默认跟随选中态颜色，微信图标固定为品牌绿色，窄屏允许文字自然换行。 */
.login-tab { display: flex; align-items: center; justify-content: center; gap: 4px; }
.login-tabs--three .login-tab { padding: 0 6px; }
.login-tab-icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-tab-icon--wechat { fill: #07c160; stroke: none; }
.login-tab-icon--wechat .login-tab-icon-wechat-front { stroke: #fff; stroke-width: .8; }
.login-tab-icon--wechat circle { fill: #fff; }
@media (max-width: 480px) { .login-tabs--three .login-tab { padding: 4px 6px; } }
