/* ========================================
   登录/注册页面 - 现代化重新设计
   温暖配色，简洁卡片式布局
   ======================================== */

/* ===== 1. 全局覆盖 ===== */
.login-page {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 50%, #FFDAB9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 移除旧背景装饰 */
.background-decoration {
    display: none !important;
}

/* ===== 2. 主容器重新设计 ===== */
.login-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
}

/* ===== 3. 左侧品牌区域 - 现代化 ===== */
.brand-section {
    background: transparent !important;
    padding: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-content {
    max-width: 500px;
}

.logo-section {
    margin-bottom: 40px;
}

.brand-logo {
    width: 180px;
    height: auto;
}

.brand-slogan {
    margin-bottom: 50px;
}

.brand-slogan h2 {
    font-size: 36px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #FF6347 0%, #FF8C69 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.brand-slogan p {
    font-size: 16px !important;
    color: #8B4513 !important;
    line-height: 1.6 !important;
}

/* 特性卡片 */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.7);
    border-color: #FFB800;
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.feature-icon i {
    font-size: 24px;
    color: #fff;
}

.feature-text h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #8B4513 !important;
    margin: 0 0 4px 0 !important;
}

.feature-text p {
    font-size: 14px !important;
    color: #A0522D !important;
    margin: 0 !important;
}

/* ===== 4. 右侧表单区域 - 卡片化 ===== */
.form-section {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    padding: 48px !important;
    position: relative;
}

/* 返回首页按钮 */
.back-to-home {
    position: absolute;
    top: 20px;
    right: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #FFF8DC;
    border-color: #FFB800;
    color: #FF6347;
}

/* 标签切换 */
.form-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #FF6347 0%, #FF8C69 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 99, 71, 0.1);
    color: #FF6347;
}

/* 表单头部 */
.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #333 !important;
    margin: 0 0 8px 0 !important;
}

.form-header p {
    font-size: 14px !important;
    color: #999 !important;
    margin: 0 !important;
}

/* 输入框组 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.optional-text {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #FFB800;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #FF6347;
}

/* 验证码输入框 */
.verification-wrapper input {
    padding-right: 130px;
}

.send-code-btn {
    position: absolute;
    right: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.send-code-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.send-code-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* 输入提示 */
.input-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.input-hint i {
    font-size: 12px;
    color: #FFB800;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: #f8f9fa;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFB800;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
}

.checkbox-label {
    font-size: 14px;
    color: #666;
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6347 0%, #FF8C69 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.auth-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.auth-submit-btn:hover {
    box-shadow: 0 8px 24px rgba(255, 99, 71, 0.4);
    transform: translateY(-2px);
}

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

.btn-text {
    position: relative;
    z-index: 1;
}

/* 加载动画 */
.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 协议同意 */
.agreement-wrapper {
    margin: 20px 0;
}

.agreement-wrapper .checkbox-wrapper {
    align-items: flex-start;
}

.agreement-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.agreement-text a {
    color: #FF6347;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-text a:hover {
    color: #FF8C69;
    text-decoration: underline;
}

/* ===== 5. 响应式设计 ===== */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .brand-section {
        display: none;
    }
    
    .form-section {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 32px 24px !important;
        border-radius: 20px !important;
    }
    
    .form-header h3 {
        font-size: 24px !important;
    }
    
    .brand-slogan h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }
    
    .form-section {
        padding: 24px 20px !important;
    }
    
    .form-tabs {
        gap: 8px;
        padding: 4px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .send-code-btn {
        position: relative;
        width: 100%;
        right: 0;
        margin-top: 8px;
    }
    
    .verification-wrapper {
        flex-direction: column;
    }
    
    .verification-wrapper input {
        padding-right: 48px;
    }
}

