/* 认证页面样式 */
body {
    background-color: #f5faf5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.auth-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

/* 头部 */
.auth-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.auth-header .logo {
    display: inline-block;
    text-decoration: none;
}

.auth-header h2 {
    font-size: 1.4rem;
    color: #333;
}

/* 内容区 */
.auth-content {
    padding: 30px;
}

/* 标签切换 */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: color 0.3s;
    position: relative;
}

.tab.active {
    color: #4caf50;
}

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

/* 表单 */
.form {
    display: none;
}

.form.active {
    display: block;
}

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

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

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #4caf50;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    color: #4caf50;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #388e3c;
}

/* 社交登录 */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p:before,
.social-login p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: #ddd;
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-button.wechat {
    background-color: #07C160;
}

.social-button.qq {
    background-color: #12B7F5;
}

.social-button.weibo {
    background-color: #E6162D;
}

/* 隐私政策 */
.privacy-policy {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.privacy-policy input {
    margin-right: 10px;
    margin-top: 5px;
}

.privacy-policy label {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.policy-link {
    color: #4caf50;
}

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

/* 页脚 */
.auth-footer {
    background-color: #f9f9f9;
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4caf50;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .auth-content {
        padding: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
} 