/* 认证系统样式 */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: #2980b9;
}

.auth-links {
    margin-top: 15px;
    text-align: center;
}

.auth-links a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
}

.social-auth {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.divider {
    text-align: center;
    color: #7f8c8d;
    position: relative;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eee;
    margin: auto;
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.wechat {
    background: #09b83e;
    color: white;
}

.social-btn.github {
    background: #333;
    color: white;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.error {
    background: #fee;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}