/* 管理员登录页面样式 */
.admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-container {
  width: 100%;
  max-width: 400px;
}

.admin-login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  text-align: center;
  padding: 40px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.admin-logo {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  display: none;  /* 默认隐藏图片 */
  max-width: 100%;
  object-fit: contain;
}

.admin-logo-text {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-align: center;
  display: block !important;  /* 强制显示文字 */
}

/* 当图片隐藏时显示文字 */
.admin-logo:not([src]) + .admin-logo-text,
.admin-logo[style*="display: none"] + .admin-logo-text {
  display: block !important;
}

/* 当图片正常显示时隐藏文字 */
.admin-logo:not([style*="display: none"]) + .admin-logo-text {
  display: none !important;
}

.admin-header h1 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.admin-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.admin-form {
  padding: 40px 30px;
}

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

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-field input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.required {
  color: #e74c3c;
  margin-left: 4px;
}

.optional {
  color: #666;
  margin-left: 4px;
  font-weight: normal;
  font-size: 12px;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* 学校信息只读显示样式 */
.school-info-display {
  margin-bottom: 20px;
}

.school-info-box {
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.school-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.school-code {
  font-size: 12px;
  color: #666;
  font-family: monospace;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.login-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.back-btn {
  display: block;
  text-align: center;
  padding: 12px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #667eea;
}

.error-message {
  margin: 20px 30px;
  padding: 12px 16px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c33;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .admin-login-page {
    padding: 10px;
  }
  
  .admin-form {
    padding: 30px 20px;
  }
  
  .admin-header {
    padding: 30px 20px 20px;
  }
}