/* 登录注册页面样式 */
.auth-container {
    min-height: 100vh;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.auth-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right {
    flex: 1;
    background: linear-gradient(135deg, #3d3d3d 0%, #2a2a2a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: subtle-pulse 8s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 80px;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 30px;
    margin-top: 10px;
    text-align: center;
    letter-spacing: -0.5px;
}

.auth-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #3d3d3d;
    background: white;
    box-shadow: 0 0 0 4px rgba(61, 61, 61, 0.08);
}

.btn-auth {
    width: 100%;
    padding: 14px 18px;
    background: #3d3d3d;
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    display: block;
    letter-spacing: -0.022em;
}

.btn-auth:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-links a {
    color: #3d3d3d;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.wechat-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -0.5px;
}

.wechat-qrcode {
    width: 220px;
    height: 220px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wechat-qrcode:hover {
    transform: scale(1.02);
}

.wechat-qrcode::before {
    content: "微信扫码";
    font-size: 16px;
    color: #3d3d3d;
    font-weight: 600;
}

.wechat-tip {
    font-size: 14px;
    text-align: center;
    opacity: 0.85;
    line-height: 1.6;
}

/* 响应式设计 - 已迁移至 responsive.css */

.error-message {
    color: #dc3545;
    font-size: 12px;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    background: white;
    padding: 0 5px;
    z-index: 1;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
}

/* 输入框容器需要相对定位 */
.input-wrapper {
    position: relative;
}

/* 为输入框组添加过渡动画 */
#phone-group,
#email-group {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 注册方式切换标签 */
.register-type-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 0;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    cursor: pointer;
    color: #86868b;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-item:hover {
    color: #3d3d3d;
    background: rgba(61, 61, 61, 0.03);
}

.tab-item.active {
    color: #1d1d1f;
    border-bottom-color: #3d3d3d;
    font-weight: 600;
}

/* 验证码输入组 */
.verification-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.verification-group .form-control {
    flex: 1;
}

.btn-verification {
    padding: 14px 24px;
    background: #3d3d3d;
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 120px;
    box-sizing: border-box;
    letter-spacing: -0.022em;
}

.btn-verification:hover:not(:disabled) {
    background: #1a1a1a;
    transform: scale(1.02);
}

.btn-verification:disabled {
    background: #d1d1d6;
    color: #86868b;
    cursor: not-allowed;
    transform: scale(1);
}

/* 密码输入组（带眼睛图标） */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #86868b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.password-toggle:hover {
    color: #3d3d3d;
    transform: translateY(-50%) scale(1.1);
}

.eye-icon {
    fill: currentColor;
}

/* 密码提示文字 */
.password-hint {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #86868b;
    pointer-events: none;
    background: white;
    padding: 0 5px;
    z-index: 1;
}

.password-hint.error {
    color: #ff3b30;
}

.password-hint.hidden {
    display: none;
}

/* 同意条款复选框 */
.agree-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    transition: color 0.3s ease;
}

.agree-checkbox:hover {
    color: #3d3d3d;
}

.agree-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.agree-checkbox a {
    color: #3d3d3d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agree-checkbox a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* 警告提示框 */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c41e3a;
    border: 1px solid #ffd4d4;
}

/* ==================== 深色模式适配 ==================== */

/* 容器背景 */
body.dark-mode .auth-container {
    background: #1a1a1a;
}

body.dark-mode .auth-card {
    background: #2a2a2a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .auth-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

body.dark-mode .auth-left {
    background: #2a2a2a;
}

/* 标题和文字 */
body.dark-mode .auth-title {
    color: #e0e0e0;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

/* 表单控件 */
body.dark-mode .form-control {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus {
    background: #3a3a3a;
    border-color: #666;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

body.dark-mode .form-control::placeholder {
    color: #777;
}

/* 链接 */
body.dark-mode .auth-links a {
    color: #87CEEB;
}

body.dark-mode .auth-links a:hover {
    color: #6BB6D6;
}

/* 标签切换 */
body.dark-mode .tab-item {
    color: #999;
}

body.dark-mode .tab-item:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .tab-item.active {
    color: #e0e0e0;
    border-bottom-color: #87CEEB;
}

/* 验证码按钮禁用状态 */
body.dark-mode .btn-verification:disabled {
    background: #444;
    color: #666;
}

/* 密码提示 */
body.dark-mode .password-hint {
    color: #999;
    background: #2a2a2a;
}

body.dark-mode .password-toggle {
    color: #999;
}

body.dark-mode .password-toggle:hover {
    color: #e0e0e0;
}

/* 错误消息 */
body.dark-mode .error-message {
    background: #2a2a2a;
}

/* 同意条款 */
body.dark-mode .agree-checkbox {
    color: #e0e0e0;
}

body.dark-mode .agree-checkbox a {
    color: #87CEEB;
}

dark-mode .agree-checkbox a:hover {
    color: #6BB6D6;
}

/* 警告提示框 */
body.dark-mode .alert-danger {
    background-color: #3a2020;
    color: #ff6b6b;
    border-color: #5a3030;
}