/* Shared by the standalone page and the injected dialog. */
.auth_surface { color: #17212f; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; line-height: 1.5; }
.auth_surface button, .auth_surface input { font-family: inherit; }
.auth_surface [hidden] { display: none !important; }
.auth_con.register_con { margin-top: 126px; }
.auth_con .auth_card { width: 480px; padding: 30px 32px 26px; border: 1px solid #e1e8e6; border-radius: 12px; box-shadow: 0 14px 36px rgba(27, 62, 47, .08); }
body:has(.auth_con) { background: #edf4f2; }
body:has(.auth_con) > header .header_mask { box-shadow: 0 1px 3px rgba(23, 33, 47, .08); }
body:has(.auth_con) > footer { color: #8893a2; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 12px; }
body:has(.auth_con) > footer ul { padding-top: 24px; }
.auth_surface .auth_tabs { display: flex; margin: 0 0 24px; }
.auth_surface .auth_tabs > li { flex: 1; float: none; text-align: center; }
.auth_surface .auth_tabs > li > a { padding: 6px 0 12px; font-size: 17px; }
.auth_surface .auth_tabs > li.active > a { color: #278426; font-weight: 600; }
.auth_surface .auth_intro { margin: 0 0 24px; text-align: center; }
.auth_surface .auth_intro h1 { margin: 0 0 8px; padding: 0; font-size: 26px; font-weight: 700; line-height: 1.4; }
.auth_surface .auth_intro p { margin: 0; color: #7d889b; font-size: 15px; line-height: 1.6; }
.auth_surface .auth_field { margin: 0 0 18px; }
.auth_surface .auth_field > label { display: block; float: none; width: auto; margin: 0 0 7px; padding: 0; text-align: left; color: #253144; font-size: 15px; font-weight: 500; }
.auth_surface .auth_field .input_con { float: none; width: 100%; }
.auth_surface .auth_form input.form-control { width: 100%; min-width: 0; height: 48px; padding: 11px 14px; border: 1px solid #d3dce7; border-radius: 6px; font-size: 16px; box-shadow: none; }
.auth_surface .auth_form input.form-control::placeholder { color: #96a0b2; font-size: 15px; }
.auth_surface .auth_form .icon_con input { padding-right: 62px; }
.auth_surface .auth_password { position: absolute; top: 1px; right: 1px; min-width: 54px; height: 46px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: #7b8799; font-size: 14px; cursor: pointer; }
.auth_surface .auth_inline { display: flex; align-items: center; gap: 10px; width: 100%; }
.auth_surface .auth_inline > .form-control { flex: 1 1 0; min-width: 0; }
.auth_surface .token_row { display: block; }
.auth_surface .auth_captcha { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0; min-height: 46px; border: 0; background: transparent; color: #278426; font-size: 12px; cursor: pointer; }
.auth_surface .auth_captcha img { width: 84px; height: 35px; border-radius: 4px; }
.auth_surface .auth_captcha span { max-width: 24px; line-height: 1.2; }
.auth_surface .auth_send { flex: 0 0 auto; width: 128px; min-height: 46px; padding: 8px 6px; margin: 0; border: 1px solid #278426; border-radius: 6px; background: #f8fcf8; color: #278426; font-size: 13px; }
.auth_surface .auth_send:disabled { border-color: #d7dfe8; color: #8e99ac; background: #f4f6f9; opacity: 1; }
.auth_surface .auth_submit { width: 100%; min-height: 48px; border-radius: 6px; background: #278426; font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.auth_surface .auth_submit:hover { background: #216f21; }
.auth_surface .auth_options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 22px; font-size: 14px; }
.auth_surface .auth_options label { margin: 0; color: #7b8799; }
.auth_surface input[type=checkbox] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: #278426; }
.auth_surface .auth_agreement label { display: block; color: #7b8799; font-size: 14px; line-height: 1.8; }
.auth_surface a { color: #278426; }
.auth_surface .auth_social { margin-top: 28px; }
.auth_surface .auth_social .cut_line_text { margin-bottom: 6px; border-top-style: solid; border-color: #e1e7e2; }
.auth_surface .third-regist-icons { display: flex; gap: 10px; }
.auth_surface .third-regist-icons a { display: inline-flex; flex: 1; justify-content: center; align-items: center; gap: 9px; min-height: 46px; border: 1px solid #bcc7d7; border-radius: 6px; color: #263246; font-size: 15px; font-weight: 500; text-decoration: none; }
.auth_surface .third-regist-icons a:hover { border-color: #278426; background: #f8fcf8; }
.auth_surface .third-regist-icons img { width: 26px; height: 26px; object-fit: contain; }
.auth_surface .third-regist-tip { margin: 12px 0 0; color: #8b96a9; font-size: 13px; line-height: 1.6; }
.auth_surface .auth_error { display: none; position: static; width: 100%; margin: 0 0 16px; padding: 10px 12px; border-radius: 6px; background: #fff2f0; color: #b93228; font-size: 13px; line-height: 1.6; opacity: 1; }
.auth_surface .auth_field_error { display: block; margin-top: 6px; color: #b93228; font-size: 12px; line-height: 1.5; }
.auth_surface .form-control[aria-invalid=true] { border-color: #cc5145; }
.auth_surface :is(a, button, input):focus-visible { outline: 2px solid #278426; outline-offset: 3px; }
.auth_surface .auth_steps { display: flex; justify-content: center; align-items: center; margin: 0 0 26px; padding: 0; list-style: none; color: #98a2b4; font-size: 14px; }
.auth_surface .auth_steps li { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.auth_surface .auth_steps li:first-child::after { content: ''; width: 36px; height: 2px; margin: 0 14px 0 5px; background: #d9e0e9; }
.auth_surface .auth_step_number { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; justify-content: center; align-items: center; border-radius: 50%; background: #aab4c4; color: #fff; font-size: 15px; font-weight: 600; }
.auth_surface .auth_steps li.active, .auth_surface .auth_steps li.is-complete { color: #278426; font-weight: 500; }
.auth_surface .auth_steps li.active .auth_step_number, .auth_surface .auth_steps li.is-complete .auth_step_number { background: #278426; }
.auth_surface .auth_steps li.is-complete:first-child::after { background: #278426; }
.auth_surface .auth_steps li.is-complete .auth_step_number { font-size: 0; }
.auth_surface .auth_steps li.is-complete .auth_step_number::after { content: '✓'; font-size: 18px; }
.auth_surface .auth_back { padding: 3px 0; border: 0; background: transparent; color: #278426; font-size: 13px; cursor: pointer; }
.auth_surface .auth_recipient_line { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: #7b8799; font-size: 15px; overflow-wrap: anywhere; }
.auth_surface .auth_status { color: #278426; font-size: 14px; line-height: 1.6; }
.auth_surface .auth_status:not(:empty) { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 12px 14px; border-radius: 6px; background: #e8f9ed; }
.auth_surface .auth_status:not(:empty)::before { content: '✓'; display: inline-flex; flex: 0 0 22px; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #278426; color: #fff; font-size: 16px; }
.auth_surface .auth_help { margin: 12px 0 16px; color: #8b96a9; font-size: 13px; line-height: 1.6; }
#dialog_login_modal .modal-dialog { width: 480px; max-width: calc(100% - 24px); margin: 6vh auto 24px; }
#dialog_login_modal .modal-content { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 12px; border: 1px solid #e2e9e3; }
#dialog_login_modal .modal-header { height: 0; min-height: 0; padding: 0; border: 0; overflow: visible; }
#dialog_login_modal .modal-header .close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; margin: 0; line-height: 32px; opacity: .7; }
#dialog_login_modal .auth_dialog { padding: 34px 32px 28px; }
#dialog_login_modal .auth_error { position: static; }
@media (max-width: 760px) {
    .auth_con.register_con { margin-top: 76px; }
    .auth_con .auth_card { width: 480px; padding: 26px 22px; }
    .auth_con .container-fluid { padding: 0 12px; }
    .auth_surface .auth_intro h1 { font-size: 24px; }
    .auth_surface .auth_field { margin-bottom: 16px; }
    #dialog_login_modal .modal-dialog { margin-top: 16px; }
    #dialog_login_modal .auth_dialog { padding: 30px 22px 24px; }
}
@media (max-width: 360px) {
    .auth_con .auth_card, #dialog_login_modal .auth_dialog { padding-left: 16px; padding-right: 16px; }
    .auth_surface .auth_send { width: 116px; font-size: 12px; }
    .auth_surface .auth_captcha img { width: 76px; height: auto; }
}

/* The first form and verification dialog follow the approved visual hierarchy. */
.auth_surface[data-auth-mode=register] > .auth_tabs { display: none; }
.auth_surface[data-auth-mode=register] [data-auth-login-note], .auth_surface[data-auth-mode=login] [data-auth-register-switch] { display: none; }
.auth_surface .auth_switch { margin: 14px 0 0; text-align: center; color: #8b96a9; font-size: 14px; }
.auth_surface .auth_switch a { font-weight: 500; }
.auth_surface .auth_verify_toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 28px; margin-bottom: 22px; }
.auth_surface .auth_verify_close { padding: 0; width: 28px; height: 28px; border: 0; background: transparent; color: #1c293b; font-size: 30px; line-height: 24px; cursor: pointer; }
.auth_surface .auth_verify_toolbar .auth_back { font-size: 15px; }
.auth_surface.auth_verifying .auth_intro { margin-bottom: 24px; }
.auth_surface.auth_verifying .auth_steps { margin-bottom: 24px; }
.auth_surface.auth_verifying .auth_inline { gap: 0; }
.auth_surface.auth_verifying .auth_inline > input { border-radius: 6px 0 0 6px; }
.auth_surface.auth_verifying .auth_send { height: 48px; border-left: 0; border-radius: 0 6px 6px 0; }
.auth_surface.auth_verifying #btn_gettoken, .auth_surface.auth_verifying #btn_get_emailtoken { width: 128px; margin-left: 0; }
.auth_surface.auth_verifying .token_row .auth_inline { gap: 10px; }
.auth_surface.auth_verifying .token_row input { border-radius: 6px; }
.auth_surface.auth_verifying [data-auth-finish-help] { margin: 20px 0 0; text-align: center; font-size: 14px; }
body:has(.auth_card.auth_verifying) { overflow: hidden; }
body:has(.auth_card.auth_verifying)::before { content: ''; position: fixed; inset: 0; z-index: 1040; background: rgba(23, 30, 39, .48); }
.auth_con .auth_card.auth_verifying { position: fixed; left: 50%; top: 50%; z-index: 1050; width: 480px; max-width: calc(100% - 24px); max-height: calc(100dvh - 32px); margin: 0; overflow-y: auto; transform: translate(-50%, -50%); box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.auth_con:has(.auth_verifying) { min-height: 620px; }
@media (max-width: 360px) {
    .auth_surface .auth_steps { font-size: 12px; }
    .auth_surface.auth_verifying #btn_gettoken, .auth_surface.auth_verifying #btn_get_emailtoken { width: 116px; }
    .auth_surface .auth_steps li { gap: 6px; }
    .auth_surface .auth_steps li:first-child::after { width: 24px; margin: 0 10px 0 4px; }
    .auth_surface .auth_intro p { font-size: 13px; }
}
