/* ==================== 认证页面样式 ==================== */
.auth-section {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.bg-shape:first-child {
    width: 500px;
    height: 500px;
    top: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite;
}

.bg-shape:last-child {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }
}

.auth-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    max-width: 1100px;
}

/* 认证卡片 */
.auth-card {
    flex: 1;
    max-width: 500px;
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon i {
    font-size: 40px;
    color: white;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-form .form-group label i {
    color: var(--primary-color);
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* 验证码输入框 */
.verify-code-input {
    display: flex;
    gap: 10px;
}

.verify-code-input input {
    flex: 1;
}

.verify-code-input .btn {
    white-space: nowrap;
    padding: 14px 20px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.auth-form .btn-block {
    margin-top: 10px;
}

/* 分割线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* 社交登录 */
.social-login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 20px;
}

.social-btn.qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

.social-btn.qq:hover {
    background: #12b7f5;
    color: white;
}

.social-btn.weixin {
    color: #07c160;
    border-color: #07c160;
}

.social-btn.weixin:hover {
    background: #07c160;
    color: white;
}

/* 页脚 */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* 右侧装饰 */
.auth-decoration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-content {
    color: white;
    text-align: center;
    padding: 40px;
}

.decoration-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.decoration-content > p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.features-list li i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .auth-decoration {
        display: none;
    }

    .auth-card {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .auth-section {
        padding: 40px 15px;
    }

    .auth-card {
        padding: 40px 25px;
    }

    .auth-icon {
        width: 70px;
        height: 70px;
    }

    .auth-icon i {
        font-size: 35px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .verify-code-input {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
