/* 登录注册页面样式 */

/* 认证页面容器 */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 600px;
}

/* 认证表单 */
.auth-form {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.auth-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 表单样式 */
.login-form,
.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.toggle-password:hover {
    background-color: #f5f5f5;
}

/* 验证码输入框 */
.verification-input {
    position: relative;
}

.verification-input input {
    padding-right: 120px;
}

.send-code-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-code-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.05);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
}

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

/* 认证按钮 */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 分割线 */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

/* 社交登录 */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.social-btn.qq:hover {
    border-color: #12B7F5;
    color: #12B7F5;
}

.social-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* 认证页脚 */
.auth-footer {
    text-align: center;
    margin-top: auto;
}

.auth-footer p {
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* 认证插图 */
.auth-illustration {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.illustration-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.illustration-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.features {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.feature-desc {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

.welcome-bonus {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.bonus-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.bonus-text {
    font-size: 1rem;
    opacity: 0.9;
}

.illustration-image {
    margin-top: 30px;
    text-align: center;
}

.illustration-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 错误提示 */
.field-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .auth-illustration {
        padding: 30px 20px;
        display: none; /* 移动端隐藏插图 */
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 10px;
    }
    
    .auth-form {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .feature-desc {
        margin-left: 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: fadeInUp 0.6s ease-out;
}

.auth-illustration {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feature {
    animation: fadeInUp 0.6s ease-out;
}

.feature:nth-child(1) { animation-delay: 0.3s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.5s; }
.feature:nth-child(4) { animation-delay: 0.6s; }