/* 认证页（登录 / 注册）共享样式。
   由两个模板的内联 <style> 合并而来（后段覆盖前段的死规则已直接取最终值），
   主色从红色 #ef4444 统一为品牌蓝 #2563eb。 */
.auth-page {
    --auth-ink: #111827;
    --auth-muted: #667085;
    --auth-line: #d9e2ef;
    --auth-soft: #f7f9fc;
    --auth-accent: #2563eb;
    --auth-accent-dark: #1d4ed8;
    --auth-accent-soft: #93c5fd;
    width: 100%;
    max-width: 1360px;
    margin: 74px auto 54px;
    padding: 0 15px;
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    min-height: 660px;
    background: #f3f6fb;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}
.auth-side {
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    background: #111827;
    color: #fff;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--auth-accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.auth-side h1 {
    max-width: 300px;
    margin: 72px 0 14px;
    color: #fff;
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
}
.auth-side p {
    max-width: 300px;
    margin: 0;
    color: #a8b3c7;
    font-size: 15px;
    line-height: 1.8;
}
.auth-signal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 38px;
}
.auth-signal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}
.auth-signal-item strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}
.auth-signal-item span {
    display: block;
    margin-top: 0;
    color: #a8b3c7;
    font-size: 13px;
}
.auth-side-footer {
    position: static;
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #cbd5e1;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.auth-side-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}
.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: #f3f6fb;
}
.auth-tabs,
.auth-panel h2,
.auth-subtitle,
.auth-console-strip,
.auth-panel form {
    width: 100%;
    max-width: 500px;
}
.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 28px;
    padding: 5px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: var(--auth-soft);
}
.auth-tabs a {
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 9px;
    color: #475467;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.auth-tabs a:hover,
.auth-tabs a:focus {
    color: var(--auth-accent-dark);
    text-decoration: none;
    outline: none;
}
.auth-tabs a.active {
    background: #fff;
    color: var(--auth-accent-dark);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.auth-panel h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
}
.auth-subtitle {
    margin: 9px 0 18px;
    color: #64748b;
    line-height: 1.7;
}
.auth-console-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.auth-console-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.auth-console-strip .fa {
    color: var(--auth-accent);
}
.auth-panel form {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.auth-panel .form-group {
    margin-bottom: 20px;
}
.auth-panel .control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}
.auth-input-wrap {
    position: relative;
}
.auth-input-wrap .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 15px;
    pointer-events: none;
}
.auth-input-wrap .form-control {
    height: 48px;
    padding: 11px 46px 11px 42px;
    color: var(--auth-ink);
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fbfdff;
    box-shadow: none;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-captcha .form-control {
    height: 48px;
    border-color: #d7deea;
    background: #fbfdff;
    border-radius: 10px 0 0 10px;
}
.auth-captcha .input-group-btn .btn,
.auth-captcha .input-group-btn img {
    border-color: #d7deea;
    border-radius: 0 10px 10px 0;
}
.auth-input-wrap .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.auth-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.auth-password-toggle:hover,
.auth-password-toggle:focus {
    background: #f2f4f7;
    color: var(--auth-ink);
    outline: none;
}
.auth-password-toggle .fa {
    position: static;
    transform: none;
    color: inherit;
    font-size: 15px;
    pointer-events: auto;
}
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 22px;
}
.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    color: #475467;
    font-weight: 600;
    cursor: pointer;
}
.auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}
.auth-primary {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--auth-accent);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.auth-primary:hover,
.auth-primary:focus {
    background: var(--auth-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    outline: none;
}
.auth-secondary {
    min-height: 48px;
    margin-top: 12px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.auth-secondary:hover,
.auth-secondary:focus {
    border-color: #b9c5d8;
    background: var(--auth-soft);
    color: var(--auth-ink);
    outline: none;
}
.auth-panel .help-block {
    margin: 7px 0 0;
}
.auth-panel .has-error .form-control {
    border-color: #dc2626;
}
.auth-panel .has-error .help-block,
.auth-panel .msg-box {
    color: #b42318;
}
.auth-form-message {
    display: none;
    width: 100%;
    max-width: 500px;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    line-height: 1.5;
}
.auth-2fa-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.52);
}
.auth-2fa-mask.is-visible {
    display: flex;
}
.auth-2fa-dialog {
    width: 100%;
    max-width: 420px;
    padding: 26px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.30);
}
.auth-2fa-dialog h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}
.auth-2fa-dialog p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.7;
}
.auth-2fa-dialog .form-control {
    height: 52px;
    border-color: #d7deea;
    border-radius: 10px;
    font-size: 22px;
    text-align: center;
    font-weight: 800;
}
.auth-2fa-error {
    min-height: 20px;
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
}
.auth-2fa-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.auth-2fa-actions .btn {
    flex: 1;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
}
.auth-submit-state {
    min-height: 20px;
    margin-top: 10px;
    color: var(--auth-muted);
    font-size: 13px;
}
.auth-field-hint {
    margin: 7px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .auth-console-strip {
        grid-template-columns: 1fr;
    }
    .auth-console-strip span {
        justify-content: flex-start;
    }
    .auth-panel form {
        padding: 20px;
    }
    .auth-panel h2 {
        font-size: 28px;
    }
}
@media (max-width: 991px) {
    .auth-page {
        margin-top: 74px;
        padding: 0;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .auth-side {
        padding: 30px 26px;
        border-right: 0;
        border-bottom: 1px solid var(--auth-line);
    }
    .auth-side h1 {
        margin-top: 34px;
        font-size: 28px;
    }
    .auth-side-footer {
        position: static;
        margin-top: 28px;
        flex-wrap: wrap;
    }
    .auth-panel {
        padding: 32px 26px 34px;
    }
}
@media (max-width: 520px) {
    .auth-page {
        margin-top: 66px;
    }
    .auth-shell {
        border-radius: 18px;
    }
    .auth-side,
    .auth-panel {
        padding-left: 18px;
        padding-right: 18px;
    }
    .auth-signal {
        grid-template-columns: 1fr;
    }
    .auth-tabs {
        margin-bottom: 26px;
    }
    .auth-panel h2 {
        font-size: 23px;
    }
    .auth-captcha.input-group,
    .auth-captcha .form-control,
    .auth-captcha .input-group-btn,
    .auth-captcha .input-group-btn .btn,
    .auth-captcha .input-group-btn img {
        display: block;
        width: 100%;
        border-radius: 14px;
    }
    .auth-captcha .input-group-btn {
        margin-top: 10px;
    }
    .auth-captcha .input-group-btn .btn,
    .auth-captcha .input-group-btn img {
        border: 1px solid #cfd8e6;
    }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *:before,
    .auth-page *:after {
        transition: none !important;
    }
}
