/* 登录页 */
body {
    background: linear-gradient(160deg, #EFF6FF 0%, #F1F5F9 40%, #DBEAFE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-box {
    max-width: 420px;
    width: 100%;
    padding: 48px 36px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.login-school-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.login-school-names { flex: 1; }

.login-school-cn {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
}

.login-school-en {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.login-divider {
    height: 1px;
    background: #F3F4F6;
    margin-bottom: 20px;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 36px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg-input);
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    background: #fff;
    outline: none;
}

#loginForm button {
    margin-top: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

#loginForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.45);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-light);
}

.register-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
}

/* 审核弹窗 */
.status-modal {
    position: fixed; inset: 0;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.status-modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    max-width: 380px; width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.status-modal-icon { font-size: 56px; margin-bottom: 16px; }
.status-modal-title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.status-modal-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* 注册页 */
.register-box {
    max-width: 480px; width: 100%;
    padding: 44px 36px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}
.register-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.register-school-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 28px; padding-bottom: 18px;
    border-bottom: 1px solid #F3F4F6;
}
.register-school-cn { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.register-school-en { font-size: 9px; color: var(--text-light); margin-top: 2px; }

.register-step { display: none; }
.register-step.active { display: block; animation: stepIn 0.3s ease; }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-indicator { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5E7EB; transition: all 0.3s; }
.step-dot.active { background: var(--primary); width: 28px; border-radius: 4px; }
.step-dot.done { background: var(--success-color); }

.step-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-light); margin-bottom: 28px; }

.multi-select-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.multi-select-tag {
    padding: 10px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-full);
    font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    color: var(--text-medium);
}
.multi-select-tag:hover { border-color: var(--primary); color: var(--primary); }
.multi-select-tag.selected {
    background: var(--primary-gradient); color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}

.head-teacher-toggle {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; background: var(--bg-input);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-md);
    cursor: pointer; transition: all 0.2s; margin-top: 12px;
}
.head-teacher-toggle.selected { border-color: var(--primary); background: rgba(37, 99, 235, 0.03); }
.head-teacher-toggle-icon { font-size: 30px; }
.head-teacher-toggle-info { flex: 1; }
.head-teacher-toggle-title { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.head-teacher-toggle-desc { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.head-teacher-toggle-check { font-size: 24px; color: #D1D5DB; }
.head-teacher-toggle.selected .head-teacher-toggle-check { color: var(--primary); }
.head-class-section { margin-top: 14px; display: none; }
.head-class-section.show { display: block; animation: stepIn 0.3s ease; }

/* 管理员 */
.admin-header {
    background: var(--primary-gradient); color: #fff;
    padding: 22px 24px 34px;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 0 0 32px 32px;
}
.admin-header h2 { font-size: 18px; font-weight: 700; }
.admin-content { padding: 24px 20px; }

.admin-tabs {
    display: flex; gap: 4px;
    background: #fff; border-radius: var(--radius-md);
    padding: 5px; margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.admin-tab-btn {
    flex: 1; padding: 12px;
    background: transparent; border: none;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    cursor: pointer; color: var(--text-light);
    transition: all 0.2s;
}
.admin-tab-btn.active {
    background: var(--primary-gradient); color: #fff;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: stepIn 0.3s ease; }

.pending-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 14px;
    box-shadow: var(--shadow-card); transition: all 0.2s;
}
.pending-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pending-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pending-name { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.pending-status { padding: 5px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.pending-status.pending { background: rgba(245,158,11,0.1); color: var(--warning-color); }
.pending-status.approved { background: rgba(16,185,129,0.1); color: var(--success-color); }
.pending-status.rejected { background: rgba(239,68,68,0.1); color: var(--danger-color); }
.pending-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pending-info-item { font-size: 13px; color: var(--text-light); }
.pending-info-item strong { color: var(--text-dark); }
.pending-actions { display: flex; gap: 10px; }
.btn-approve {
    flex: 1; padding: 12px;
    background: var(--success-color); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-approve:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-reject {
    flex: 1; padding: 12px;
    background: var(--danger-color); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-reject:hover { opacity: 0.9; transform: translateY(-1px); }
.reject-reason-input {
    width: 100%; padding: 12px 14px;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-size: 13px; margin-top: 10px;
    display: none; font-family: inherit; resize: none;
}
.reject-reason-input.show { display: block; animation: stepIn 0.3s ease; }
