/* 注册页局部样式，仅作用于 regist.jsp。 */
.regist-modern {
    font-family: Arial, SimSun, "宋体", "Songti SC", STSong, "Noto Serif CJK SC", serif;
}

.regist-modern input,
.regist-modern button,
.regist-modern select,
.regist-modern textarea {
    font-family: Arial, SimSun, "宋体", "Songti SC", STSong, "Noto Serif CJK SC", serif;
}

/* 只调整标准注册页布局，右侧登录栏已移除。 */
.regist-modern.login.container {
    display: block;
}

.regist-modern.login.container:before,
.regist-modern.login.container:after {
    display: none;
}

.regist-modern .login-left {
    float: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 0;
    color: #000000;
}

.regist-modern .login-right {
    float: none;
    box-sizing: border-box;
    flex: 0 0 33.3334%;
    width: 33.3334%;
    margin: 0;
}

.regist-modern .login-right p.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 28px 0 18px;
    padding: 5px 8%;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.regist-modern .login-right p.header a {
    flex: none;
    margin-left: 0;
    border-bottom: 0;
    text-decoration: none;
}

.regist-modern .login-right p.header .btn-success {
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: #5CB85C;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-shadow: none;
    box-shadow: none;
}

.regist-modern .login-right p.header .btn-success:hover,
.regist-modern .login-right p.header .btn-success:focus {
    background: #4CAE4C;
    color: #FFFFFF;
}

.regist-modern .clear {
    display: none;
}

.regist-modern #createRequestForm.regist-form {
    --regist-label-width: 132px;
    --regist-error-color: #B42318;
    box-sizing: border-box;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 0 20px;
}

.regist-modern .regist-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
    padding: 0 0 14px;
}

.regist-modern .regist-head::after {
    content: "";
    display: block;
    position: absolute;
    left: -24px;
    right: -24px;
    bottom: 0;
    height: 0;
    border-top: 1px solid #E5EAF0;
    pointer-events: none;
}

.regist-modern .regist-head h2.login-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    color: #000000;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.regist-modern .regist-head h2.login-title::before {
    display: none;
}

.regist-modern .regist-head-links {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 2px;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    text-align: right;
}

.regist-modern .regist-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.regist-modern .regist-head .regist-help-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: #FFFFFF;
    color: #999999;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.regist-modern .regist-login-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.regist-modern .regist-login-text {
    color: #000000;
    font-weight: 700;
}

.regist-modern .regist-head .regist-login-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: #0D6EFD;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.regist-modern .regist-head .regist-login-link:hover,
.regist-modern .regist-head .regist-login-link:focus,
.regist-modern .regist-head .regist-help-link:hover,
.regist-modern .regist-head .regist-help-link:focus {
    color: #0B5ED7;
}

.regist-modern .regist-head .regist-login-link:hover,
.regist-modern .regist-head .regist-login-link:focus {
    background: #EDF4FF;
}

.regist-modern #createRequestForm.regist-form h2 .mail-title {
    display: inline;
    margin-left: 0;
    color: #5c6572;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.regist-modern #createRequestForm.regist-form .control-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.regist-modern #createRequestForm.regist-form .control-label {
    display: block;
    box-sizing: border-box;
    flex: 0 0 var(--regist-label-width);
    width: var(--regist-label-width);
    margin: 0;
    padding: calc((var(--auth-input-height) - 22px) / 2) 14px 0 0;
    color: #000000;
    font-family: SimSun, "宋体", "Songti SC", STSong, "Noto Serif CJK SC", serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    text-align: right;
}

.regist-modern #createRequestForm.regist-form .controls {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
}

.regist-modern .regist-phone-group .intl-tel-input {
    display: block;
    flex: 1 1 auto;
    align-self: center;
    width: auto;
    min-width: 0;
    height: var(--auth-input-inner-height);
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.regist-modern .regist-phone-group .intl-tel-input .flag-container {
    padding: 0;
}

.regist-modern .regist-phone-group .intl-tel-input .selected-flag {
    width: 46px;
    height: 100%;
    padding-left: 12px;
    border-right: 1px solid var(--auth-input-border);
    border-radius: 0;
    background: transparent;
}

.regist-modern .regist-phone-group .intl-tel-input.allow-dropdown .flag-container:hover .selected-flag {
    background: #F8F9FA;
}

.regist-modern .regist-phone-group .intl-tel-input input#phoneNumber {
    width: 100%;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #000000;
    font-size: 15px;
    line-height: var(--auth-input-inner-height);
}

.regist-modern .regist-phone-group .intl-tel-input input::placeholder {
    color: #9AA3AF;
}

.regist-modern .regist-phone-group .intl-tel-input input[type="text"]:focus {
    box-shadow: none;
}

.regist-modern .regist-hint {
    margin: 8px 0 0;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.6;
}

.regist-modern .regist-password-strength {
    margin-top: 6px;
}

.regist-modern .regist-password-strength .pass-info {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #EEF2F6;
    color: #64748B;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

.regist-modern .regist-password-strength .pass-info.red {
    background: #FEE2E2;
    color: #B91C1C;
}

.regist-modern .regist-password-strength .pass-info.orange {
    background: #FEF3C7;
    color: #B45309;
}

.regist-modern .regist-password-strength .pass-info.green {
    background: #DCFCE7;
    color: #15803D;
}

.regist-modern .error.help-inline {
    display: block;
    margin-top: 6px;
    color: var(--regist-error-color);
    font-size: 12.5px;
    line-height: 18px;
}

.regist-modern .error.help-inline:empty {
    display: none;
}

.regist-modern .regist-status {
    display: block;
    position: static;
    width: auto;
    margin-top: 6px;
    background: none;
    color: inherit;
    font-size: 13px;
    line-height: 18px;
    text-align: left;
}

.regist-modern .regist-status.error {
    color: var(--regist-error-color);
}

.regist-modern .regist-status.success::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23198754' d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    vertical-align: -2px;
}

.regist-modern .regist-status:empty {
    display: none;
}

.regist-modern .regist-protocol-group,
.regist-modern .regist-submit-group {
    padding-inline-start: var(--regist-label-width);
}

.regist-modern .regist-protocol-group {
    margin-top: 8px;
    margin-bottom: 16px;
}

.regist-modern .regist-protocol-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000000;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
}

.regist-modern .regist-protocol-text {
    min-width: 0;
}

.regist-modern .regist-protocol-row input[type="checkbox"] {
    display: block;
    flex: none;
    width: 14px;
    height: 14px;
    margin: 0;
}

.regist-modern .regist-protocol-row a {
    margin-left: 0;
    color: #0D6EFD;
    text-decoration: none;
}

.regist-modern .regist-protocol-row a:hover {
    text-decoration: underline;
}

.regist-modern .regist-submit-group {
    margin-bottom: 0;
}

.regist-modern .regist-submit {
    --bs-btn-disabled-bg: #B9C2CE;
    --bs-btn-disabled-border-color: #B9C2CE;
    --bs-btn-disabled-opacity: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    max-width: 100%;
    height: 42px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
}

.login .regist-modern .regist-submit {
    border-color: #0D6EFD;
    background: #0D6EFD;
    color: #FFFFFF;
    text-shadow: none;
    box-shadow: none;
}

.login .regist-modern .regist-submit:hover,
.login .regist-modern .regist-submit:focus {
    border-color: #0B5ED7;
    background: #0B5ED7;
}

.regist-modern .regist-submit:disabled {
    cursor: not-allowed;
    pointer-events: auto;
}

.login .regist-modern .regist-submit:disabled {
    border-color: #B9C2CE;
    background: #B9C2CE;
    opacity: 1;
}

@media (max-width: 1023px) {
    .regist-modern #createRequestForm.regist-form {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .regist-modern.login.container {
        display: block;
        width: auto;
        max-width: 100%;
        margin: 70px 0 24px;
        border: 1px solid #DDE3EA;
        border-radius: 10px;
        background: #FFFFFF;
        box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
        overflow: hidden;
    }

    .regist-modern .login-left {
        width: 100%;
        max-width: 100%;
    }

    .regist-modern .login-right {
        display: none;
    }

    .regist-modern #createRequestForm.regist-form {
        --regist-label-width: 0px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 24px 20px 20px;
    }

    .regist-modern #createRequestForm.regist-form input[type="text"],
    .regist-modern #createRequestForm.regist-form input[type="password"] {
        width: 100%;
    }

    .regist-modern #createRequestForm.regist-form h2.login-title {
        font-size: 26px;
    }

    .regist-modern .regist-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .regist-modern .regist-head-links {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 0;
        text-align: left;
    }

    .regist-modern #createRequestForm.regist-form .control-group {
        flex-direction: column;
        align-items: stretch;
    }

    .regist-modern #createRequestForm.regist-form .control-label {
        flex: none;
        width: auto;
        margin: 0 0 6px;
        padding: 0;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
    }

    .regist-modern .regist-submit {
        width: 100%;
    }

    .regist-modern .regist-protocol-row {
        font-size: 12.5px;
    }

    .regist-modern .regist-head::after {
        left: -16px;
        right: -16px;
    }
}

@media (max-width: 480px) {
    .regist-modern #createRequestForm.regist-form {
        padding: 20px 16px 16px;
    }

    .regist-modern #createRequestForm.regist-form h2.login-title {
        font-size: 24px;
    }

    .regist-modern .regist-head::after {
        left: -12px;
        right: -12px;
    }
}
