/* 二次元风格FRP面板 - 登录界面样式 v2.3 */
/* 更新记录：移除模糊效果、3D倾斜效果，优化移动端显示 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-pink: #f093fb;
    --accent-blue: #4facfe;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --border-color: #e1e8ed;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Safari优化 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background: #000000;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    /* Safari优化 */
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* 防止Safari地址栏影响高度 */
    height: 100vh;
}





/* 主容器 - 卡片式布局 */
.login-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 520px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 左侧插画区域 */
.login-illustration {
    flex: 1.2;
    background: #667eea;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



/* 中心角色插画容器 */
.character-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

/* 模拟二次元角色的CSS图形 */
.anime-character {
    width: 280px;
    height: 350px;
    margin: 0 auto 20px;
    position: relative;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

/* 角色头部 */
.character-head {
    width: 120px;
    height: 140px;
    background: linear-gradient(145deg, #ffd1dc, #ffb6c1);
    border-radius: 60px 60px 50px 50px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

/* 角色头发 */
.character-hair {
    width: 140px;
    height: 120px;
    background: linear-gradient(145deg, #e6e6fa, #d8bfd8);
    border-radius: 70px 70px 40px 40px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

/* 角色身体 */
.character-body {
    width: 100px;
    height: 150px;
    background: linear-gradient(145deg, #f0f8ff, #e6f3ff);
    border-radius: 50px 50px 25px 25px;
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 装饰性几何图形 */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transform: rotate(45deg);
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50% 0;
    bottom: 25%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8; 
    }
}

/* 角色问候语 */
.character-greeting {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5); }
}

.character-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 右侧登录表单区域 */
.login-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
    position: relative;
}

/* 品牌标题 */
.brand-title {
    text-align: center;
    margin-bottom: 40px;
}

.brand-title h1 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

/* 表单样式 */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
    font-family: var(--font-family);
    /* Safari优化 */
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: text;
    user-select: text;
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fafbfc;
}

.form-input:hover {
    border-color: var(--primary-color);
}

/* 验证码组 */
.captcha-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e6e6e6;
    transition: all 0.3s ease;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.captcha-img:hover {
    border-color: #5FB878;
    transform: scale(1.02);
}

.captcha-img[style*="opacity: 0.5"] {
    pointer-events: none;
}

.captcha-img[style*="border: 2px dashed"] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    color: #ff6b6b;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

.captcha-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    /* Safari优化 */
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* 按钮光效 */
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

/* 登录选项 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.register-link {
    color: #4facfe;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.register-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* 页脚链接 */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-light);
    font-size: 12px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;

}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    min-width: 300px;
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: slideInRight 0.3s ease-out;
}

.message-toast.success {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
}

.message-toast.error {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.message-toast.warning {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

.message-toast.info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        position: static;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        /* Safari移动端优化 */
        -webkit-overflow-scrolling: touch;
    }
    
    .login-wrapper {
        flex-direction: column;
        width: 95vw;
        max-width: 400px;
        max-height: none;
        min-height: auto;
        margin: 20px auto;
    }
    
    .login-illustration {
        display: none;
    }
    
    .geometric-shapes {
        display: none;
    }
    
    /* 移动端隐藏插画区域，无需设置相关样式 */
    
    .login-form-section {
        padding: 30px 20px;
        /* Safari优化 */
        -webkit-overflow-scrolling: touch;
    }
    
    .brand-title h1 {
        font-size: 24px;
    }
    
    .login-options {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    
    .footer-links {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 30px 20px;
    }
    
    .brand-title h1 {
        font-size: 20px;
    }
    
    .form-input, .login-btn {
        height: 44px;
    }
    
    /* 防止Safari自动放大 - 确保输入框字体至少16px */
    .form-input {
        font-size: 16px;
    }
    
    .captcha-group {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .captcha-input {
        flex: 1;
        min-width: 0; /* 确保输入框可以收缩 */
    }
    
    .captcha-img {
        width: 100px;
        height: 44px;
        flex-shrink: 0; /* 防止验证码图片被压缩 */
        border-radius: 6px;
    }
    
    .login-options {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        min-width: 80px;
        padding: 4px 8px;
    }
}

/* 高级动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-section > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.login-form-section > *:nth-child(1) { animation-delay: 0.1s; }
.login-form-section > *:nth-child(2) { animation-delay: 0.2s; }
.login-form-section > *:nth-child(3) { animation-delay: 0.3s; }
.login-form-section > *:nth-child(4) { animation-delay: 0.4s; }

/* 3D 效果已移除 */



/* Safari专用优化 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        body {
            /* Safari移动端高度适配 */
            min-height: -webkit-fill-available;
        }
        
        .login-wrapper {
            /* Safari移动端安全区域适配 */
            margin-top: max(20px, env(safe-area-inset-top));
            margin-bottom: max(20px, env(safe-area-inset-bottom));
        }
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #b0b3b8;
        --text-light: #8a8d91;
        --bg-white: #18191a;
        --bg-light: #242526;
        --border-color: #3a3b3c;
    }
    
    .login-wrapper {
        background: var(--bg-white);
        border: 1px solid var(--border-color);
    }
    
    .form-input {
        background: var(--bg-light);
        color: var(--text-primary);
    }
    
    .form-input:focus {
        background: var(--bg-white);
    }
    
    .captcha-img {
        border-color: var(--border-color);
    }
}

/* 超小屏幕优化 (小于360px) */
@media (max-width: 360px) {
    .captcha-group {
        gap: 6px;
    }
    
    .captcha-img {
        width: 85px;
        height: 40px;
    }
    
    .form-input, .login-btn {
        height: 40px;
        font-size: 16px;
    }
    
    .captcha-input {
        font-size: 16px;
    }
}

/* ================================================================ */
/* 注册页面特定样式 */
/* ================================================================ */

/* 注册页面布局 */
.register-page .login-wrapper {
    min-height: 600px;
}

.register-page .login-form-section {
    padding: 40px 50px;
}

.register-page .form-group {
    margin-bottom: 20px;
}

/* 表单提示样式 */
.form-tips {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    border-left: 3px solid rgba(102, 126, 234, 0.3);
}

/* 字段验证状态样式 */
.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.label-validation {
    font-size: 11px;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.label-validation.validating {
    color: #666;
    background: rgba(108, 117, 125, 0.15);
}

.label-validation.validating::before {
    content: '●';
    animation: pulse 1.5s infinite;
    color: #6c757d;
}

.label-validation.success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.15);
}

.label-validation.success::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
}

.label-validation.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

.label-validation.error::before {
    content: '✕';
    color: #dc3545;
    font-weight: bold;
}

/* 表单组验证状态 */
.form-group.field-validating .form-input {
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
}

.form-group.field-success .form-input {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.form-group.field-error .form-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 用户名和邮箱水平布局 */
.user-info-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.user-info-field {
    flex: 1;
    margin-bottom: 0;
}

/* 密码字段水平布局 */
.password-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.password-field {
    flex: 1;
    margin-bottom: 0;
}

.password-info {
    margin-bottom: 20px;
}

.password-info .form-tips {
    margin-bottom: 8px;
}

/* 邀请码输入框样式 */
.invite-code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
}

/* 验证码组样式 */
.verification-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.email-code-input {
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.send-code-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.captcha-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.captcha-img {
    flex-shrink: 0;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.4s ease;
    position: relative;
}

.password-strength-bar.weak {
    width: 33%;
    background: linear-gradient(90deg, #ff6b9d 0%, #ff8a80 100%);
}

.password-strength-bar.medium {
    width: 66%;
    background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
}

.password-strength-bar.strong {
    width: 100%;
    background: linear-gradient(90deg, #56ab2f 0%, #a8e6cf 100%);
}

.password-strength-text {
    font-size: 10px;
    margin-top: 4px;
    text-align: right;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-strength-text.weak { color: #ff6b9d; }
.password-strength-text.medium { color: #f7971e; }
.password-strength-text.strong { color: #56ab2f; }

/* 响应式设计 - 移动端优化水平布局 */
@media (max-width: 640px) {
    .user-info-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .user-info-field {
        flex: 1;
        margin-bottom: 0;
        min-width: 0;
    }
    
    .user-info-field .form-input {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .user-info-field .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .user-info-field .form-tips {
        font-size: 10px;
        padding: 3px 6px;
        margin-top: 3px;
    }
    
    .password-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .password-field {
        flex: 1;
        margin-bottom: 0;
        min-width: 0;
    }
    
    .password-field .form-input {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .password-field .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .user-info-group {
        gap: 8px;
    }
    
    .user-info-field .form-input {
        font-size: 16px;
        padding: 8px 10px;
        height: 40px;
    }
    
    .user-info-field .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .user-info-field .form-tips {
        font-size: 9px;
        padding: 2px 4px;
        margin-top: 2px;
        display: none;
    }
    
    .register-page .login-form-section {
        padding: 20px 15px;
    }
    
    .password-group {
        gap: 8px;
    }
    
    .password-field .form-input {
        font-size: 16px;
        padding: 8px 10px;
        height: 40px;
    }
    
    .password-field .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

/* Safari移动端防缩放优化 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .register-page .form-input {
        font-size: 16px !important;
        transform: scale(1);
        -webkit-transform: scale(1);
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .register-page .login-form-section {
        padding: 30px 30px;
    }
}

/* ================================================================ */
/* 找回密码页面特定样式 */
/* ================================================================ */

/* 发送验证码按钮样式 - 与登录页保持一致 */
.forgot-page .captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.forgot-page .captcha-input {
    flex: 1;
}

.forgot-page .send-code-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-page .send-code-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.forgot-page .send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-page .send-code-btn .btn-loading {
    display: none;
}

.forgot-page .send-code-btn.loading .btn-text {
    display: none;
}

.forgot-page .send-code-btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 密码输入组合 */
.forgot-page .password-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.forgot-page .password-input {
    flex: 1;
}

/* 找回密码页面布局调整 */
.forgot-page .login-wrapper {
    justify-content: center;
}

.forgot-page .login-form-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .forgot-page .captcha-group {
        flex-direction: row;
        gap: 8px;
        align-items: stretch;
    }
    
    .forgot-page .captcha-input {
        flex: 2;
        min-width: 0;
    }
    
    .forgot-page .send-code-btn {
        flex: 1;
        min-width: 80px;
        font-size: 12px;
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .forgot-page .password-group {
        flex-direction: row;
        gap: 8px;
    }
    
    .forgot-page .password-input {
        flex: 1;
    }
}

/* Safari浏览器优化 - 防止输入框聚焦时缩放 */
@supports (-webkit-touch-callout: none) {
    .forgot-page .form-input {
        font-size: 16px !important;
        transform: scale(1);
    }
}

/* iOS Safari特殊处理 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .forgot-page .form-input {
        font-size: 16px !important;
    }
}

/* 移动设备输入框优化 */
@media (max-width: 768px) {
    .forgot-page .form-input {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    .forgot-page .form-input:focus {
        transform: scale(1);
        zoom: 1;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .forgot-page .send-code-btn {
        font-size: 11px;
        padding: 8px 6px;
    }
    
    .forgot-page .password-group {
        gap: 6px;
    }
    
    .forgot-page .form-input {
        font-size: 16px !important;
    }
}

/* 极小屏幕 - 垂直布局 */
@media (max-width: 360px) {
    .forgot-page .password-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .forgot-page .captcha-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .forgot-page .send-code-btn {
        width: 100%;
        min-width: auto;
    }
}