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

/* 主内容区域 */
.auth-main-content {
    margin-top: 48px;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

/* 认证容器 */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* 左侧表单区域 */
.auth-form-container {
    flex: 1;
    padding: 50px;
    z-index: 2;
}

/* 标题 */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 15px;
    color: #86868b;
    text-align: center;
    margin-bottom: 40px;
}

/* 标签切换按钮 */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    outline: none;
}

.tab-button.active {
    color: #333333;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333333;
}

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

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    color: #515154;
}

.checkbox-group a {
    color: #007AFF;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background-color: #1d1d1f;
}

/* 第三方登录分隔线 */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #86868b;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* 第三方登录按钮组 */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: #f5f5f7;
    border-color: #c2c2c4;
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.github {
    color: #333333;
}

.social-btn.weixin {
    color: #07C160;
}

.social-icon {
    font-size: 18px;
}

/* 底部链接 */
.auth-footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer-links a {
    color: #007AFF;
    text-decoration: none;
}

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

.forgot-password {
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 右侧视觉区域 */
.auth-visual {
    flex: 1;
    min-height: 400px;
    background: linear-gradient(135deg, #333333 0%, #1d1d1f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-welcome-text {
    text-align: center;
    color: white;
    z-index: 2;
}

.auth-welcome-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.auth-welcome-text p {
    font-size: 16px;
    opacity: 0.9;
}

/* 浮动元素 */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s infinite ease-in-out;
}

.auth-element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.auth-element-2 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 25%;
    animation-delay: 1s;
}

.auth-element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -20px);
    }
    50% {
        transform: translate(-10px, 10px);
    }
    75% {
        transform: translate(15px, -10px);
    }
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-visual {
        min-height: 200px;
        padding: 20px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-main-content {
        padding: 10px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: 20px 15px;
    }
    
    .auth-welcome-text h2 {
        font-size: 22px;
    }
    
    .auth-welcome-text p {
        font-size: 14px;
    }
}