/* 注册 / 忘记密码 · 统一白色主题 */

html, body {
    margin: 0;
    padding: 0;
}

.reg-auth-page {
    --ra-brand: #2a9b8f;
    --ra-brand-dark: #218177;
    --ra-text: #1a1a1a;
    --ra-sub: #5c5c5c;
    --ra-mute: #8a8a8a;
    --ra-line: #e8eef0;
    --ra-bg: #f4f7f6;
    --ra-card: #ffffff;
    --ra-danger: #e11d48;
    --ra-ok: #059669;
    margin: 0;
    min-height: calc(100vh - 50px);
    min-height: calc(100dvh - 50px);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(42, 155, 143, 0.08), transparent 60%),
        radial-gradient(700px 360px at 100% 0%, rgba(33, 129, 119, 0.05), transparent 55%),
        var(--ra-bg);
    color: var(--ra-text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.reg-auth-page,
.reg-auth-page .reg-auth-shell,
.reg-auth-page .reg-auth-card,
.reg-auth-page .reg-auth-head,
.reg-auth-page .reg-steps,
.reg-auth-page .reg-step,
.reg-auth-page .reg-field,
.reg-auth-page .reg-notice-list,
.reg-auth-page .reg-notice-actions,
.reg-auth-page .reg-form-actions,
.reg-auth-page .reg-avatar-label,
.reg-auth-page input,
.reg-auth-page button,
.reg-auth-page .layui-btn,
.reg-auth-page .layui-input,
.reg-auth-page .regsiter-input {
    box-sizing: border-box;
}

.reg-auth-shell {
    width: min(92vw, 360px);
    margin: auto;
    padding: 24px 0;
    flex: 0 0 auto;
}

.reg-auth-shell.is-wide {
    width: min(92vw, 480px);
}

.reg-auth-card {
    padding: 28px 28px 24px;
    background: var(--ra-card);
    border: 1px solid var(--ra-line);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(26, 60, 52, 0.06);
}

.reg-auth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.reg-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #cfe3df;
    border-radius: 14px;
    background: #f3faf8;
    color: var(--ra-brand-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s, border-color .2s, color .2s;
}

.reg-auth-back:hover {
    color: var(--ra-brand-dark);
    border-color: var(--ra-brand);
    background: #e7f6f3;
    text-decoration: none;
}

.reg-auth-title {
    margin: 0;
    color: var(--ra-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.reg-auth-sub {
    margin: 0 0 14px;
    color: var(--ra-mute);
    font-size: 12px;
    line-height: 1.6;
}

.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ra-line);
}

.reg-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ra-mute);
    font-size: 12px;
    font-weight: 600;
}

.reg-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8eef0;
    color: var(--ra-sub);
    font-size: 11px;
}

.reg-step.is-active,
.reg-step.is-done {
    color: var(--ra-brand-dark);
}

.reg-step.is-active span,
.reg-step.is-done span {
    background: var(--ra-brand);
    color: #fff;
}

.reg-step-line {
    width: 28px;
    height: 1px;
    background: var(--ra-line);
}

.reg-auth-card .layui-form-item {
    margin-bottom: 12px;
}

.reg-auth-card .layui-input,
.reg-auth-card .regsiter-input {
    height: 42px !important;
    line-height: 42px !important;
    border: 1px solid #dce5e2 !important;
    border-radius: 10px !important;
    background: #fbfcfc !important;
    color: var(--ra-text) !important;
    box-shadow: none !important;
}

.reg-auth-card .layui-input:focus,
.reg-auth-card .regsiter-input:focus {
    border-color: var(--ra-brand) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(42, 155, 143, 0.12) !important;
}

.reg-auth-card .layui-input::placeholder,
.reg-auth-card .regsiter-input::placeholder {
    color: #a8b5b2;
}

.reg-tip {
    margin: 0 0 12px;
    color: var(--ra-sub);
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}

.reg-tip b {
    color: var(--ra-text);
}

.reg-email-status {
    margin-top: 6px;
    min-height: 18px;
    font-size: 12px;
    text-align: left;
    line-height: 1.5;
}

.reg-email-status.is-ok { color: var(--ra-ok); }
.reg-email-status.is-bad { color: var(--ra-danger); }
.reg-email-status.is-wait { color: var(--ra-mute); }
.reg-email-status a { color: var(--ra-brand-dark); }

.reg-code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.reg-code-row .layui-input {
    flex: 1;
}

.reg-code-row .layui-btn,
.reg-code-row #emailcode {
    flex: 0 0 auto;
    height: 42px;
    line-height: 42px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid #cfe3df !important;
    border-radius: 10px !important;
    background: #f3faf8 !important;
    color: var(--ra-brand-dark) !important;
    font-size: 12px;
    font-weight: 600;
}

.reg-code-row .layui-btn:hover,
.reg-code-row #emailcode:hover {
    background: #e7f6f3 !important;
    border-color: var(--ra-brand) !important;
}

.reg-auth-btn,
.reg-auth-card .regsiter-button {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: none;
    border-radius: 10px;
    background: var(--ra-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(42, 155, 143, 0.25);
    transition: background .2s, transform .15s;
}

.reg-auth-btn:hover,
.reg-auth-card .regsiter-button:hover {
    background: var(--ra-brand-dark);
    color: #fff;
}

.reg-auth-btn:active,
.reg-auth-card .regsiter-button:active {
    transform: translateY(1px);
}

.reg-step2-btns {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.reg-step2-btns .layui-btn-primary {
    flex: 0 0 96px;
    height: 44px;
    line-height: 42px;
    margin: 0;
    border: 1px solid var(--ra-line) !important;
    background: #fff !important;
    color: var(--ra-sub) !important;
    border-radius: 10px !important;
}

.reg-step2-btns .regsiter-button {
    flex: 1;
    margin-top: 0;
}

.reg-auth-foot {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--ra-mute);
}

.reg-auth-foot a {
    color: var(--ra-brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.reg-auth-foot a:hover {
    text-decoration: underline;
}

.reg-avatar-wrap {
    margin: 10px 0 4px;
    text-align: center;
}

.reg-avatar-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--ra-mute);
    font-size: 12px;
}

.reg-avatar-label img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

#avatarFile {
    display: none;
}

.reg-auth-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: var(--ra-danger);
}

.reg-auth-tip {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    background: #f3faf8;
    border: 1px solid #cfe3df;
    color: var(--ra-sub);
}

.reg-notice-list {
    max-height: 280px;
    overflow: auto;
    padding-right: 4px;
    margin: 0 0 16px;
    text-align: left;
}

.reg-notice-list p {
    margin: 0 0 10px;
    color: var(--ra-sub);
    font-size: 13px;
    line-height: 1.7;
}

.reg-notice-list p:last-child {
    margin-bottom: 0;
}

.reg-notice-flow {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--ra-brand);
    background: #f3faf8;
    color: var(--ra-brand-dark);
    font-size: 12px;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
}

.reg-notice-actions {
    text-align: center;
}

.reg-notice-actions .layui-form-checkbox {
    margin-bottom: 12px;
}

.reg-notice-actions .layui-form-checkbox span {
    color: var(--ra-sub) !important;
}

.reg-notice-actions .layui-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    margin: 0;
    border: none !important;
    border-radius: 10px !important;
    background: var(--ra-brand) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(42, 155, 143, 0.25);
}

.reg-notice-actions .layui-btn:hover {
    background: var(--ra-brand-dark) !important;
}

/* 仅重置旧注册页遗留布局类，勿命中 TAC 验证码内部的 .content */
.reg-auth-shell > .content,
.reg-auth-shell > .main,
.reg-auth-shell .content-s,
.reg-auth-card > .content,
.reg-auth-card > .main {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.reg-auth-shell .content-s::before,
.reg-auth-shell > .main::before {
    display: none !important;
}

.reg-auth-page .regsiter-head {
    display: none !important;
}

.reg-auth-page .footer {
    display: none;
}

@media screen and (max-width: 480px) {
    .reg-auth-shell,
    .reg-auth-shell.is-wide {
        width: min(92vw, 360px);
        margin: auto;
        padding: 20px 0 32px;
    }

    .reg-auth-card {
        padding: 24px 18px 20px;
    }

    .reg-notice-list {
        max-height: 240px;
    }

    .reg-auth-card .layui-input,
    .reg-auth-card .regsiter-input {
        font-size: 16px !important;
    }
}
