/* public.css 将 .header 设为 fixed，但顶栏含 banner 实际高度远超 62px，导致表单被遮挡 */
.register-page .header,
.login-page .header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;
}

.register-page .contentContainer,
.login-page .contentContainer {
    padding-top: 0 !important;
    background: #f5f5f5;
    min-height: 520px;
}

.register-page .contentContainer .login-main,
.login-page .contentContainer .login-main {
    background: transparent;
    padding: 20px 0 60px;
}

.register-page .register-box.login-box,
.login-page .register-box.login-box {
    width: 520px !important;
    margin: 20px auto 0;
    padding: 24px 40px 40px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.register-box .page_main_tit {
    width: 100% !important;
    max-width: 100%;
    margin: 10px auto 30px;
    font-size: 18px;
    color: #1d4390;
    line-height: 1.5;
}

.register-box .form-group {
    margin-bottom: 14px;
    line-height: 45px;
    clear: both;
    overflow: hidden;
}

.register-box .form-group .control-label {
    float: left;
    width: 90px;
    margin: 0;
    padding-right: 6px;
    line-height: 45px;
    text-align: right;
    font-weight: normal;
}

.register-box .form-group .form-control {
    float: left;
    margin: 0;
}

.register-box .form-group-has-hint {
    line-height: normal;
}

.register-box .form-group-has-hint .control-label {
    line-height: 45px;
}

.register-box .input-with-hint {
    float: left;
    width: 300px;
}

.register-box .input-with-hint .form-control {
    float: none;
    display: block;
    width: 100% !important;
}

.register-box .input-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.register-box .input-with-hint > .msg-box {
    display: block;
    float: none;
    width: 100%;
    margin: 6px 0 0;
    padding: 0;
    min-height: auto;
    line-height: 1.5;
    text-align: left;
    position: static !important;
}

.register-box .input-with-hint > .msg-box .msg-wrap,
.register-box .input-with-hint > .msg-box.n-right {
    position: static !important;
    margin: 0 !important;
    line-height: 1.5;
}

.register-box .input-with-hint > .msg-box .n-error {
    font-size: 12px;
    color: #e74c3c;
}

.register-box .input-with-hint > .msg-box .n-arrow {
    display: none;
}

.register-box .form-group-captcha {
    display: flex;
    align-items: center;
    line-height: normal;
    min-height: 45px;
    overflow: visible;
}

.register-box .form-group-captcha .control-label {
    float: none;
    flex: 0 0 90px;
    line-height: 45px;
}

.register-box .form-group .captcha-row {
    float: none;
    flex: 1;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
}

.register-box .form-group .captcha-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none;
    flex: 0 0 auto;
    line-height: normal;
    padding-top: 0;
}

.register-box .form-group-captcha .captcha-input.form-control {
    float: none;
    width: 160px !important;
    height: 45px !important;
    line-height: 45px;
    margin: 0;
    vertical-align: middle;
    box-sizing: border-box;
}

.register-box .form-group-captcha .msg-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    min-height: 45px;
    text-align: right;
    padding-left: 8px;
    line-height: 45px;
    white-space: nowrap;
    float: none !important;
    position: static !important;
}

.register-box .form-group-captcha .msg-box .n-error,
.register-box .form-group-captcha .msg-box .msg-wrap {
    text-align: right;
    line-height: 45px;
}

.register-box .form-group-captcha .msg-box .msg-wrap,
.register-box .form-group-captcha .msg-box.n-right {
    position: static !important;
    margin: 0 !important;
    line-height: 45px;
    vertical-align: middle;
}

.register-box .form-group-captcha .msg-box .n-arrow {
    display: none;
}

.register-box .btn-send-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 0 12px;
    height: 45px;
    line-height: 45px;
    background: #1487f4;
    color: #fff !important;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.register-box .btn-send-captcha:hover {
    background: #0d6fd4;
    color: #fff !important;
}

.register-box .img-captcha {
    margin-left: 0;
    width: 100px;
    height: 45px;
    object-fit: contain;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background: #fff;
}

.register-actions {
    text-align: center;
    overflow: visible;
}

.register-actions .control-label {
    display: none;
}

.register-actions span {
    float: none;
    margin-left: 0;
    display: inline-block;
}

.register-actions .button_sm,
.register-actions .button_sm_grey {
    margin-right: 10px;
}

.register-links,
.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-links a,
.login-links a {
    color: #1487f4;
    text-decoration: none;
}

.register-links a:hover,
.login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .register-page .register-box.login-box,
    .login-page .register-box.login-box {
        width: 96% !important;
        padding: 20px 16px 30px;
    }

    .register-box .form-control,
    .register-box .captcha-input.form-control {
        width: 100% !important;
        max-width: 280px;
    }

    .register-box .form-group-captcha {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-box .form-group-captcha .control-label {
        flex: none;
        width: auto;
        text-align: left;
        line-height: normal;
    }

    .register-box .form-group .captcha-row {
        width: 100%;
        float: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .register-box .form-group-captcha .msg-box {
        text-align: left;
        padding-left: 0;
        margin-top: 4px;
        min-height: auto;
        line-height: 1.4;
        align-self: auto;
    }

    .register-box .login-main .form-group label,
    .register-box .form-group label {
        display: block;
        width: auto;
        text-align: left;
        float: none;
    }
}
