/* 导航栏下方的大背景图 */
.login-bg {
    position: absolute;
    top: 80px; /* 导航栏高度 */
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/登录与注册/登录2.jpg'); /* 大背景图片 */
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 1;
}

/* 登录容器 - 使用小背景图 */
.login-container {
    max-width: 500px;
    margin: 150px auto 50px; /* 与大背景图保持距离 */
    padding: 40px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.1);
    position: relative;
    z-index: 5;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 小背景图案 */
    /* background-image: url('../images/fengmian.jpg'); */
    background-size: 300px;
    opacity: 0.1;
    z-index: -1;
    border-radius: 10px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #DAA520;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #b0b0b0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #DAA520;
    border-bottom-color: #DAA520;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(50, 50, 50, 0.7);
    color: #e0e0e0;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #DAA520;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px; /* 添加间距 */
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(to right, #DAA520, #e6c200);
    color: #121212;
    width: 120px; /* 设置固定宽度 */
    flex-shrink: 0; /* 防止按钮缩小 */
}

.btn-primary:hover {
    background: linear-gradient(to right, #e6c200, #ccaa00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-link {
    background: transparent;
    color: #DAA520;
    text-decoration: underline;
    padding: 0;
    white-space: nowrap; /* 防止文字换行 */
    font-size: 14px; /* 稍微调小字号 */
}

.btn-link:hover {
    color: #DAA520;
}

.wechat-login {
    text-align: center;
    padding: 20px 0;
}

.wechat-login p {
    color: #b0b0b0;
    margin: 10px 0;
}

.wechat-qrcode {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: inline-block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .login-bg {
        height: 200px;
        top: 50px;
    }
    
    .login-container {
        margin: 120px auto 30px;
        padding: 30px 20px;
        width: 90%;
    }
    
    .login-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 10px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left-color: #DAA520;
    }
}

