* {
    box-sizing: border-box;
}

:root {
    --auth-ink: #192321;
    --auth-muted: #6b7774;
    --auth-canvas: #f3f5f4;
    --auth-paper: #ffffff;
    --auth-line: #dce2df;
    --auth-brand: #0f625a;
    --auth-brand-dark: #0a463f;
    --auth-brand-soft: #e7f1ee;
    --auth-gold: #b8872d;
    --auth-gold-soft: #f7edd5;
    --auth-danger: #9e3933;
    --auth-danger-soft: #faecea;
    --auth-success: #126754;
    --auth-success-soft: #e9f5f1;
    --auth-shadow: 0 22px 56px rgba(25, 35, 33, 0.10);
}

html {
    min-width: 320px;
    background: var(--auth-canvas);
}

body.auth-page {
    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--auth-ink);
    background: var(--auth-canvas);
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
}

.auth-page a {
    color: inherit;
}

.auth-page .video-bg {
    display: none;
}

.auth-site-header {
    height: 72px;
    background: var(--auth-paper);
    border-bottom: 1px solid var(--auth-line);
}

.auth-header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--auth-ink);
    text-decoration: none;
}

.auth-brand img,
.auth-brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: block;
}

.auth-brand-copy {
    min-width: 0;
}

.auth-brand-copy strong,
.auth-brand-copy span {
    display: block;
    letter-spacing: 0;
}

.auth-brand-copy strong {
    font-size: 17px;
    line-height: 1.2;
}

.auth-brand-copy span {
    margin-top: 3px;
    color: var(--auth-muted);
    font-size: 10px;
}

.auth-back-home {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--auth-ink);
    background: var(--auth-paper);
    border: 1px solid #cfd7d3;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.auth-back-home:hover {
    color: var(--auth-brand);
    background: #f8faf9;
    border-color: var(--auth-brand);
}

.auth-main {
    width: min(1080px, calc(100% - 40px));
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 64px 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    align-items: center;
    gap: 76px;
}

.auth-main-register {
    width: min(1180px, calc(100% - 40px));
    padding-top: 52px;
    grid-template-columns: minmax(280px, 0.65fr) minmax(560px, 1.35fr);
    align-items: start;
}

.auth-main-register .auth-intro {
    position: sticky;
    top: 124px;
}

.auth-main-register .auth-intro h2 {
    font-size: 34px;
}

.auth-state-main {
    width: min(100% - 40px, 560px);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 56px 0;
    display: grid;
    place-items: center;
}

.auth-page .auth-error-box {
    width: 100%;
    max-width: 520px;
    padding: 38px;
    color: var(--auth-ink);
    background: var(--auth-paper);
    border: 1px solid var(--auth-line);
    border-radius: 6px;
    box-shadow: var(--auth-shadow);
    text-align: left;
    backdrop-filter: none;
}

.auth-page .auth-error-box::before {
    content: "SERVICE NOTICE";
    display: block;
    margin-bottom: 10px;
    color: var(--auth-danger);
    font-size: 11px;
    font-weight: 800;
}

.auth-page .auth-error-box .icon {
    display: none;
}

.auth-page .auth-error-box h1 {
    margin: 0 0 18px;
    color: var(--auth-ink);
    font-size: 28px;
}

.auth-page .auth-error-box p {
    margin: 9px 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.7;
}

.auth-page .auth-error-code {
    margin-top: 24px !important;
    padding-top: 16px;
    border-top: 1px solid var(--auth-line);
    font-size: 11px !important;
}

.auth-intro {
    min-width: 0;
}

.auth-eyebrow {
    margin: 0 0 12px;
    color: var(--auth-brand);
    font-size: 12px;
    font-weight: 800;
}

.auth-intro h2 {
    margin: 0;
    max-width: 520px;
    font-size: 38px;
    line-height: 1.22;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.auth-intro > p:last-of-type {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.85;
}

.auth-points {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--auth-line);
}

.auth-point {
    position: relative;
    margin-top: 15px;
    padding-left: 19px;
    color: #42504d;
    font-size: 13px;
    line-height: 1.65;
}

.auth-point:first-child {
    margin-top: 0;
}

.auth-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    background: var(--auth-gold);
}

.auth-page .login-container,
.auth-page .register-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 36px;
    overflow: visible;
    color: var(--auth-ink);
    background: var(--auth-paper);
    border: 1px solid var(--auth-line);
    border-radius: 6px;
    box-shadow: var(--auth-shadow);
    backdrop-filter: none;
}

.auth-page .register-container {
    padding: 38px 42px;
}

.auth-page .login-header,
.auth-page .register-header {
    margin: 0 0 30px;
    text-align: left;
}

.auth-page .login-header::before,
.auth-page .register-header::before {
    content: "SECURE ACCESS";
    display: block;
    margin-bottom: 9px;
    color: var(--auth-brand);
    font-size: 11px;
    font-weight: 800;
}

.auth-page .register-header::before {
    content: "CREATE ACCOUNT";
}

.auth-page .login-icon,
.auth-page .register-icon {
    display: none;
}

.auth-page .login-header h1,
.auth-page .register-header h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    text-shadow: none;
}

.auth-page .login-header p,
.auth-page .register-header p {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.7;
    text-shadow: none;
}

.auth-page .form-section {
    margin-bottom: 30px;
}

.auth-page .section-title {
    margin: 0 0 20px;
    padding: 0 0 11px;
    color: var(--auth-ink);
    border-bottom: 1px solid var(--auth-line);
    font-size: 14px;
    font-weight: 800;
    text-shadow: none;
}

.auth-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-page .form-group {
    min-width: 0;
    margin-bottom: 20px;
}

.auth-page .form-group label {
    display: block;
    margin: 0 0 8px;
    color: #34413e;
    font-size: 13px;
    font-weight: 700;
    text-shadow: none;
}

.auth-page .form-group label .required {
    color: var(--auth-danger);
}

.auth-page .form-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--auth-ink);
    background: #fbfcfb;
    border: 1px solid #cfd7d3;
    border-radius: 5px;
    outline: none;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    text-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-page .form-group input::placeholder {
    color: #9aa5a1;
}

.auth-page .form-group input:focus,
.auth-page #verify_code:focus {
    color: var(--auth-ink);
    background: var(--auth-paper);
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(15, 98, 90, 0.12);
}

.auth-page .form-hint {
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.55;
}

.auth-page .qq-email-input {
    display: flex;
    align-items: stretch;
}

.auth-page .qq-email-input input {
    min-width: 0;
    flex: 1;
    border-radius: 5px 0 0 5px;
}

.auth-page .qq-email-suffix {
    min-width: 78px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4e5d59;
    background: #f1f4f2;
    border: 1px solid #cfd7d3;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    font-size: 13px;
}

.auth-page .verify-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.auth-page .verify-code-row input {
    min-width: 0;
    flex: 1;
}

.auth-page #sendCodeBtn {
    width: 132px;
    min-height: 46px;
    padding: 0 14px;
    color: var(--auth-brand);
    background: var(--auth-paper);
    border: 1px solid var(--auth-brand);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-page #sendCodeBtn:hover {
    color: var(--auth-paper);
    background: var(--auth-brand);
    box-shadow: none;
    transform: none;
}

.auth-page #sendCodeBtn:disabled {
    color: #929b98 !important;
    background: #e9eceb !important;
    border-color: #d8dedb !important;
    opacity: 1;
}

.auth-page .btn {
    width: 100%;
    min-height: 46px;
    margin: 5px 0 0;
    padding: 0 18px;
    color: var(--auth-paper);
    background: var(--auth-brand);
    border: 1px solid var(--auth-brand);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    backdrop-filter: none;
    text-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-page .btn:hover {
    color: var(--auth-paper);
    background: var(--auth-brand-dark);
    border-color: var(--auth-brand-dark);
    box-shadow: none;
    transform: none;
}

.auth-page .btn:active {
    transform: none;
}

.auth-page .btn:disabled,
.auth-page .btn[style*="opacity: 0.6"] {
    cursor: not-allowed;
}

.auth-page .alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.65;
    text-shadow: none;
}

.auth-page .alert-danger {
    color: var(--auth-danger);
    background: var(--auth-danger-soft);
    border-color: #edcbc7;
}

.auth-page .alert-success {
    color: var(--auth-success);
    background: var(--auth-success-soft);
    border-color: #c6e2d9;
}

.auth-page .alert-notice {
    color: #78591b;
    background: var(--auth-gold-soft);
    border-color: #e8d19c;
}

.auth-page .agreement-box {
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-page .agreement-label {
    min-width: 0;
    display: flex;
    align-items: center;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
    text-shadow: none;
}

.auth-page .agreement-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    flex: 0 0 16px;
    accent-color: var(--auth-brand);
}

.auth-page .agreement-link,
.auth-page .forgot-password,
.auth-page .login-links a {
    color: var(--auth-brand);
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
}

.auth-page .forgot-password {
    flex: 0 0 auto;
    font-size: 12px;
}

.auth-page .agreement-link:hover,
.auth-page .forgot-password:hover,
.auth-page .login-links a:hover {
    text-decoration: underline;
}

.auth-page .login-links {
    margin: 22px 0 0;
    padding: 20px 0 0;
    color: var(--auth-muted);
    border-top: 1px solid var(--auth-line);
    font-size: 13px;
    text-align: center;
}

.auth-page .login-links a {
    margin: 0 6px;
    font-size: 13px;
}

.auth-page .login-footer {
    margin: 24px 0 0;
    color: #89938f;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
    text-shadow: none;
}

.auth-page .success-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.auth-page .success-actions a,
.auth-page .inline-action-link {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-paper);
    background: var(--auth-brand);
    border: 1px solid var(--auth-brand);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-page .success-actions a {
    flex: 1;
}

.auth-page .inline-action-row {
    margin: -8px 0 20px;
}

.auth-page .inline-action-link {
    width: 100%;
}

.auth-page .inline-action-link:hover,
.auth-page .success-actions a:hover {
    background: var(--auth-brand-dark);
}

@media (max-width: 960px) {
    .auth-main,
    .auth-main-register {
        width: min(100% - 28px, 620px);
        min-height: auto;
        padding: 40px 0 58px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-state-main {
        min-height: calc(100vh - 72px);
    }

    .auth-main-register .auth-intro {
        position: static;
    }

    .auth-intro h2 {
        font-size: 30px;
    }

    .auth-intro > p:last-of-type {
        margin-top: 12px;
    }

    .auth-points {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-site-header {
        height: 64px;
    }

    .auth-header-inner {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .auth-brand img,
    .auth-brand-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .auth-brand-copy strong {
        font-size: 15px;
    }

    .auth-brand-copy span {
        display: none;
    }

    .auth-back-home {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .auth-main,
    .auth-main-register {
        width: calc(100% - 24px);
        padding: 32px 0 44px;
        gap: 22px;
    }

    .auth-state-main {
        width: calc(100% - 24px);
        min-height: calc(100vh - 64px);
        padding: 36px 0;
    }

    .auth-page .auth-error-box {
        padding: 28px 22px;
    }

    .auth-intro h2 {
        font-size: 27px;
    }

    .auth-intro > p:last-of-type {
        font-size: 13px;
        line-height: 1.7;
    }

    .auth-page .login-container,
    .auth-page .register-container {
        padding: 26px 22px;
    }

    .auth-page .login-header,
    .auth-page .register-header {
        margin-bottom: 25px;
    }

    .auth-page .login-header h1,
    .auth-page .register-header h1 {
        font-size: 24px;
    }

    .auth-page .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-page .verify-code-row {
        flex-direction: column;
    }

    .auth-page #sendCodeBtn {
        width: 100%;
    }

    .auth-page .agreement-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-page .success-actions {
        flex-direction: column;
    }
}
