/* 登录与注册的蓝白视觉主题，限定在当前两页，保留原交互与显示状态。 */
body.syh-theme.syh-page-login,
body.syh-theme.syh-page-signup {
    height: auto;
    min-height: 100vh;
    padding: 0;
    background: var(--syh-surface, #f4f7fc);
    color: var(--syh-ink, #182b4d);
    line-height: 1.6;
}

/* 头部品牌和原有登录、注册切换入口。 */
body.syh-theme.syh-page-login .head-bg,
body.syh-theme.syh-page-signup .head-bg {
    height: auto;
    min-height: 248px;
    padding: 34px 20px 78px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: radial-gradient(circle at 90% 0, rgba(255, 255, 255, .16), transparent 48%), linear-gradient(135deg, #205bdf, #438afd);
    color: #fff;
}
body.syh-theme.syh-page-login .websitename_box,
body.syh-theme.syh-page-signup .websitename_box {
    position: static;
    height: auto;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
}
body.syh-theme.syh-page-login .websitename,
body.syh-theme.syh-page-signup .websitename {
    display: block;
    height: auto;
}
body.syh-theme.syh-page-login .syh-auth-intro,
body.syh-theme.syh-page-signup .syh-auth-intro {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    letter-spacing: 1px;
}
body.syh-theme.syh-page-login .head_bottom_box,
body.syh-theme.syh-page-signup .head_bottom_box {
    position: static;
    padding: 0;
    font-size: 14px;
    letter-spacing: 0;
}
body.syh-theme.syh-page-login .head_bottom,
body.syh-theme.syh-page-signup .head_bottom {
    gap: 6px;
    max-width: 252px;
    margin: 22px auto 0;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
}
body.syh-theme.syh-page-login .head_login,
body.syh-theme.syh-page-login .head_register,
body.syh-theme.syh-page-signup .head_login,
body.syh-theme.syh-page-signup .head_register {
    min-height: 40px;
    border-radius: 10px;
    line-height: 40px;
    font-weight: 600;
    cursor: pointer;
}
body.syh-theme.syh-page-login .head_login,
body.syh-theme.syh-page-signup .head_register {
    background: #fff;
    color: var(--syh-blue, #2563eb);
    box-shadow: 0 3px 10px rgba(18, 55, 124, .1);
}
body.syh-theme.syh-page-login .white_q,
body.syh-theme.syh-page-signup .white_q {
    display: none;
}

/* 白色表单卡片保持自然高度，键盘弹出后仍可滚动。 */
body.syh-theme.syh-page-login .login,
body.syh-theme.syh-page-signup .login {
    position: relative;
    max-width: 512px;
    margin: -52px auto 0;
    padding: 0 16px 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
body.syh-theme.syh-page-login .login > .am-g,
body.syh-theme.syh-page-signup .login > div {
    width: 100%;
    margin: 0;
}
body.syh-theme.syh-page-login .form-box,
body.syh-theme.syh-page-signup .form-box {
    float: none;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 20px;
    border: 1px solid #edf2fa;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(29, 66, 122, .08);
}
body.syh-theme.syh-page-login .syh-auth-heading,
body.syh-theme.syh-page-signup .syh-auth-heading {
    margin-bottom: 24px;
}
body.syh-theme.syh-page-login .syh-auth-heading h1,
body.syh-theme.syh-page-signup .syh-auth-heading h1 {
    margin: 0;
    color: var(--syh-ink, #182b4d);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}
body.syh-theme.syh-page-login .syh-auth-heading p,
body.syh-theme.syh-page-signup .syh-auth-heading p {
    margin: 7px 0 0;
    color: var(--syh-muted, #78879d);
    font-size: 13px;
}
body.syh-theme.syh-page-login .am-form-group,
body.syh-theme.syh-page-signup .am-form-group {
    margin: 0 0 16px;
}
body.syh-theme.syh-page-login .input-box,
body.syh-theme.syh-page-signup .input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 0 14px;
    border: 1px solid #e4ebf6;
    border-radius: 12px;
    background: #f7f9fd;
    transition: border-color .15s, box-shadow .15s;
}
body.syh-theme.syh-page-login .input-box::before,
body.syh-theme.syh-page-login .input-box::after,
body.syh-theme.syh-page-signup .input-box::before,
body.syh-theme.syh-page-signup .input-box::after {
    display: none;
}
body.syh-theme.syh-page-login .input-box:focus-within,
body.syh-theme.syh-page-signup .input-box:focus-within {
    border-color: #97b7fb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
body.syh-theme.syh-page-login .input-box label,
body.syh-theme.syh-page-signup .input-box label {
    flex: 0 0 20px;
    width: 20px;
    margin: 0;
}
body.syh-theme.syh-page-login .input-box .am-u-sm-11,
body.syh-theme.syh-page-signup .input-box .am-u-sm-11,
body.syh-theme.syh-page-signup .input-box .am-u-sm-8 {
    flex: 1;
    float: none;
    width: auto;
    min-width: 0;
}
body.syh-theme.syh-page-login .menu-icon,
body.syh-theme.syh-page-signup .menu-icon {
    float: none;
    display: block;
    width: 20px;
    margin: 0;
    filter: grayscale(1);
    opacity: .48;
}
/* 旧表单使用重要字号和背景规则，此处仅覆盖两个页面的可见输入框。 */
body.syh-theme.syh-page-login .login input:not([type="hidden"]),
body.syh-theme.syh-page-signup .login input:not([type="hidden"]) {
    height: 54px;
    padding: 0 !important;
    color: var(--syh-ink, #182b4d);
    font-family: inherit;
    font-size: 16px !important;
    line-height: 24px !important;
    letter-spacing: 0;
}
body.syh-theme.syh-page-login .login input::placeholder,
body.syh-theme.syh-page-signup .login input::placeholder {
    color: #91a0b5;
    opacity: 1;
}
body.syh-theme.syh-page-login .syh-auth-forgot,
body.syh-theme.syh-page-login .syh-auth-forgot font {
    color: var(--syh-blue, #2563eb);
    font-size: 13px;
    cursor: pointer;
}
body.syh-theme.syh-page-login .syh-auth-forgot u {
    text-decoration: none;
}
body.syh-theme.syh-page-login .syh-auth-gap {
    height: 4px;
}
body.syh-theme.syh-page-login .login .am-btn,
body.syh-theme.syh-page-signup .login .am-btn {
    min-height: 52px;
    padding: 13px 16px;
    border: 0;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--syh-blue, #2563eb), #438afd);
    color: #fff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}
body.syh-theme.syh-page-login .login .am-btn:hover,
body.syh-theme.syh-page-signup .login .am-btn:hover {
    background: linear-gradient(135deg, #1e57d3, #367ceb);
}
body.syh-theme.syh-page-login .login .am-btn:focus-visible,
body.syh-theme.syh-page-signup .login .am-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3) !important;
    outline-offset: 3px;
}
body.syh-theme.syh-page-login .login .am-btn:disabled,
body.syh-theme.syh-page-signup .login .am-btn:disabled {
    opacity: .55;
    box-shadow: none;
}
body.syh-theme.syh-page-login .reg_link {
    min-height: 48px;
    border: 1px solid #dce7fa;
    border-radius: 12px;
    background: #f5f8ff;
    color: var(--syh-blue, #2563eb);
    font-size: 14px;
    font-weight: 600;
    line-height: 46px;
    letter-spacing: 0;
    cursor: pointer;
}
body.syh-theme.syh-page-login .reg_link:hover {
    background: #ebf2ff;
    color: var(--syh-blue, #2563eb) !important;
}
body.syh-theme.syh-page-login .syh-auth-return,
body.syh-theme.syh-page-signup .syh-auth-return {
    color: var(--syh-blue, #2563eb) !important;
    font-size: 13px;
    cursor: pointer;
}
body.syh-theme.syh-page-signup .syh-code-action {
    flex: 0 0 auto;
    float: none;
    width: auto;
    min-width: 74px;
    height: 36px !important;
    padding: 0 10px !important;
    border: 1px solid #dce7fa;
    border-radius: 10px !important;
    background: #edf4ff !important;
    color: var(--syh-blue, #2563eb);
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 34px;
    letter-spacing: 0 !important;
    white-space: nowrap;
    cursor: pointer;
}
body.syh-theme.syh-page-signup .syh-auth-agreement {
    color: var(--syh-muted, #78879d) !important;
    line-height: 1.8;
}
body.syh-theme.syh-page-signup .zcfwxy {
    color: var(--syh-blue, #2563eb);
    text-decoration: none;
    cursor: pointer;
}

/* 提示和协议弹层沿用原有显示状态、动画与关闭事件。 */
body.syh-theme.syh-page-login .message,
body.syh-theme.syh-page-signup .message {
    z-index: 1600;
    top: 38vh;
    bottom: auto;
    left: 24px;
    right: 24px;
    max-width: 432px;
}
body.syh-theme.syh-page-login .message p,
body.syh-theme.syh-page-signup .message p {
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(24, 43, 77, .94);
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(24, 43, 77, .15);
}
body.syh-theme.syh-page-signup .am-popup-hd {
    border-bottom-color: #e9eef7;
    background: #fff;
}
body.syh-theme.syh-page-signup .am-popup-title {
    color: var(--syh-ink, #182b4d);
}
body.syh-theme.syh-page-signup .am-popup-hd .am-close {
    border-radius: 50%;
    background: #eef3fb !important;
    color: var(--syh-muted, #78879d) !important;
    opacity: 1;
}

@media (max-width: 360px) {
    body.syh-theme.syh-page-login .head-bg,
    body.syh-theme.syh-page-signup .head-bg {
        padding-top: 28px;
    }
    body.syh-theme.syh-page-login .form-box,
    body.syh-theme.syh-page-signup .form-box {
        padding: 22px 16px;
    }
    body.syh-theme.syh-page-login .input-box,
    body.syh-theme.syh-page-signup .input-box {
        gap: 10px;
        padding: 0 10px;
    }
    body.syh-theme.syh-page-signup .syh-code-action {
        min-width: 68px;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}


/* 找回密码独立扩展，登录与注册已确认的样式保持不变。 */
body.syh-theme.syh-page-backpwd { height: auto; min-height: 100vh; padding: 0; background: var(--syh-surface, #f4f7fc); color: var(--syh-ink, #182b4d); line-height: 1.6; }
body.syh-theme.syh-page-backpwd .head-bg { height: auto; min-height: 230px; padding: 64px 20px 84px; border-radius: 0 0 28px 28px; background: radial-gradient(circle at 90% 0, rgba(255, 255, 255, .16), transparent 48%), linear-gradient(135deg, #205bdf, #438afd); color: #fff; }
body.syh-theme.syh-page-backpwd .back { top: 20px; left: 20px; width: auto; font-size: 14px; line-height: 24px; cursor: pointer; }
body.syh-theme.syh-page-backpwd .back i { margin-right: 6px; font-size: 16px; }
body.syh-theme.syh-page-backpwd .websitename_box { position: static; height: auto; font-size: 30px; font-weight: 700; letter-spacing: 1px; }
body.syh-theme.syh-page-backpwd .websitename { display: block; height: auto; }
body.syh-theme.syh-page-backpwd .login { position: relative; max-width: 512px; margin: -52px auto 0; padding: 0 16px 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
body.syh-theme.syh-page-backpwd .login > .am-g { width: 100%; margin: 0; }
body.syh-theme.syh-page-backpwd .form-box { float: none; width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 20px; border: 1px solid #edf2fa; border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(29, 66, 122, .08); }
body.syh-theme.syh-page-backpwd .syh-auth-heading { margin-bottom: 24px; }
body.syh-theme.syh-page-backpwd .syh-auth-heading h1 { margin: 0; color: var(--syh-ink); font-size: 24px; font-weight: 700; line-height: 1.4; }
body.syh-theme.syh-page-backpwd .syh-auth-heading p { margin: 7px 0 0; color: var(--syh-muted); font-size: 13px; }
body.syh-theme.syh-page-backpwd .am-form-group { margin: 0 0 16px; }
body.syh-theme.syh-page-backpwd .input-box { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 14px; border: 1px solid #e4ebf6; border-radius: 12px; background: #f7f9fd; transition: border-color .15s, box-shadow .15s; }
body.syh-theme.syh-page-backpwd .input-box::before,
body.syh-theme.syh-page-backpwd .input-box::after { display: none; }
body.syh-theme.syh-page-backpwd .input-box:focus-within { border-color: #97b7fb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
body.syh-theme.syh-page-backpwd .input-box label { flex: 0 0 20px; width: 20px; margin: 0; }
body.syh-theme.syh-page-backpwd .input-box .am-u-sm-11,
body.syh-theme.syh-page-backpwd .input-box .am-u-sm-8 { flex: 1; float: none; width: auto; min-width: 0; }
body.syh-theme.syh-page-backpwd .menu-icon { float: none; display: block; width: 20px; margin: 0; filter: grayscale(1); opacity: .48; }
body.syh-theme.syh-page-backpwd .login input { height: 54px; padding: 0 !important; color: var(--syh-ink); font-family: inherit; font-size: 16px !important; line-height: 24px !important; letter-spacing: 0; }
body.syh-theme.syh-page-backpwd .login input::placeholder { color: #91a0b5; opacity: 1; }
body.syh-theme.syh-page-backpwd .syh-code-action { flex: 0 0 auto; float: none; width: auto; min-width: 74px; height: 36px !important; padding: 0 10px !important; border: 1px solid #dce7fa; border-radius: 10px !important; background: #edf4ff !important; color: var(--syh-blue); font-size: 13px !important; font-weight: 600 !important; line-height: 34px; letter-spacing: 0 !important; white-space: nowrap; cursor: pointer; }
body.syh-theme.syh-page-backpwd .login .am-btn { min-height: 52px; padding: 13px 16px; border: 0; border-radius: 12px !important; background: linear-gradient(135deg, var(--syh-blue), #438afd); color: #fff !important; font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0; box-shadow: 0 7px 16px rgba(37, 99, 235, .2); }
body.syh-theme.syh-page-backpwd .login .am-btn:hover { background: linear-gradient(135deg, #1e57d3, #367ceb); }
body.syh-theme.syh-page-backpwd .login .am-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .3) !important; outline-offset: 3px; }
body.syh-theme.syh-page-backpwd .login .am-btn:disabled { opacity: .55; box-shadow: none; }
/* 错误提示保留原动画及显示状态，仅调整位置和卡片外观。 */
body.syh-theme.syh-page-backpwd .message { z-index: 1600; top: 38vh; bottom: auto; left: 24px; right: 24px; max-width: 432px; }
body.syh-theme.syh-page-backpwd .message p { padding: 14px 20px; border-radius: 12px; background: rgba(24, 43, 77, .94); font-size: 14px; box-shadow: 0 8px 24px rgba(24, 43, 77, .15); }
@media (max-width: 360px) {
    body.syh-theme.syh-page-backpwd .form-box { padding: 22px 16px; }
    body.syh-theme.syh-page-backpwd .input-box { gap: 10px; padding: 0 10px; }
    body.syh-theme.syh-page-backpwd .syh-code-action { min-width: 68px; padding: 0 8px !important; font-size: 12px !important; }
}


/* 找回密码的确认密码图标沿用现有密码图片，只替换视觉显示。 */
body.syh-theme.syh-page-backpwd .menu-icon[src$="/pwd2.png"] { content: url("../picture/pwd.png"); }
