/* ==================== 表单样式 ==================== */

/* 登录/注册表单 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    color: #0d1217;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 24px;
}

.auth-card .form-group input {
    padding: 14px 16px;
}

.auth-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
}

/* 比赛创建表单 */
.match-form-section {
    background: #1a252f;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #34495e;
}

.match-form-section h3 {
    color: #e74c3c;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #34495e;
}

/* 复选框样式 */
.form-group label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.form-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Select 下拉框 */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23bdc3c7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* 文本域 */
.form-group textarea {
    font-family: inherit;
}

/* 表单验证状态 */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #27ae60;
}

/* 加载状态 */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式表单 */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px;
    }
    
    .auth-card h1 {
        font-size: 24px;
    }
    
    .match-form-section {
        padding: 16px;
    }
}
