:root {
    --reg-primary: #f54319;
    --reg-text: #1d2129;
    --reg-secondary: #4e5969;
    --reg-placeholder: #86909c;
    --reg-control-bg: #f2f3f5;
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    color: var(--reg-text);
    font-family: "QxzhPingFang", -apple-system, BlinkMacSystemFont, system-ui, "Roboto", "Noto Sans CJK SC", "Noto Sans SC",
                 "PingFang SC", "Microsoft YaHei", sans-serif;
    scrollbar-width: none;
}

body::-webkit-scrollbar { display: none; }

button,
input { margin: 0; font: inherit; outline: none; }

button,
a,
label { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

.reg-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 848px;
    overflow: hidden;
}

.reg-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.reg-hero-image { display: block; width: 100%; height: auto; max-width: none; }

.reg-card {
    --reg-submit-min-top: 500px;
    position: absolute;
    top: 220px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 10px 28px rgba(122, 139, 180, .14);

    /*background-color: rgba(255,255,255,0.55);*/
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.reg-title {
    position: absolute;
    top: 20px;
    left: 50%;
    height: 36px;
    margin: 0;
    color: var(--reg-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.reg-title::after {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 25px;
    height: 6px;
    background: url("/assets/images/login/tab-mark.svg") center / 25px 6px no-repeat;
    content: "";
    transform: translateX(-50%);
}

.reg-field {
    position: absolute;
    right: 24px;
    left: 23px;
    display: flex;
    align-items: center;
    height: 46px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--reg-control-bg);
}

.phone-field { top: 71px; }

.login-password-field { top: 135px; }

.deal-password-field { top: 199px; }

.invite-field { top: 263px; }

.sms-code-field { top: 423px; right: 24px; left: 24px; }

.country-code {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    height: 28px;
    padding-left: 16px;
    border-right: 1px solid #e5e6eb;
    font-size: 14px;
    font-weight: 500;
}

.country-chevron { display: block; width: 14px; height: 14px; margin-left: 2px; }

.reg-input {
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--reg-text);
    font-size: 14px;
    line-height: 22px;
}

.phone-field .reg-input { flex: 1 1 auto; font-size: 15px; }

.password-input { width: 100%; padding-right: 50px; }

.invite-field .reg-input { width: 100%; }

.sms-code-input { width: 100%; padding-right: 116px; }

.reg-input::placeholder { color: var(--reg-placeholder); opacity: 1; }

.password-visibility {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.password-visibility img { display: block; width: 22px; height: 22px; }

.reg-captcha {
    position: absolute;
    top: 327px;
    right: 24px;
    left: 23px;
    height: 46px;
    padding: 3px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--reg-control-bg);
}

#nc,
.nc-container,
.nc-container [id$="_wrapper"],
.nc-container .nc_scale { width: 100% !important; height: 40px !important; }

#nc { position: relative; }

.nc-container { position: static !important; font-family: inherit !important; }

.nc-container .nc_scale { overflow: hidden !important; border-radius: 6px !important; background: transparent !important; }

.nc-container .nc_scale .btn_slide,
.nc-container .nc_scale .btn_ok {
    top: 0 !important;
    width: 42px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff url("/assets/images/login/slider-arrow.svg") center / 20px 20px no-repeat !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, .08) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 40px !important;
}

.nc-container .nc_scale .scale_text,
.nc-container .nc_scale .scale_text2 {
    height: 40px !important;
    color: var(--reg-secondary) !important;
    font-size: 14px !important;
    line-height: 40px !important;
}

.nc-container .nc_scale .nc_bg { height: 40px !important; border-radius: 6px 0 0 6px !important; }

#nc.verified .nc_bg { width: calc(100% - 21px) !important; }

#nc.verified .scale_text,
#nc.verified .scale_text2 { visibility: hidden !important; }

#nc.verified::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--reg-secondary);
    font-size: 14px;
    line-height: 20px;
    content: "验证通过";
    pointer-events: none;
}

#nc.verified .btn_ok { z-index: 3 !important; }

.captcha-loading,
.captcha-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    color: var(--reg-secondary);
    font-size: 14px;
}

.captcha-error { color: var(--reg-primary); font-size: 12px; }

.reg-agreement {
    position: absolute;
    top: 385px;
    left: 23px;
    display: flex;
    align-items: center;
    height: 20px;
    color: var(--reg-secondary);
    font-size: 12px;
    line-height: 17px;
    white-space: nowrap;
}

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

.agreement-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.agreement-box {
    display: flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #c9cdd4;
    border-radius: 50%;
    background: #fff;
}

.agreement-box img { display: block; width: 14px; height: 14px; opacity: 0; }

.agreement-input:checked + .agreement-box { border-color: var(--reg-primary); background: var(--reg-primary); }

.agreement-input:checked + .agreement-box img { opacity: 1; }

.protocol-link {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--reg-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 17px;
}

.sms-code-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 96px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 1px rgba(0, 0, 0, .08);
    color: var(--reg-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.sms-code-button:disabled { cursor: default; color: var(--reg-placeholder); }

.reg-submit {
    position: absolute;
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 24px;
    left: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: var(--reg-primary);
    box-shadow: 0 6px 6px rgba(245, 67, 25, .35);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.reg-submit:disabled { cursor: default; opacity: .72; }

.login-entry {
    position: absolute;
    top: auto;
    bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    align-items: center;
    height: 20px;
    color: var(--reg-secondary);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transform: translateX(-50%);
}

.protocol-mask { position: fixed; inset: 0; z-index: 10000; display: none; background: rgba(0, 0, 0, .45); }

.protocol-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10001;
    display: none;
    width: calc(100% - 48px);
    max-width: 336px;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transform: translate(-50%, -50%);
}

.protocol-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 16px;
    font-weight: 700;
}

.protocol-modal-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--reg-placeholder);
    font-size: 24px;
}

.protocol-modal-body {
    max-height: calc(70vh - 52px);
    padding: 16px 18px 20px;
    overflow-y: auto;
    color: var(--reg-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.protocol-modal-body p { margin: 0 0 10px; white-space: pre-line; }

.protocol-modal-body p:last-child { margin-bottom: 0; }
