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

/* 默认浅色主题 - 防止闪烁 */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    --border: #e5e5e5;
    --shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* 深色主题 */
html.dark-theme {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-light: rgba(99, 102, 241, 0.15);
    --border: #404040;
    --error: #ef4444;
    --success: #22c55e;
    --shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    background: var(--bg-primary);
}

/* 首页返回按钮 - 卡片内联版本 */
.auth-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 32px;
    gap: 16px;
}

.home-link-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
    border-radius: 8px;
}

.home-link-inline:hover {
    color: var(--accent);
    opacity: 1;
    background: var(--bg-tertiary);
}

.home-link-inline svg {
    width: 20px;
    height: 20px;
}

.auth-header-spacer {
    width: 40px;
    flex-shrink: 0;
}

/* 自定义 Tooltip */
.home-link-inline {
    position: relative;
}

.home-link-inline::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    padding: 6px 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    pointer-events: none;
    z-index: 1000;
}

.home-link-inline::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    pointer-events: none;
    z-index: 1000;
}

.home-link-inline:hover::after,
.home-link-inline:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* 占位元素，用于平衡布局 */
.auth-header-spacer {
    width: 36px;
    flex-shrink: 0;
}

/* 网站Logo链接 */
.auth-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.auth-logo-link:hover .auth-logo-text {
    color: var(--accent);
}

.auth-logo-link:hover .auth-logo-icon {
    transform: scale(1.05);
}

.auth-container {
    width: 100%;
    max-width: 380px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.auth-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.form-group {
    position: relative;
    margin-bottom: 0px !important;
    margin-top: 12px !important;
}

/* 表单内第一个 form-group 没有上边距 */
.auth-form > .form-group:first-child,
.auth-form > .auth-input-container:first-child .form-group:first-child {
    margin-top: 0 !important;
}

/* 输入框容器内的 form-group 没有上边距（由容器控制间距） */
.auth-input-container .form-group {
    margin-top: 0 !important;
}

/* 提交按钮的上边距 */
.auth-form > .btn-primary {
    margin-top: 16px !important;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    height: 36px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.code-input-group {
    display: flex;
    gap: 8px;
}

.code-input-group .form-input {
    flex: 1;
}

.captcha-img {
    width: 100px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border);
    object-fit: cover;
}

.captcha-img:hover {
    opacity: 0.9;
}

.btn-code {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    height: 36px;
    box-sizing: border-box;
}

.btn-code:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    height: 36px;
    box-sizing: border-box;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

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

.remember-me input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
}

.forgot-link,
.login-method-toggle {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.forgot-link:hover,
.login-method-toggle:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wechat:hover {
    border-color: #07c160;
    color: #07c160;
}

.btn-wechat svg {
    width: 18px;
    height: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

/* 找回密码模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 360px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: all 0.3s;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Toast提示框 - 现代化设计 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 成功提示 - 绿色主题 */
.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast.success::before {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
}

/* 图形验证码弹窗 - 标准设计 */
.captcha-box {
    width: 300px;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.captcha-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.captcha-box-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.captcha-box-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.captcha-box-close:hover {
    color: var(--text-primary);
}

.captcha-box-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.captcha-img-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-box-img {
    flex: 1;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border);
}

.captcha-refresh-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-refresh-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.captcha-refresh-btn svg {
    transition: transform 0.3s;
}

.captcha-refresh-btn:hover svg {
    transform: rotate(180deg);
}

.captcha-box-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.captcha-box-input:focus {
    border-color: var(--accent);
}

.captcha-box-input::placeholder {
    color: var(--text-tertiary);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: none;
}

.captcha-box-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.captcha-btn-cancel,
.captcha-btn-confirm {
    flex: 1;
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-btn-cancel {
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.captcha-btn-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.captcha-btn-confirm {
    border: none;
    background: var(--accent);
    color: #fff;
}

.captcha-btn-confirm:hover {
    opacity: 0.9;
}

/* 错误提示 - 红色主题 */
.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast.error::before {
    content: '✕';
    font-size: 16px;
    font-weight: bold;
}

/* 信息提示 - 蓝色主题 */
.toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast.info::before {
    content: 'ℹ';
    font-size: 16px;
    font-weight: bold;
}

/* 密码输入框容器 */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 40px;
}

/* 密码显示/隐藏按钮 */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    padding: 0;
}

.password-toggle-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* 默认显示eye-off-icon(闭着的眼睛)，隐藏eye-icon(睁开的眼睛) */
.password-toggle-btn .eye-icon {
    display: none;
}

/* 密码规则下拉菜单 */
.password-rules-dropdown,
.password-match-dropdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    animation: fadeIn 0.2s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 4px;
}

.password-rules-dropdown.show,
.password-match-dropdown.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.password-rule-item:first-child {
    padding-top: 0;
}

.password-rule-item:last-child {
    padding-bottom: 0;
}

/* 规则编号样式 */
.rule-number {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all 0.2s;
}

/* 默认状态 - 灰色文字 */
.password-rule-item .rule-text {
    color: var(--text-muted);
    transition: color 0.2s;
}

/* 有效状态 - 绿色 */
.password-rule-item.valid {
    color: #22c55e;
}

.password-rule-item.valid .rule-number {
    color: #fff;
    background: #22c55e;
}

.password-rule-item.valid .rule-text {
    color: #22c55e;
}

/* 无效状态 - 红色 */
.password-rule-item.invalid {
    color: #ef4444;
}

.password-rule-item.invalid .rule-number {
    color: #fff;
    background: #ef4444;
}

.password-rule-item.invalid .rule-text {
    color: #ef4444;
}

/* 深色主题适配 */
html.dark-theme .password-rules-dropdown,
html.dark-theme .password-match-dropdown {
    background: var(--bg-secondary);
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark-theme .password-rule-item .rule-number {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

html.dark-theme .password-rule-item.valid .rule-number {
    background: #22c55e;
    color: #fff;
}

html.dark-theme .password-rule-item.invalid .rule-number {
    background: #ef4444;
    color: #fff;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 24px 20px;
    }
}

/* ==================== 滑块验证码 ==================== */

.slider-captcha {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.slider-captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-captcha-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.slider-captcha-refresh {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.slider-captcha-refresh:hover {
    color: var(--primary);
}

.slider-captcha-refresh svg {
    width: 18px;
    height: 18px;
}

.slider-captcha-body {
    position: relative;
    margin-bottom: 12px;
}

.slider-captcha-image {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.slider-captcha-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-captcha-slider {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: cover;
}

.slider-captcha-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--text-secondary);
}

.slider-captcha-control {
    position: relative;
}

.slider-captcha-track {
    position: relative;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
}

.slider-captcha-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 20px;
    transition: background 0.2s;
}

.slider-captcha-progress.success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.slider-captcha-progress.fail {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.slider-captcha-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.slider-captcha-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.slider-captcha-btn.dragging {
    cursor: grabbing;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.slider-captcha-btn.verifying {
    cursor: wait;
}

.slider-captcha-btn.success {
    border-color: #22c55e;
    background: #22c55e;
    color: white;
}

.slider-captcha-btn.fail {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
}

.slider-captcha-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.slider-captcha-btn:hover svg,
.slider-captcha-btn.dragging svg {
    color: var(--primary);
}

.slider-captcha-btn.success svg,
.slider-captcha-btn.fail svg {
    color: white;
}

.slider-captcha-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.slider-captcha-result {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

.slider-captcha-result.success {
    color: #22c55e;
}

.slider-captcha-result.fail {
    color: #ef4444;
}

/* 深色主题适配 */
html.dark-theme .slider-captcha {
    background: var(--bg-secondary);
    border-color: var(--border);
}

html.dark-theme .slider-captcha-track {
    background: var(--bg-tertiary);
}

html.dark-theme .slider-captcha-btn {
    background: var(--bg-secondary);
    border-color: var(--border);
}

/* 弹窗中的滑块验证码 */
.modal-overlay .slider-captcha {
    margin: 0;
    border: none;
    background: transparent;
}

.modal-overlay .slider-captcha-image {
    background: var(--bg-tertiary);
}

/* ==================== 协议勾选框 ==================== */
.terms-agreement {
    margin: 0;
    margin-top: 20px !important;
}

.terms-agreement .checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.terms-agreement .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-agreement .terms-text {
    flex: 1;
    line-height: 16px;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 协议勾选框高亮动画 */
.terms-agreement.terms-highlight {
    animation: terms-pulse 2s ease-in-out;
}

@keyframes terms-pulse {
    0%, 100% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(99, 102, 241, 0.1);
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
        border-radius: 8px;
    }
}

/* 协议提示卡片 */
.terms-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    z-index: 100;
}

.terms-tooltip.show {
    display: block;
    animation: tooltip-bounce 0.3s ease;
}

@keyframes tooltip-bounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.terms-tooltip-content {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border: 1px solid #f59e0b;
}

.terms-tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #f59e0b;
}

.terms-text a {
    color: var(--accent);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.checkbox-label input[type="checkbox"]:not(:checked) + .terms-text {
    color: var(--text-muted);
}

/* 手机号输入框与国际区号选择器 */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.phone-input-wrapper .phone-input {
    flex: 1;
}

.country-code-selector {
    position: relative;
    flex-shrink: 0;
}

.country-code-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
    box-sizing: border-box;
}

.country-code-btn:hover {
    border-color: var(--accent);
}

.country-code-btn:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.country-flag {
    font-size: 18px;
    line-height: 1;
}

.country-code {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.country-code-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.country-code-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    max-height: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.country-code-selector.open .country-code-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-search {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.country-search input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.country-search input:focus {
    border-color: var(--accent);
}

.country-search input::placeholder {
    color: var(--text-muted);
}

.country-list {
    max-height: 240px;
    overflow-y: auto;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.country-item:hover {
    background: var(--bg-tertiary);
}

.country-item.selected {
    background: var(--accent-light);
}

.country-item-flag {
    font-size: 20px;
    line-height: 1;
}

.country-item-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.country-item-code {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .country-code-dropdown {
        min-width: 260px;
        left: -10px;
    }
    
    .country-code-btn {
        min-width: 80px;
        padding: 0 10px;
    }
}

/* ==================== 左右分栏布局 ==================== */
.auth-split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 左侧宣传区域 */
.auth-promo-section {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-promo-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 400px;
}

.promo-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.promo-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.promo-headline {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.promo-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.promo-feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}

.promo-feature-text p {
    font-size: 13px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* 背景装饰 */
.promo-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* 大背景圆圈 - 参考AI对话页面风格但不完全相同 */
.promo-bg-circle {
    position: absolute;
    border-radius: 50%;
    animation: promoCircleFloat 25s ease-in-out infinite;
}

/* 右上角大泡泡 - 白色光晕效果 */
.promo-bg-circle-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02));
    top: -120px;
    right: -80px;
    animation-delay: 0s;
}

/* 左下角大泡泡 - 白色光晕效果 */
.promo-bg-circle-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.02));
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

/* 左侧中间背景圆圈 */
.promo-bg-circle-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    top: 25%;
    right: 10%;
    animation-delay: -20s;
}

/* 碰撞容器 - 包含大泡泡和两个小碰撞泡泡 */
.promo-collision-container {
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: -40px;
    left: -40px;
    border-radius: 50%;
    overflow: hidden;
}

/* 碰撞小泡泡 */
.promo-collision-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.promo-collision-bubble-1 {
    width: 42px;
    height: 42px;
    animation: collisionMove1 8s ease-in-out infinite;
}

.promo-collision-bubble-2 {
    width: 42px;
    height: 42px;
    animation: collisionMove2 10s ease-in-out infinite;
}

/* 碰撞动画1 */
@keyframes collisionMove1 {
    0% {
        transform: translate(60px, 80px);
    }
    15% {
        transform: translate(120px, 100px);
    }
    30% {
        transform: translate(80px, 150px);
    }
    45% {
        transform: translate(150px, 130px);
    }
    60% {
        transform: translate(100px, 70px);
    }
    75% {
        transform: translate(160px, 90px);
    }
    90% {
        transform: translate(70px, 140px);
    }
    100% {
        transform: translate(60px, 80px);
    }
}

/* 碰撞动画2 */
@keyframes collisionMove2 {
    0% {
        transform: translate(140px, 160px);
    }
    20% {
        transform: translate(90px, 120px);
    }
    40% {
        transform: translate(160px, 80px);
    }
    60% {
        transform: translate(110px, 170px);
    }
    80% {
        transform: translate(180px, 130px);
    }
    100% {
        transform: translate(140px, 160px);
    }
}

/* 大圆圈漂浮动画 */
@keyframes promoCircleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(25px, -20px) scale(1.03);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, 15px) scale(0.97);
        opacity: 0.7;
    }
    75% {
        transform: translate(20px, 25px) scale(1.02);
        opacity: 0.65;
    }
}

/* 小气泡漂浮动画 */
@keyframes promoBubbleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.7;
    }
    20% {
        transform: translateY(-30px) translateX(10px) scale(1.1);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-50px) translateX(-8px) scale(0.9);
        opacity: 0.6;
    }
    60% {
        transform: translateY(-35px) translateX(5px) scale(1.05);
        opacity: 0.55;
    }
    80% {
        transform: translateY(-15px) translateX(-5px) scale(0.95);
        opacity: 0.65;
    }
}

/* 右侧内容区域 */
.auth-content-section {
    width: 480px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-content-wrapper {
    width: 100%;
    max-width: 380px;
    position: relative;
}


/* 响应式适配 */
@media (max-width: 1024px) {
    .auth-split-container {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }

    .auth-promo-section {
        display: none;
    }

    .auth-content-section {
        width: 100%;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .auth-content-section {
        padding: 24px 16px;
    }

    .auth-content-wrapper {
        max-width: 100%;
    }
}

/* 深色主题适配 */
html.dark-theme .auth-content-section {
    background: var(--bg-secondary);
}

html.dark-theme .promo-bg-circle {
    background: rgba(255, 255, 255, 0.05);
}

/* 表单容器适配 */
.auth-form {
    width: 100%;
}

/* 移除旧的 auth-container 样式引用，保留兼容性 */
.auth-container {
    width: 100%;
    max-width: 380px;
}

/* 新的 auth-header-top 位置调整 */
.auth-content-wrapper .auth-header-top {
    margin-bottom: 24px;
    justify-content: center;
}

.auth-content-wrapper .auth-title {
    text-align: center;
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 700;
}

.auth-content-wrapper .auth-footer {
    text-align: center;
}

