/* 认证页面样式 */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Compact mobile hardening for login, register and password recovery */
@media (max-width: 520px) {
    body,
    body.auth-page {
        min-height: 100dvh;
        padding: 12px;
        align-items: flex-start;
    }

    .auth-container,
    .auth-page .auth-shell,
    .auth-page .auth-workspace,
    .auth-page .auth-stage,
    .auth-page .auth-board,
    .auth-page .auth-card-modern,
    .auth-page .auth-form-card,
    .auth-page .auth-main-panel,
    .auth-page .auth-side-panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .auth-page .auth-board {
        grid-template-columns: 1fr !important;
        border-radius: 18px;
        padding: 18px;
    }

    .auth-page .auth-main-panel,
    .auth-page .auth-side-panel {
        padding: 0;
    }

    .auth-page .auth-side-panel {
        display: none;
    }

    .auth-card,
    .auth-page .auth-card-modern {
        border-radius: 18px;
        padding: 18px;
    }

    .auth-page .auth-inline-row,
    .auth-page .auth-phone-row,
    .auth-page .auth-field-modern.auth-field-inline {
        grid-template-columns: 1fr !important;
    }

    .auth-page .auth-actions-row,
    .auth-page .auth-banner,
    .auth-page .auth-footer-modern,
    .auth-page .auth-qr-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page .auth-tabbar-modern,
    .auth-page .auth-tabbar-modern.auth-tabbar-inline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-page .auth-primary-btn,
    .auth-page .auth-secondary-btn,
    .auth-page .auth-link-btn,
    .auth-page .auth-tab-modern,
    .auth-page .auth-inline-btn,
    input,
    select,
    textarea,
    button {
        min-height: 44px;
    }
}

.auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-hover);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.guest-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.is-auth-pretext {
    display: block;
    max-width: 100%;
}

.auth-pretext-line {
    display: block;
    max-width: 100%;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-box {
        padding: 30px 24px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* 主页面头部认证按钮样式 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#authButtons {
    display: flex;
    gap: 8px;
}

.login-btn,
.register-btn,
.user-center-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
}

.login-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.login-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.register-btn {
    background: var(--primary-color);
    color: white;
}

.register-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.user-center-btn {
    background: transparent;
    color: var(--text-primary);
    border: none;
}

.user-center-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.admin-btn {
    background: transparent;
    color: var(--text-primary);
    border: none;
}

.admin-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

#userActions {
    display: flex;
    gap: 8px;
}

/* 用户等级徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
}

.badge-guest {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-member {
    background: #dbeafe;
    color: #1e40af;
}

.badge-month {
    background: #fef3c7;
    color: #92400e;
}

.badge-quarter {
    background: #fce7f3;
    color: #9f1239;
}

.badge-year {
    background: #ddd6fe;
    color: #5b21b6;
}

.badge-lifetime {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.badge-admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

#userLevelBadge {
    cursor: help;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d2935;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at top, rgba(222, 198, 159, 0.38), transparent 30%),
        linear-gradient(180deg, #f8f2e7 0%, #f1ebe3 44%, #eef3f1 100%);
}

body.auth-page.auth-embedded {
    min-height: 100%;
    padding: 0;
    align-items: stretch;
    background: transparent;
}

.auth-page .auth-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.auth-page.auth-embedded .auth-shell,
body.auth-page.auth-embedded .auth-workspace {
    min-height: 100%;
    align-items: stretch;
}

body.auth-page.auth-embedded .auth-workspace {
    padding: 0;
}

.auth-page .auth-workspace {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-page .auth-card-modern {
    width: min(100%, 460px);
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(210, 219, 223, 0.82);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
}

.auth-page .auth-card-compact {
    display: grid;
    gap: 14px;
}

body.auth-page.auth-embedded .auth-card-modern {
    width: min(100%, 100%);
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.auth-page.auth-embedded .auth-card-compact {
    gap: 12px;
}

body.auth-page.auth-embedded .auth-brand-strip {
    display: none;
}

.auth-page .auth-brand-strip {
    display: grid;
    gap: 6px;
}

.auth-page .auth-brand-caption {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7d5d28;
    font-weight: 700;
}

.auth-page .auth-brand-strip strong {
    font-size: 28px;
    line-height: 1.1;
    color: #1c2e3a;
}

.auth-page .auth-inline-notice,
.auth-page .auth-banner {
    border-radius: 16px;
    border: 1px solid rgba(201, 170, 118, 0.3);
    background: rgba(255, 248, 238, 0.96);
    color: #785222;
}

.auth-page .auth-inline-notice {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
}

.auth-page .auth-banner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
}

.auth-page .auth-banner strong,
.auth-page .auth-banner p,
.auth-page .auth-banner span {
    display: block;
}

.auth-page .auth-banner p,
.auth-page .auth-banner span {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-page .auth-tabbar-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 8px;
}

.auth-page .auth-tabbar-four {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.auth-page .auth-tab-modern,
.auth-page .auth-primary-btn,
.auth-page .auth-secondary-btn,
.auth-page .auth-link-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    font: inherit;
}

.auth-page .auth-tab-modern {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(211, 219, 223, 0.88);
    background: #f7f3ed;
    color: #54687a;
    font-size: 14px;
    font-weight: 600;
}

.auth-page .auth-tab-modern.is-active {
    background: linear-gradient(135deg, #0e637f, #147b93);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 28px rgba(14, 99, 127, 0.2);
}

.auth-page .auth-pane-modern {
    display: none;
}

.auth-page .auth-pane-modern.is-active {
    display: block;
}

.auth-page .auth-switch-hub {
    margin-top: 4px;
    padding: 13px 14px;
    display: grid;
    gap: 12px;
    border-radius: 18px;
    border: 1px solid #dce5e7;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 249, 0.92));
}

.auth-page .auth-switch-hub-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.auth-page .auth-switch-hub-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #203446;
}

.auth-page .auth-switch-hub-copy {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #697b8b;
}

.auth-page .auth-switch-hub-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid #d7e3e8;
    background: #f7fbfc;
    color: #0d6782;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.auth-page .auth-shortcut-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-page .auth-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d5e1e5;
    background: #fff;
    color: #355165;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.auth-page .auth-quick-link:hover,
.auth-page .auth-switch-hub-main:hover {
    transform: translateY(-1px);
    border-color: #9ec3cf;
    box-shadow: 0 12px 24px rgba(17, 115, 141, 0.08);
}

.auth-page .auth-form-modern {
    display: grid;
    gap: 12px;
}

.auth-page .auth-field-modern {
    display: grid;
    gap: 6px;
}

.auth-page .auth-field-modern span {
    font-size: 13px;
    font-weight: 600;
    color: #415566;
}

.auth-page .auth-field-modern input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1px solid #d9e0e2;
    background: #fbfbfa;
    color: #243341;
    font-size: 14px;
    outline: none;
}

.auth-page .auth-field-modern input:focus {
    border-color: #11738d;
    box-shadow: 0 0 0 4px rgba(17, 115, 141, 0.11);
}

.auth-page .auth-inline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
    align-items: center;
}

.auth-page .auth-inline-btn {
    padding: 12px 10px;
    white-space: nowrap;
}

.auth-page .auth-field-hint {
    margin: -4px 2px 2px;
    font-size: 12px;
    color: #687888;
    line-height: 1.5;
}

.auth-page .auth-check-modern {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #607080;
    line-height: 1.5;
}

.auth-page .auth-check-modern input {
    margin-top: 2px;
}

.auth-page .auth-primary-btn,
.auth-page .auth-secondary-btn,
.auth-page .auth-link-btn {
    border-radius: 13px;
    padding: 12px 14px;
}

.auth-page .auth-primary-btn {
    background: linear-gradient(135deg, #0d6985, #0f8b63);
    color: #fff;
    box-shadow: 0 16px 28px rgba(15, 139, 99, 0.16);
}

.auth-page .auth-secondary-btn {
    background: #eef3f5;
    color: #234253;
    border: 1px solid #d3dde4;
}

.auth-page .auth-link-btn {
    background: transparent;
    color: #0d6782;
    text-decoration: none;
    padding-left: 0;
    padding-right: 0;
}

.auth-page .auth-link-btn-button {
    border: none;
}

.auth-page .auth-primary-btn:hover,
.auth-page .auth-secondary-btn:hover,
.auth-page .auth-link-btn:hover,
.auth-page .auth-tab-modern:hover {
    transform: translateY(-1px);
}

.auth-page .auth-primary-btn:disabled,
.auth-page .auth-secondary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.auth-page .auth-full-btn {
    width: 100%;
}

.auth-page .auth-qr-provider-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.auth-page .auth-qr-provider-btn {
    appearance: none;
    border: 1px solid #d7e3e8;
    background: #f7fbfc;
    color: #355165;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.auth-page .auth-qr-provider-btn.is-active {
    background: linear-gradient(135deg, #0e637f, #147b93);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(14, 99, 127, 0.18);
}

.auth-page .auth-qr-provider-pane {
    display: none;
}

.auth-page .auth-qr-provider-pane.is-active {
    display: block;
}

.auth-page .auth-qr-panel {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding-top: 2px;
    text-align: center;
}

.auth-page .auth-qr-card {
    width: min(228px, 100%);
    aspect-ratio: 1;
    padding: 14px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    border: 1px solid #dbe4e7;
    background: linear-gradient(145deg, #ffffff, #f5f7f8);
}

.auth-page .auth-qr-image {
    width: 100%;
    max-width: 198px;
    height: auto;
}

.auth-page .auth-qr-status {
    margin: 0;
    font-size: 14px;
    color: #667789;
}

.auth-page .auth-qr-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.auth-page .auth-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e9e7;
}

body.auth-page.auth-embedded .auth-tabbar-modern,
body.auth-page.auth-embedded .auth-tabbar-four {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

body.auth-page.auth-embedded .auth-tab-modern {
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 13px;
}

body.auth-page.auth-embedded .auth-switch-hub {
    margin-top: 0;
    padding: 12px;
    border-radius: 16px;
}

body.auth-page.auth-embedded .auth-form-modern {
    gap: 10px;
}

body.auth-page.auth-embedded .auth-field-modern input {
    padding: 11px 12px;
    border-radius: 12px;
}

body.auth-page.auth-embedded .auth-primary-btn,
body.auth-page.auth-embedded .auth-secondary-btn,
body.auth-page.auth-embedded .auth-link-btn {
    border-radius: 12px;
    padding: 11px 13px;
}

body.auth-page.auth-embedded .auth-qr-provider-btn {
    padding: 7px 12px;
    font-size: 12px;
}

body.auth-page.auth-embedded .auth-qr-panel {
    gap: 10px;
}

body.auth-page.auth-embedded .auth-qr-card {
    width: min(214px, 100%);
    padding: 12px;
    border-radius: 18px;
}

body.auth-page.auth-embedded .auth-qr-image {
    max-width: 190px;
}

body.auth-page.auth-embedded .auth-footer-modern {
    padding-top: 12px;
}

.auth-page .auth-footer-modern a {
    color: #0d6782;
    text-decoration: none;
    font-weight: 600;
}

.auth-page .auth-footer-single {
    justify-content: flex-start;
}

.auth-page .is-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    body.auth-page {
        padding: 12px;
    }

    .auth-page .auth-card-modern {
        width: 100%;
        padding: 18px;
        border-radius: 20px;
    }

    .auth-page .auth-brand-strip strong {
        font-size: 24px;
    }

    .auth-page .auth-tabbar-modern,
    .auth-page .auth-tabbar-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-page .auth-inline-row {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-switch-hub-head {
        flex-direction: column;
    }

    .auth-page .auth-switch-hub-main {
        width: 100%;
    }

    .auth-page .auth-banner,
    .auth-page .auth-footer-modern,
    .auth-page .auth-qr-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page .auth-qr-provider-tabs {
        justify-content: stretch;
    }

    .auth-page .auth-qr-provider-btn {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 88px;
    }

    .auth-page .auth-link-btn {
        padding-top: 10px;
    }
}

/* 2026-03-24 登录注册页改版 */
body.auth-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 24%),
        radial-gradient(circle at right bottom, rgba(225, 234, 252, 0.78), transparent 28%),
        linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
    color: #1f2937;
}

.auth-page .auth-stage {
    width: min(100%, 1120px);
    display: grid;
    gap: 18px;
}

.auth-page .auth-frame-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.auth-page .auth-brand-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 223, 236, 0.95);
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(55, 79, 121, 0.08);
}

.auth-page .auth-brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8);
    box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.12);
}

.auth-page .auth-board {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    min-height: 640px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(214, 222, 236, 0.96);
    background: #ffffff;
    box-shadow: 0 28px 56px rgba(49, 72, 115, 0.1);
}

.auth-page .auth-board.auth-board-no-qr {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin-inline: auto;
}

.auth-page .auth-side-panel,
.auth-page .auth-main-panel {
    min-width: 0;
}

.auth-page .auth-side-panel {
    display: grid;
    gap: 24px;
    padding: 42px 34px;
    border-right: 1px solid rgba(224, 230, 240, 0.96);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.auth-page .auth-side-panel-register {
    gap: 22px;
}

.auth-page .auth-main-panel {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 42px 52px;
    background: #ffffff;
}

.auth-page .auth-side-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e9f0ff;
    color: #2457d3;
    font-size: 13px;
    font-weight: 700;
}

.auth-page .auth-side-header {
    display: grid;
    gap: 12px;
}

.auth-page .auth-side-header h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.03em;
}

.auth-page .auth-side-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.auth-page .auth-inline-notice,
.auth-page .auth-banner {
    border-radius: 18px;
    border: 1px solid rgba(216, 223, 236, 0.95);
    background: #f9fbff;
    color: #42536a;
}

.auth-page .auth-inline-notice {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
}

.auth-page .auth-banner {
    padding: 16px 18px;
    gap: 16px;
}

.auth-page .auth-banner strong {
    color: #1f2937;
}

.auth-page .auth-side-block {
    display: grid;
    gap: 10px;
}

.auth-page .auth-qr-shell,
.auth-page .auth-form-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(221, 228, 240, 0.96);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(59, 80, 120, 0.06);
}

.auth-page .auth-side-caption {
    font-size: 14px;
    font-weight: 700;
    color: #2457d3;
}

.auth-page .auth-side-subcaption {
    font-size: 13px;
    line-height: 1.7;
    color: #718198;
}

.auth-page .auth-side-provider-note {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(224, 230, 240, 0.96);
    font-size: 13px;
    line-height: 1.7;
    color: #6a7b92;
}

.auth-page .auth-note-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #52657e;
    font-size: 14px;
    line-height: 1.75;
}

.auth-page .auth-main-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

.auth-page .auth-main-title {
    display: block;
    font-size: 32px;
    line-height: 1.15;
    color: #111827;
}

.auth-page .auth-main-copy {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: #6b7280;
}

.auth-page .auth-entry-link {
    color: #1f67ff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.auth-page .auth-entry-link:hover,
.auth-page .auth-actions-row a:hover,
.auth-page .auth-link-btn:hover {
    color: #1a56d6;
}

.auth-page .auth-form-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2457d3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-page .auth-tabbar-modern.auth-tabbar-inline {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(224, 230, 240, 0.96);
}

.auth-page .auth-tabbar-modern.auth-tabbar-inline .auth-tab-modern {
    padding: 0 0 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #475569;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    border-bottom: 2px solid transparent;
}

.auth-page .auth-tabbar-modern.auth-tabbar-inline .auth-tab-modern.is-active {
    color: #1f67ff;
    border-bottom-color: #1f67ff;
}

.auth-page .auth-form-modern.auth-form-compact {
    gap: 18px;
}

.auth-page .auth-field-modern {
    gap: 8px;
}

.auth-page .auth-field-modern span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.auth-page .auth-field-modern input {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d7deea;
    background: #fdfefe;
    font-size: 15px;
    color: #111827;
}

.auth-page .auth-field-modern input::placeholder {
    color: #94a3b8;
}

.auth-page .auth-field-modern input:focus {
    border-color: #2f6bff;
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.auth-page .auth-phone-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fdfefe;
    overflow: hidden;
}

.auth-page .auth-phone-row:focus-within {
    border-color: #2f6bff;
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

.auth-page .auth-country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 52px;
    border-right: 1px solid #d7deea;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    background: #f4f7fb;
}

.auth-page .auth-phone-row input {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-page .auth-phone-row input:focus {
    box-shadow: none;
}

.auth-page .auth-inline-row {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 10px;
}

.auth-page .auth-field-hint {
    margin: -4px 2px 0;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.auth-page .auth-check-modern {
    font-size: 14px;
    color: #4b5563;
}

.auth-page .auth-primary-btn,
.auth-page .auth-secondary-btn {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
}

.auth-page .auth-primary-btn {
    background: linear-gradient(135deg, #2f6bff, #1f56dd);
    box-shadow: 0 16px 30px rgba(39, 95, 218, 0.18);
}

.auth-page .auth-secondary-btn {
    border: 1px solid #d6e0ec;
    background: #f8fbff;
    color: #31506d;
}

.auth-page .auth-link-btn {
    color: #4b5563;
}

.auth-page .auth-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
}

.auth-page .auth-link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.auth-page .auth-actions-row a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

.auth-page .auth-qr-provider-tabs {
    justify-content: flex-start;
    margin-bottom: 0;
}

.auth-page .auth-qr-provider-btn {
    border-radius: 999px;
    padding: 8px 15px;
    background: #f7f9fc;
    border: 1px solid #d7deea;
    color: #475569;
    box-shadow: none;
}

.auth-page .auth-qr-provider-btn.is-active {
    background: #2f6bff;
    color: #fff;
    box-shadow: none;
}

.auth-page .auth-qr-panel.auth-qr-panel-side {
    justify-items: start;
    text-align: left;
    gap: 14px;
}

.auth-page .auth-qr-card {
    width: 240px;
    max-width: 100%;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid #dfe6f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.auth-page .auth-qr-image {
    width: 100%;
    max-width: 210px;
}

.auth-page .auth-qr-status {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.auth-page .auth-qr-actions {
    justify-content: flex-start;
}

.auth-page .auth-register-flow {
    display: grid;
    gap: 14px;
    padding: 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(221, 228, 240, 0.96);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(59, 80, 120, 0.06);
}

.auth-page .auth-flow-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.auth-page .auth-flow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #eef2f8;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.auth-page .auth-flow-step.is-active span {
    background: #e9f0ff;
    color: #2457d3;
}

.auth-page .auth-flow-step strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
}

.auth-page .auth-flow-step p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.auth-page .auth-board-register .auth-main-panel {
    padding-top: 42px;
}

body.auth-page.auth-embedded .auth-board {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 22px;
}

body.auth-page.auth-embedded .auth-side-panel {
    border-right: none;
    border-bottom: 1px solid rgba(207, 220, 237, 0.95);
}

body.auth-page.auth-embedded .auth-main-panel {
    padding: 24px 22px;
}

@media (max-width: 920px) {
    .auth-page .auth-board {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-page .auth-frame-head {
        justify-content: center;
    }

    .auth-page .auth-side-panel {
        border-right: none;
        border-bottom: 1px solid rgba(207, 220, 237, 0.95);
        padding: 32px 26px;
    }

    .auth-page .auth-main-panel {
        padding: 32px 26px;
    }

    .auth-page .auth-side-header h1 {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    body.auth-page {
        padding: 10px;
    }

    .auth-page .auth-board {
        border-radius: 22px;
    }

    .auth-page .auth-main-top,
    .auth-page .auth-actions-row,
    .auth-page .auth-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page .auth-tabbar-modern.auth-tabbar-inline {
        gap: 18px;
        overflow-x: auto;
    }

    .auth-page .auth-inline-row {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-qr-card {
        width: 100%;
    }

    .auth-page .auth-qr-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page .auth-link-group {
        gap: 12px;
    }

    .auth-page .auth-form-card,
    .auth-page .auth-qr-shell,
    .auth-page .auth-register-flow {
        padding: 20px 18px;
        border-radius: 20px;
    }
}

/* 2026-03-24 登录注册页简化为横向排版 */
body.auth-page {
    align-items: flex-start;
    padding: 60px 48px;
    background: #ecf4ff;
}

.auth-page .auth-stage {
    width: min(100%, 1080px);
    gap: 0;
}

.auth-page .auth-frame-head,
.auth-page .auth-side-pill,
.auth-page .auth-form-eyebrow,
.auth-page .auth-main-top {
    display: none !important;
}

.auth-page .auth-board {
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.auth-page .auth-board.auth-board-no-qr {
    max-width: 860px;
}

.auth-page .auth-board.auth-board-no-qr .auth-main-panel {
    padding-left: 0;
}

.auth-page .auth-side-panel {
    gap: 16px;
    padding: 0 36px 0 0;
    border-right: 1px solid #d4dfef;
    background: transparent;
}

.auth-page .auth-side-panel-register {
    gap: 14px;
}

.auth-page .auth-main-panel {
    gap: 22px;
    padding: 0 0 0 62px;
    background: transparent;
}

.auth-page .auth-side-header {
    gap: 0;
}

.auth-page .auth-side-header h1 {
    font-size: 50px;
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-page .auth-side-header p {
    display: none;
}

.auth-page .auth-inline-notice {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #6b7280;
}

.auth-page .auth-side-block-tight {
    gap: 6px;
}

.auth-page .auth-side-caption {
    font-size: 15px;
    font-weight: 500;
    color: #2f6bff;
}

.auth-page .auth-side-subcaption {
    font-size: 13px;
    line-height: 1.7;
    color: #7b8798;
}

.auth-page .auth-side-provider-note {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    font-size: 12px;
    color: #7b8798;
}

.auth-page .auth-qr-shell,
.auth-page .auth-form-card,
.auth-page .auth-register-flow {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-page .auth-qr-provider-tabs {
    justify-content: flex-start;
    gap: 0;
    margin: 0 0 12px;
}

.auth-page .auth-qr-provider-btn {
    padding: 0;
    margin-right: 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #7b8798;
    font-size: 14px;
    font-weight: 500;
}

.auth-page .auth-qr-provider-btn::after {
    content: "/";
    margin-left: 10px;
    color: #b4c0d1;
}

.auth-page .auth-qr-provider-btn:last-child::after {
    display: none;
}

.auth-page .auth-qr-provider-btn.is-active,
.auth-page .auth-qr-provider-btn:hover {
    background: transparent;
    color: #2f6bff;
    box-shadow: none;
}

.auth-page .auth-qr-panel.auth-qr-panel-side {
    justify-items: start;
    gap: 10px;
    text-align: left;
}

.auth-page .auth-qr-card {
    width: auto;
    max-width: none;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-page .auth-qr-image {
    max-width: 156px;
    padding: 6px;
    border: 1px solid #d4dfef;
    background: #ffffff;
}

.auth-page .auth-qr-status {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.auth-page .auth-qr-actions {
    justify-content: flex-start;
    gap: 14px;
}

.auth-page .auth-qr-actions .auth-secondary-btn,
.auth-page .auth-qr-actions .auth-link-btn {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #2f6bff;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
}

.auth-page .auth-login-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-top: 4px;
}

.auth-page .auth-register-title {
    font-size: 28px;
    line-height: 1.15;
    color: #111827;
    font-weight: 700;
}

.auth-page .auth-tabbar-modern.auth-tabbar-inline {
    gap: 28px;
    padding: 0;
    border-bottom: none;
}

.auth-page .auth-tabbar-modern.auth-tabbar-inline .auth-tab-modern {
    padding: 0 0 10px;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
}

.auth-page .auth-tabbar-modern.auth-tabbar-inline .auth-tab-modern.is-active {
    color: #2f6bff;
    border-bottom-color: #2f6bff;
}

.auth-page .auth-entry-link {
    padding-top: 2px;
    font-size: 15px;
}

.auth-page .auth-banner {
    padding: 12px 14px;
    border: 1px solid #d4dfef;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.82);
}

.auth-page .auth-form-modern.auth-form-compact {
    max-width: 560px;
    gap: 16px;
}

.auth-page .auth-field-modern.auth-field-inline {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 56px;
    border: 1px solid #ccd8e8;
    border-radius: 0;
    background: #ffffff;
}

.auth-page .auth-field-modern.auth-field-inline:focus-within {
    border-color: #2f6bff;
    box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.16);
}

.auth-page .auth-field-modern.auth-field-inline > span {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-right: 1px solid #e2e8f0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

.auth-page .auth-field-modern.auth-field-inline > input,
.auth-page .auth-field-modern.auth-field-inline > .auth-phone-row,
.auth-page .auth-field-modern.auth-field-inline > .auth-inline-row {
    min-width: 0;
}

.auth-page .auth-field-modern.auth-field-inline input {
    height: 54px;
    padding: 0 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
}

.auth-page .auth-field-modern.auth-field-inline input::placeholder {
    color: #9aa6b6;
}

.auth-page .auth-field-modern.auth-field-inline input:focus {
    box-shadow: none;
}

.auth-page .auth-phone-row {
    height: 54px;
    border: none;
    border-radius: 0;
    background: transparent;
    grid-template-columns: 64px minmax(0, 1fr);
}

.auth-page .auth-country-code {
    min-height: 54px;
    border-right: 1px solid #e2e8f0;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.auth-page .auth-phone-row input {
    padding: 0 16px;
}

.auth-page .auth-inline-row {
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 0;
    align-items: stretch;
}

.auth-page .auth-inline-row input {
    border-right: 1px solid #e2e8f0;
}

.auth-page .auth-inline-btn {
    padding: 0 14px;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #2f6bff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
}

.auth-page .auth-field-hint {
    margin: -2px 0 4px;
    font-size: 12px;
    line-height: 1.6;
    color: #7b8798;
}

.auth-page .auth-check-modern {
    gap: 8px;
    font-size: 13px;
    color: #5b6675;
}

.auth-page .auth-check-modern input {
    margin-top: 3px;
}

.auth-page .auth-primary-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 0;
    background: #2f6bff;
    box-shadow: none;
    font-size: 14px;
}

.auth-page .auth-primary-btn:hover,
.auth-page .auth-secondary-btn:hover,
.auth-page .auth-link-btn:hover,
.auth-page .auth-tab-modern:hover {
    transform: none;
    box-shadow: none;
}

.auth-page .auth-full-btn {
    width: 100%;
    max-width: 560px;
}

.auth-page .auth-actions-row {
    max-width: 560px;
    padding-top: 6px;
}

.auth-page .auth-link-group {
    gap: 24px;
}

.auth-page .auth-actions-row a,
.auth-page .auth-link-btn {
    font-size: 14px;
    color: #1f2937;
}

.auth-page .auth-link-btn-button {
    padding: 0;
}

body.auth-page.auth-embedded {
    padding: 10px 0 0;
    background: #ffffff;
}

body.auth-page.auth-embedded .auth-board {
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 0;
}

body.auth-page.auth-embedded .auth-side-panel {
    gap: 10px;
    padding: 0 20px 0 0;
    border-right: 1px solid #d4dfef;
    border-bottom: none;
}

body.auth-page.auth-embedded .auth-main-panel {
    gap: 12px;
    padding: 0 0 0 22px;
}

body.auth-page.auth-embedded .auth-side-header h1 {
    font-size: 30px;
}

body.auth-page.auth-embedded .auth-side-block-tight {
    display: none;
}

body.auth-page.auth-embedded .auth-side-provider-note {
    display: none;
}

body.auth-page.auth-embedded .auth-qr-image {
    max-width: 120px;
}

body.auth-page.auth-embedded .auth-qr-provider-tabs {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0;
    overflow: hidden;
    margin: 0 0 8px;
}

body.auth-page.auth-embedded .auth-qr-provider-btn {
    flex: 0 0 auto;
    margin-right: 6px;
    font-size: 11px;
}

body.auth-page.auth-embedded .auth-qr-provider-btn::after {
    margin-left: 6px;
}

body.auth-page.auth-embedded .auth-qr-panel.auth-qr-panel-side {
    gap: 8px;
}

body.auth-page.auth-embedded .auth-qr-status {
    font-size: 12px;
    line-height: 1.45;
}

body.auth-page.auth-embedded .auth-qr-actions {
    gap: 10px;
}

body.auth-page.auth-embedded .auth-qr-actions .auth-link-btn,
body.auth-page.auth-embedded .auth-qr-actions .auth-secondary-btn {
    font-size: 11px;
}

body.auth-page.auth-embedded .auth-login-head {
    align-items: center;
    padding-top: 0;
}

body.auth-page.auth-embedded .auth-tabbar-modern.auth-tabbar-inline {
    gap: 20px;
}

body.auth-page.auth-embedded .auth-tabbar-modern.auth-tabbar-inline .auth-tab-modern {
    font-size: 14px;
    padding-bottom: 8px;
}

body.auth-page.auth-embedded .auth-entry-link {
    font-size: 14px;
}

body.auth-page.auth-embedded .auth-form-modern.auth-form-compact,
body.auth-page.auth-embedded .auth-full-btn,
body.auth-page.auth-embedded .auth-actions-row {
    max-width: 100%;
}

body.auth-page.auth-embedded .auth-field-modern.auth-field-inline {
    min-height: 44px;
}

body.auth-page.auth-embedded .auth-field-modern.auth-field-inline input,
body.auth-page.auth-embedded .auth-phone-row,
body.auth-page.auth-embedded .auth-country-code {
    height: 42px;
    min-height: 42px;
}

body.auth-page.auth-embedded .auth-inline-row {
    grid-template-columns: minmax(0, 1fr) 118px;
}

body.auth-page.auth-embedded .auth-primary-btn {
    height: 36px;
}

body.auth-page.auth-embedded .auth-actions-row a,
body.auth-page.auth-embedded .auth-link-btn {
    font-size: 13px;
}

body.auth-page.auth-embedded .auth-side-subcaption,
body.auth-page.auth-embedded .auth-field-hint {
    font-size: 11px;
}

body.auth-page.auth-embedded .auth-side-panel-register .auth-side-provider-note {
    display: none;
}

body.auth-page.auth-embedded .auth-inline-notice {
    display: none !important;
}

body.auth-page.auth-embedded .auth-login-head.auth-register-head {
    justify-content: flex-end;
}

body.auth-page.auth-embedded .auth-actions-row {
    padding-top: 2px;
}

body.auth-page.auth-embedded .feedback-widget-toggle,
body.auth-page .feedback-widget-toggle {
    display: none !important;
}

@media (max-width: 920px) {
    body.auth-page {
        padding: 36px 24px;
    }

    .auth-page .auth-board {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-page .auth-side-panel {
        padding: 0 0 24px;
        border-right: none;
        border-bottom: 1px solid #d4dfef;
    }

    .auth-page .auth-main-panel {
        padding: 0;
    }

    body.auth-page.auth-embedded .auth-board {
        grid-template-columns: 184px minmax(0, 1fr);
        gap: 0;
    }

    body.auth-page.auth-embedded .auth-side-panel {
        padding: 0 20px 0 0;
        border-right: 1px solid #d4dfef;
        border-bottom: none;
    }

    body.auth-page.auth-embedded .auth-main-panel {
        padding: 0 0 0 22px;
    }
}

@media (max-width: 640px) {
    body.auth-page {
        padding: 24px 16px;
    }

    .auth-page .auth-side-header h1 {
        font-size: 40px;
    }

    .auth-page .auth-login-head,
    .auth-page .auth-actions-row,
    .auth-page .auth-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page .auth-tabbar-modern.auth-tabbar-inline {
        gap: 18px;
        overflow-x: auto;
    }

    .auth-page .auth-field-modern.auth-field-inline {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .auth-page .auth-inline-row {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-inline-row input {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .auth-page .auth-inline-btn {
        min-height: 46px;
        text-align: center;
    }

    body.auth-page.auth-embedded .auth-board {
        grid-template-columns: 1fr;
    }

    body.auth-page.auth-embedded .auth-side-panel {
        padding: 0 0 18px;
        border-right: none;
        border-bottom: 1px solid #d4dfef;
    }

    body.auth-page.auth-embedded .auth-main-panel {
        padding: 18px 0 0;
    }
}

/* Credential-only login and registration share one responsive composition. */
.auth-page .auth-board.auth-board-credentials {
    width: min(100%, 800px);
    margin-inline: auto;
    grid-template-columns: minmax(170px, 200px) minmax(320px, 1fr);
}

.auth-page .auth-board-credentials .auth-side-panel {
    padding-inline-end: 28px;
}

.auth-page .auth-board-credentials .auth-main-panel {
    padding-inline-start: 36px;
}

.auth-page .auth-board-credentials .auth-login-head {
    justify-content: flex-end;
}

body.auth-page.auth-embedded .auth-board.auth-board-credentials {
    grid-template-columns: minmax(150px, 180px) minmax(300px, 1fr);
}

@media (max-width: 680px) {
    .auth-page .auth-board.auth-board-credentials,
    body.auth-page.auth-embedded .auth-board.auth-board-credentials {
        grid-template-columns: 1fr;
    }

    .auth-page .auth-board-credentials .auth-side-panel,
    body.auth-page.auth-embedded .auth-board-credentials .auth-side-panel {
        padding: 0 0 18px;
        border-right: none;
        border-bottom: 1px solid #d4dfef;
    }

    .auth-page .auth-board-credentials .auth-main-panel,
    body.auth-page.auth-embedded .auth-board-credentials .auth-main-panel {
        padding: 18px 0 0;
    }
}
