/* ============================================================
   注册页（2026-11-24 新皮肤）
   ------------------------------------------------------------
   原来 /?ct=register 是旧橙色页面（1200px 写死，1440 下有横向溢出），
   这里按 PC 新皮肤（黄黑 + 圆角卡片）重做一版，表单提交走
   POST /?ct=register&ac=ajax_phone（手机号 + 验证码 + 密码，注册即登录）。
   ============================================================ */

.rg-wrap {
    min-height: 520px;
    /* 顶栏是 fixed 定位（约 60px），这里留出高度，否则卡片会被导航压住 */
    padding: 96px 0 64px;
    background: var(--tap-bg);
}

.rg-box {
    width: 440px;
    margin: 0 auto;
    padding: 34px 36px 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(20, 30, 50, .06);
    box-sizing: border-box;
}

.rg-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    color: #17181a;
}

.rg-sub {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 20px;
    color: #8a9099;
}

/* 注册方式切换：手机号 / 用户名 */
.rg-tabs {
    display: flex;
    gap: 4px;
    margin: 18px 0 14px;
    padding: 4px;
    border-radius: 12px;
    background: #f5f6f8;
}

.rg-tab {
    flex: 1 1 0;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #8a9099;
    cursor: pointer;
    transition: background-color .18s, color .18s, box-shadow .18s;
}

.rg-tab:hover {
    color: #4b5159;
}

.rg-tab.is-on {
    background: #fff;
    color: #17181a;
    box-shadow: 0 2px 8px rgba(20, 30, 50, .08);
}

.rg-pane[hidden] {
    display: none;
}

.rg-field {
    position: relative;
    margin-bottom: 14px;
}

.rg-field input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f5f6f8;
    font-family: inherit;
    font-size: 14px;
    color: #17181a;
    box-sizing: border-box;
    transition: border-color .18s, background-color .18s;
}

.rg-field input::placeholder {
    color: #b3b8c0;
}

.rg-field input:focus {
    border-color: var(--tap-primary);
    background: #fff;
    outline: none;
}

.rg-field.has-btn input {
    padding-right: 120px;
}

.rg-code-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 195, 0, .18);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #8a6a00;
    cursor: pointer;
    transition: background-color .18s;
}

.rg-code-btn:hover {
    background: rgba(255, 195, 0, .3);
}

.rg-code-btn:disabled {
    background: #f0f1f3;
    color: #b3b8c0;
    cursor: default;
}

.rg-err {
    margin: 2px 0 0;
    min-height: 18px;
    font-size: 12.5px;
    line-height: 18px;
    color: #ff3b30;
}

.rg-err.is-ok {
    color: #0a9b6a;
}

.rg-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 18px;
    font-size: 12.5px;
    line-height: 20px;
    color: #8a9099;
    cursor: pointer;
}

.rg-agree input {
    flex: 0 0 auto;
    margin: 3px 0 0;
    cursor: pointer;
}

.rg-agree a {
    color: #a07c00;
    text-decoration: none;
}

.rg-agree a:hover {
    text-decoration: underline;
}

.rg-submit {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--tap-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    transition: background-color .18s;
}

.rg-submit:hover {
    background: #e8b100;
}

.rg-submit:disabled {
    opacity: .7;
    cursor: default;
}

.rg-foot {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: #8a9099;
    text-align: center;
}

.rg-foot a {
    margin-left: 3px;
    color: #a07c00;
    font-weight: 700;
    text-decoration: none;
}

.rg-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .rg-wrap {
        padding: 20px 12px 40px;
    }

    .rg-box {
        width: 100%;
        padding: 26px 20px 24px;
    }
}

/* 底部合规信息（正式页面顺手带上，避免整屏留白） */
.rg-copy {
    width: 880px;
    margin: 0 auto;
    padding: 0 0 30px;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: #a8aeb6;
}

.rg-copy p {
    margin: 0;
}

@media (max-width: 920px) {
    .rg-copy {
        width: auto;
        padding: 0 16px 24px;
    }
}
