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

/* 页面主体样式 */
main.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* 认证容器样式 */
.auth-container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 认证标签页样式 */
.auth-tabs {
    display: flex;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #757575;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #1B5E20;
}

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

/* 认证表单样式 */
.auth-form {
    padding: 30px;
}

.auth-title {
    font-size: 24px;
    color: #212121;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-subtitle {
    color: #757575;
    margin-bottom: 24px;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #212121;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
}

.forgot-password {
    color: #1B5E20;
    font-size: 14px;
}

/* 分隔线样式 */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #eee;
}

.divider span {
    background-color: white;
    padding: 0 16px;
    color: #757575;
    font-size: 14px;
    position: relative;
}

/* 社交登录样式 */
.social-login {
    display: flex;
    gap: 16px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: white;
    color: #212121;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: #f5f5f5;
}

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

/* 表单行样式 */
.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

/* 协议链接样式 */
.terms-link {
    color: #1B5E20;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .auth-form {
        padding: 24px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    main.container {
        padding: 20px 0;
    }
    
    .auth-form {
        padding: 20px 16px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .tab-btn {
        padding: 14px;
        font-size: 14px;
    }
}
