*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 登录/协议页不引 style.css：自带五档文字比例（与全站一致） */
:root {
    --kyd-text-scale: 1;
    --kyd-text-sm-min: 14px;
}
@media screen and (max-width: 767px) {
    :root { --kyd-text-scale: 0.7; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
    :root {
        --kyd-text-scale: clamp(
            0.7,
            calc(0.7 + (100vw - 768px) * 0.05 / 256px),
            0.75
        );
    }
}
@media screen and (min-width: 1025px) and (max-width: 1439px) {
    :root { --kyd-text-scale: 0.85; }
}
@media screen and (min-width: 1440px) and (max-width: 1679px) {
    :root { --kyd-text-scale: 0.9; }
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.web-login-page {
    font-family: "HarmonyOS Sans SC Light";
    background: #0b2434;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.web-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 56px;
}

.web-login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    /* 相对垂直居中整体上移，大屏上移略多 */
    transform: translateY(-8vh);
}

.web-login-logo {
    margin-bottom: 36px;
}

.web-login-logo a {
    display: inline-block;
    line-height: 0;
}

.web-login-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.web-login-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 36px;
    color: #fff;
    letter-spacing: 0.02em;
}

.web-login-form {
    text-align: left;
}

.web-login-field {
    margin-bottom: 18px;
}

.web-login-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 6px;
}

.web-login-field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.25;
    color: #1a1a1a;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.web-login-field input::placeholder {
    color: #9aa0a6;
}

.web-login-field input:hover {
    border-color: #cfd4dc;
}

.web-login-field input:focus {
    outline: none;
    border-color: #f15d22;
    box-shadow: 0 0 0 3px rgba(241, 93, 34, 0.2);
}

.web-login-hint {
    margin: -12px 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-align: left;
    line-height: 1.45;
}

.web-login-msg {
    min-height: 22px;
    margin: -8px 0 16px;
    font-size: 14px;
    color: #ffb4a8;
    text-align: left;
}

.web-login-msg:empty {
    margin-bottom: 8px;
}

.web-login-submit {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: none;
    border-radius: 999px;
    background: #f15d22;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.web-login-submit:hover {
    background: #ff6d2e;
}

.web-login-submit:active {
    transform: scale(0.99);
}

.web-login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.web-login-links {
    margin-top: 28px;
    text-align: left;
}

.web-login-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    margin-top: 14px;
    opacity: 0.95;
    transition: opacity 0.2s;
}

.web-login-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 登录页：忘记密码（左）与立即注册（右）同一行，与上方登录按钮同宽左右对齐 */
/* 注意：基类 .web-login-links a 为 display:block 会在 flex 行内占满整行导致换行，此处必须覆盖为行内级并限制宽度 */
.web-login-card .web-login-links.web-login-links--row-split {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 8px 12px;
}

.web-login-card .web-login-links.web-login-links--row-split > a {
    display: inline-block;
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50%;
    white-space: nowrap;
}

/* 注册：同意服务协议（勾选 + 协议链接） */
.web-login-agree {
    margin: 6px 0 4px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.web-login-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    margin: 0;
}

.web-login-agree-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: #f15d22;
    cursor: pointer;
}

.web-login-agree-label span {
    flex: 1;
    min-width: 0;
}

.web-login-agree-label a {
    color: #ffeb3b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.web-login-agree-label a:hover {
    color: #fff176;
}

/* 注册：验证码块（整行外边距） */
.web-login-code-wrap {
    margin-bottom: 18px;
}

/* 注册：验证码行（输入 + 获取验证码） */
.web-login-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.web-login-code-row .web-login-field {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.web-login-code-row .web-login-field--code-input input {
    width: 100%;
}

.web-login-code-send {
    flex: 0 0 auto;
    align-self: flex-end;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.web-login-code-send:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
}

.web-login-code-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 静态协议页（与登录页同色系） */
.web-legal-wrap {
    min-height: 100vh;
    padding: 24px 20px 48px;
    max-width: 960px;
    margin: 0 auto;
}

.web-legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.web-legal-header a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.web-legal-header a:hover {
    text-decoration: underline;
    color: #ffeb3b;
}

.web-legal-article {
    text-align: left;
}

/* 协议正文整体居中（与线上 foreground/xieyi 展示习惯一致） */
.web-legal-article--center {
    text-align: center;
}

.web-legal-article--center .web-legal-title {
    text-align: center;
}

.web-legal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: #fff;
}

.web-legal-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 28px;
}

.web-legal-body {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    max-width: 52em;
    margin: 0 auto;
}

.web-legal-body h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 1.5em 0 0.65em;
    color: #fff;
    text-align: center;
}

.web-legal-body h2:first-of-type {
    margin-top: 0.35em;
}

.web-legal-body p {
    margin: 0 0 0.85em;
    text-align: center;
}

/* 五档字号：Phone≤767 | Small 768–1024 | Mid 1025–1439 | Large 1440–1679 | XLarge≥1680 */
@media screen and (max-width: 1679px) {
    .web-login-title,
    .web-login-page--login .web-login-title--hero,
    .web-login-page--register .web-login-title--hero,
    .web-login-page--forgot .web-login-title--hero {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(20px * var(--kyd-text-scale, 1)));
    }
    .web-login-page--hero:not(.web-login-page--login):not(.web-login-page--register):not(.web-login-page--forgot) .web-login-title--hero {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(26px * var(--kyd-text-scale, 1)));
    }
    .web-login-field label,
    .web-login-page--login .web-login-field label,
    .web-login-page--register .web-login-field label,
    .web-login-page--forgot .web-login-field label,
    .web-login-page--hero .web-login-field label {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(14px * var(--kyd-text-scale, 1)));
    }
    .web-login-field input,
    .web-login-page--login .web-login-field .web-login-input-control,
    .web-login-page--register .web-login-field .web-login-input-control,
    .web-login-page--forgot .web-login-field .web-login-input-control,
    .web-login-page--hero .web-login-input-control {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(15px * var(--kyd-text-scale, 1)));
    }
    .web-login-hint,
    .web-login-msg,
    .web-login-agree,
    .web-login-code-send,
    .web-login-page--register .web-login-agree-label,
    .web-login-page--register .web-login-code-row--flat .web-login-code-send,
    .web-login-page--forgot .web-login-code-row--flat .web-login-code-send,
    .web-login-page--hero .web-login-code-row--hero .web-login-code-send {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(14px * var(--kyd-text-scale, 1)));
    }
    .web-login-submit,
    .web-login-links a,
    .web-login-page--register .web-login-btn-secondary,
    .web-login-page--forgot .web-login-btn-secondary,
    .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(15px * var(--kyd-text-scale, 1)));
    }
    .web-legal-header,
    .web-legal-meta {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(14px * var(--kyd-text-scale, 1)));
    }
    .web-legal-title {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(24px * var(--kyd-text-scale, 1)));
    }
    .web-legal-body {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(15px * var(--kyd-text-scale, 1)));
    }
    .web-legal-body h2 {
        font-size: max(var(--kyd-text-sm-min, 14px), calc(16px * var(--kyd-text-scale, 1)));
    }
}

@media screen and (min-width: 1440px) and (max-width: 1679px) {
    .web-login-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
    .web-legal-wrap {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1439px) {
    .web-login-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .web-legal-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .web-login-wrap {
        padding: 36px 20px 48px;
    }
    .web-login-page--login .web-login-hero-stack,
    .web-login-page--register .web-login-hero-stack,
    .web-login-page--forgot .web-login-hero-stack {
        max-width: 380px;
    }
    .web-login-logo img,
    .web-login-page--hero .web-login-logo--hero img {
        max-width: 260px;
    }
    .web-legal-wrap {
        padding: 24px 24px 40px;
    }
}

@media screen and (max-width: 767px) {
    .web-login-card {
        transform: translateY(-5vh);
    }
    .web-login-logo img,
    .web-login-page--hero .web-login-logo--hero img {
        max-width: 220px;
    }
    .web-login-wrap {
        padding: 28px 16px 40px;
    }
    .web-login-page--login .web-login-wrap,
    .web-login-page--register .web-login-wrap,
    .web-login-page--forgot .web-login-wrap {
        padding-top: 28px;
        padding-bottom: 32px;
    }
    .web-login-page--login,
    .web-login-page--register,
    .web-login-page--forgot {
        --wl-head-gap: 24px;
    }
    .web-login-page--hero .web-login-card {
        padding: 24px 22px 26px;
    }
    .web-login-page--hero .web-login-code-row--hero,
    .web-login-page--register .web-login-code-row--flat,
    .web-login-page--forgot .web-login-code-row--flat {
        flex-wrap: wrap;
    }
    .web-login-page--hero .web-login-code-row--hero .web-login-code-send,
    .web-login-page--register .web-login-code-row--flat .web-login-code-send,
    .web-login-page--forgot .web-login-code-row--flat .web-login-code-send {
        flex: 1 1 auto;
        width: 100%;
        min-height: 44px;
    }
    .web-login-page--register .web-login-actions-row,
    .web-login-page--forgot .web-login-actions-row {
        flex-direction: column;
    }
    .web-legal-wrap {
        padding: 20px 16px 36px;
    }
}

/*
 * Hero 登录页资源：template/1/default/images/web-login/
 *   bg-full.png — 全屏背景（仅此一张图，无叠加装饰）
 *   icon-email.jpg、icon-lock.jpg — 输入框左侧图标（文件名/extension 不一致时改下方变量）
 */

.web-login-page--hero {
    --wl-cyan: #00e5ff;
    --wl-bg-deep: #020817;
    --wl-card-border: rgba(0, 229, 255, 0.22);
    --wl-input-bg: rgba(4, 12, 28, 0.85);
    --wl-input-border: rgba(0, 229, 255, 0.28);

    --wl-bg-photo: url("../images/web-login/bg-full.png");

    --wl-icon-email: url("../images/web-login/icon-email.jpg");
    --wl-icon-lock: url("../images/web-login/icon-lock.jpg");

    /* 密码显示/隐藏：内置 SVG */
    --wl-pw-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='4.5' y1='4.5' x2='19.5' y2='19.5'/%3E%3C/svg%3E");
    --wl-pw-eye-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");

    font-family: system-ui, -apple-system, "Segoe UI";
    background: var(--wl-bg-deep);
    color: #fff;
}

.web-login-page--hero .web-login-scene {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
}

.web-login-page--hero .web-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.web-login-page--hero .web-login-bg-photo {
    position: absolute;
    inset: 0;
    background-color: var(--wl-bg-deep);
    background-image: var(--wl-bg-photo);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.web-login-page--hero .web-login-wrap {
    position: relative;
    z-index: 1;
    /* 长表单若继续 vertical center，整块上移会导致 Logo 贴顶；改为自上向下排布并留出顶栏呼吸区 */
    justify-content: flex-start;
    padding-top: clamp(52px, 8vh, 104px);
    padding-bottom: 48px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Logo、主标题、副标题在卡片外，与表单卡片纵向排布 */
.web-login-page--hero .web-login-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    transform: none;
    margin-bottom: auto;
}

.web-login-page--hero .web-login-card {
    width: 100%;
    margin: 0;
    transform: none;
    max-width: none;
    padding: 28px 34px 30px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(to bottom right, #07223f, #011024);
    border: 1px solid var(--wl-card-border);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.web-login-page--hero .web-login-hero-head {
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.web-login-page--hero .web-login-logo--hero {
    margin-bottom: 30px;
}

.web-login-page--hero .web-login-logo--hero a {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.web-login-page--hero .web-login-logo--hero img {
    max-width: 300px;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.web-login-page--hero .web-login-title--hero {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.web-login-page--hero .web-login-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 400;
}

.web-login-page--hero .web-login-field label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
}

.web-login-page--hero .web-login-input-row {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    border: 1px solid var(--wl-input-border);
    background: var(--wl-input-bg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.web-login-page--hero .web-login-input-row:focus-within {
    border-color: rgba(0, 229, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.web-login-page--hero .web-login-input-icon-slot {
    flex: 0 0 auto;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.web-login-page--hero .web-login-pw-toggle {
    cursor: pointer;
    color: inherit;
}

.web-login-page--hero .web-login-input-icon-slot::before {
    content: "";
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.88;
}

.web-login-page--hero .web-login-input-icon-slot[data-icon="email"]::before {
    background-image: var(--wl-icon-email);
}

.web-login-page--hero .web-login-input-icon-slot[data-icon="lock"]::before {
    background-image: var(--wl-icon-lock);
}

/* 显示/隐藏密码：原生 password 类型没有统一「眼睛」控件，故保留按钮；图标用内置 SVG，不占 JPG */
.web-login-page--hero .web-login-pw-toggle::before {
    background-image: var(--wl-pw-eye-off);
}

.web-login-page--hero .web-login-pw-toggle.is-on::before {
    background-image: var(--wl-pw-eye-on);
}

.web-login-page--hero .web-login-input-control {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 12px 0 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    box-shadow: none;
}

.web-login-page--hero .web-login-input-control:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.web-login-page--hero .web-login-field .web-login-input-control:hover {
    border-color: transparent;
    box-shadow: none;
}

.web-login-page--hero .web-login-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.web-login-page--hero .web-login-msg {
    color: #ff9a8b;
}

.web-login-page--hero .web-login-msg.web-login-msg--ok {
    color: #7ee8ff;
}

.web-login-page--hero .web-login-submit {
    margin-top: 8px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, #47f6ff 0%, var(--wl-cyan) 40%, #00c8ea 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 40, 60, 0.35);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    box-shadow: 0 12px 36px rgba(0, 229, 255, 0.28);
}

.web-login-page--hero .web-login-submit:hover {
    filter: brightness(1.06);
}

.web-login-page--hero .web-login-submit:active {
    transform: scale(0.99);
}

.web-login-card .web-login-links.web-login-links--hero.web-login-links--row-split > a:first-child {
    color: rgba(255, 255, 255, 0.72);
}

.web-login-card .web-login-links.web-login-links--hero.web-login-links--row-split > a:last-child {
    color: var(--wl-cyan);
    font-weight: 600;
}

.web-login-card .web-login-links.web-login-links--hero > a:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* Hero：验证码 + 单独一行输入框（无左侧图标槽） */
.web-login-page--hero .web-login-input-row--solo .web-login-input-control {
    padding-left: 14px;
}

.web-login-page--hero select.web-login-input-control {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.65) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.65) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.web-login-page--hero select.web-login-input-control option {
    color: #1a1a1a;
    background: #fff;
}

.web-login-page--hero .web-login-code-row--hero {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.web-login-page--hero .web-login-code-row--hero .web-login-input-row--solo {
    flex: 1;
    min-width: 0;
}

.web-login-page--hero .web-login-code-row--hero .web-login-code-send {
    flex: 0 0 auto;
    align-self: stretch;
    height: auto;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--wl-input-border);
    background: var(--wl-input-bg);
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.web-login-page--hero .web-login-code-row--hero .web-login-code-send:hover:not(:disabled) {
    border-color: rgba(0, 229, 255, 0.55);
    background: rgba(4, 18, 36, 0.95);
}

.web-login-page--hero .web-login-code-row--hero .web-login-code-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.web-login-page--hero .web-login-agree {
    margin: 4px 0 6px;
}

.web-login-page--hero .web-login-agree-label {
    color: rgba(255, 255, 255, 0.88);
}

.web-login-page--hero .web-login-agree-label input[type="checkbox"] {
    accent-color: var(--wl-cyan);
}

.web-login-page--hero .web-login-agree-label a {
    color: var(--wl-cyan);
}

.web-login-page--hero .web-login-agree-label a:hover {
    color: #7afbff;
}

/* Hero：卡片内多行底部链接 */
.web-login-card .web-login-links.web-login-links--hero.web-login-links--stack {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    text-align: center;
}

.web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a {
    display: block;
    margin-top: 0;
    font-size: 15px;
}

.web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a:not(:last-child) {
    color: var(--wl-cyan);
    font-weight: 600;
}

.web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

/* 登录 / 注册 / 忘记密码：纯色背景（无背景图） */
.web-login-page--login,
.web-login-page--register,
.web-login-page--forgot {
    --wl-bg-deep: #00243E;
    background: #00243E;
}

.web-login-page--login .web-login-bg-photo,
.web-login-page--register .web-login-bg-photo,
.web-login-page--forgot .web-login-bg-photo {
    background-image: none;
}

/* 底部链接箭头：SVG chevron 图标（不用文字符号） */
.web-login-chev {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.4em;
    vertical-align: -0.1em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.web-login-chev::before {
    content: none;
}

/* 登录 / 注册 / 重置密码：扁平白底表单（对齐设计稿） */
.web-login-page--login .web-login-title--hero,
.web-login-page--register .web-login-title--hero,
.web-login-page--forgot .web-login-title--hero {
    font-weight: 400;
}

.web-login-page--login .web-login-wrap,
.web-login-page--register .web-login-wrap,
.web-login-page--forgot .web-login-wrap {
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.web-login-page--login .web-login-hero-stack,
.web-login-page--register .web-login-hero-stack,
.web-login-page--forgot .web-login-hero-stack {
    margin-bottom: 0;
    max-width: 400px;
}

/* Logo → 标题 → 首行表单：等距 */
.web-login-page--login,
.web-login-page--register,
.web-login-page--forgot {
    --wl-head-gap: 32px;
}

.web-login-page--login .web-login-logo--hero,
.web-login-page--register .web-login-logo--hero,
.web-login-page--forgot .web-login-logo--hero {
    margin-bottom: var(--wl-head-gap);
}

.web-login-page--login .web-login-hero-head,
.web-login-page--register .web-login-hero-head,
.web-login-page--forgot .web-login-hero-head {
    margin-bottom: 0;
}

.web-login-page--login .web-login-title--hero {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 var(--wl-head-gap);
}

.web-login-page--register .web-login-title--hero,
.web-login-page--forgot .web-login-title--hero {
    font-size: 20px;
    font-weight: 400;
    /* 标题下紧跟进度点；点到首行表单补足到与 Logo→标题相同的 --wl-head-gap */
    margin: 0 0 10px;
}

.web-login-page--register .web-login-steps,
.web-login-page--forgot .web-login-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 0 calc(var(--wl-head-gap) - 10px - 8px);
}

.web-login-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.web-login-step-dot.is-active {
    background: #00a1e9;
}

.web-login-page--login .web-login-card,
.web-login-page--register .web-login-card,
.web-login-page--forgot .web-login-card {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.web-login-page--login .web-login-field,
.web-login-page--register .web-login-field,
.web-login-page--forgot .web-login-field {
    margin-bottom: 22px;
}

.web-login-page--login .web-login-field label,
.web-login-page--register .web-login-field label,
.web-login-page--forgot .web-login-field label {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
}

.web-login-page--login .web-login-field .web-login-input-control,
.web-login-page--register .web-login-field .web-login-input-control,
.web-login-page--forgot .web-login-field .web-login-input-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    box-shadow: none;
}

.web-login-page--login .web-login-field .web-login-input-control::placeholder,
.web-login-page--register .web-login-field .web-login-input-control::placeholder,
.web-login-page--forgot .web-login-field .web-login-input-control::placeholder {
    color: #9aa0a6;
}

.web-login-page--login .web-login-field .web-login-input-control:hover,
.web-login-page--login .web-login-field .web-login-input-control:focus,
.web-login-page--register .web-login-field .web-login-input-control:hover,
.web-login-page--register .web-login-field .web-login-input-control:focus,
.web-login-page--forgot .web-login-field .web-login-input-control:hover,
.web-login-page--forgot .web-login-field .web-login-input-control:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.web-login-page--register select.web-login-input-control {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%),
        linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    background-color: #fff;
    padding-right: 28px;
    cursor: pointer;
}

.web-login-page--register select.web-login-input-control option {
    color: #1a1a1a;
    background: #fff;
}

.web-login-page--login .web-login-msg,
.web-login-page--register .web-login-msg,
.web-login-page--forgot .web-login-msg {
    color: #ffb4a8;
}

.web-login-page--register .web-login-msg.web-login-msg--ok {
    color: #7ee8ff;
}

.web-login-page--login .web-login-submit,
.web-login-page--register .web-login-submit,
.web-login-page--forgot .web-login-submit {
    margin-top: 8px;
    height: 48px;
    border-radius: 999px;
    background: #00a1e9;
    color: #fff;
    text-shadow: none;
    letter-spacing: 0.04em;
    font-weight: 600;
    box-shadow: none;
}

.web-login-page--login .web-login-submit:hover,
.web-login-page--register .web-login-submit:hover,
.web-login-page--forgot .web-login-submit:hover {
    background: #0090d0;
    filter: none;
}

.web-login-page--login .web-login-links.web-login-links--hero,
.web-login-page--register .web-login-links.web-login-links--hero,
.web-login-page--forgot .web-login-links.web-login-links--hero {
    margin-top: 28px;
}

.web-login-page--login .web-login-card .web-login-links.web-login-links--hero.web-login-links--row-split > a:first-child,
.web-login-page--login .web-login-card .web-login-links.web-login-links--hero.web-login-links--row-split > a:last-child {
    color: #fff;
    font-weight: 400;
    opacity: 0.95;
}

.web-login-page--login .web-login-card .web-login-links.web-login-links--hero > a:hover {
    opacity: 1;
    text-decoration: underline;
}

.web-login-page--register .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a,
.web-login-page--register .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a:not(:last-child),
.web-login-page--register .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a:last-child,
.web-login-page--forgot .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a,
.web-login-page--forgot .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a:not(:last-child),
.web-login-page--forgot .web-login-card .web-login-links.web-login-links--hero.web-login-links--stack > a:last-child {
    color: #fff;
    font-weight: 400;
    text-align: center;
}

.web-login-page--register .web-login-card .web-login-links.web-login-links--hero > a:hover,
.web-login-page--forgot .web-login-card .web-login-links.web-login-links--hero > a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 注册 / 重置分步 */
.web-login-step-panel[hidden] {
    display: none !important;
}

.web-login-page--register .web-login-code-row--flat,
.web-login-page--forgot .web-login-code-row--flat {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.web-login-page--register .web-login-code-row--flat .web-login-input-control,
.web-login-page--forgot .web-login-code-row--flat .web-login-input-control {
    flex: 1;
    min-width: 0;
}

.web-login-page--register .web-login-code-row--flat .web-login-code-send,
.web-login-page--forgot .web-login-code-row--flat .web-login-code-send {
    flex: 0 0 auto;
    align-self: stretch;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #3d3d3d;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.web-login-page--register .web-login-code-row--flat .web-login-code-send:hover:not(:disabled),
.web-login-page--forgot .web-login-code-row--flat .web-login-code-send:hover:not(:disabled) {
    background: #4a4a4a;
}

.web-login-page--register .web-login-code-row--flat .web-login-code-send:disabled,
.web-login-page--forgot .web-login-code-row--flat .web-login-code-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.web-login-page--register .web-login-actions-row,
.web-login-page--forgot .web-login-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.web-login-page--register .web-login-btn-secondary,
.web-login-page--register .web-login-submit--half,
.web-login-page--forgot .web-login-btn-secondary,
.web-login-page--forgot .web-login-submit--half {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.web-login-page--register .web-login-btn-secondary,
.web-login-page--forgot .web-login-btn-secondary {
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.web-login-page--register .web-login-btn-secondary:hover,
.web-login-page--forgot .web-login-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.web-login-page--login .web-login-input-row--white,
.web-login-page--register .web-login-input-row--white,
.web-login-page--forgot .web-login-input-row--white {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.web-login-page--login .web-login-input-row--white .web-login-input-control,
.web-login-page--register .web-login-input-row--white .web-login-input-control,
.web-login-page--forgot .web-login-input-row--white .web-login-input-control {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    padding-right: 4px;
}

.web-login-page--login .web-login-pw-toggle--dark,
.web-login-page--register .web-login-pw-toggle--dark,
.web-login-page--forgot .web-login-pw-toggle--dark {
    flex: 0 0 44px;
    width: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-login-page--login .web-login-pw-toggle--dark::before,
.web-login-page--register .web-login-pw-toggle--dark::before,
.web-login-page--forgot .web-login-pw-toggle--dark::before {
    content: "";
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='4.5' y1='4.5' x2='19.5' y2='19.5'/%3E%3C/svg%3E");
    opacity: 0.85;
}

.web-login-page--login .web-login-pw-toggle--dark.is-on::before,
.web-login-page--register .web-login-pw-toggle--dark.is-on::before,
.web-login-page--forgot .web-login-pw-toggle--dark.is-on::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.web-login-page--register .web-login-agree {
    margin: 4px 0 10px;
}

.web-login-page--register .web-login-agree-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.web-login-page--register .web-login-agree-label input[type="checkbox"] {
    accent-color: #00a1e9;
}

.web-login-page--register .web-login-agree-label a {
    color: #00a1e9;
    text-decoration: none;
}

.web-login-page--register .web-login-agree-label a:hover {
    text-decoration: underline;
    color: #33b5ef;
}
