/* 导航栏下方的大背景图 */
.main-bg {
    position: absolute;
    top: 80px; /* 导航栏高度 */
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/登录与注册/注册.jpg'); /* 大背景图片 */
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 1;
}

/* 注册容器 - 使用小背景图 */
.register-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);
}

.register-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;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h2 {
    color: #DAA520;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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);
}

.sms-group {
    display: flex;
    gap: 10px;
}

.sms-group input {
    flex: 1;
}

.sms-group button {
    width: 120px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    color: #DAA520;
}

.sms-group button:hover {
    background: rgba(255, 215, 0, 0.2);
}

.sms-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 25px;
}

.btn {
    width: 100%;
    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;
}

.btn-primary:hover {
    background: linear-gradient(to right, #e6c200, #ccaa00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #b0b0b0;
}

.login-link a {
    color: #DAA520;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-bg {
        height: 200px;
        top: 50px;
    }
    
    .register-container {
        margin: 120px auto 30px;
        padding: 30px 20px;
        width: 90%;
    }
    
    .sms-group button {
        width: 100px;
        font-size: 14px;
    }
}