/* ===== 通用 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

/* ===== 登录/注册/忘记密码页 ===== */
.auth-page {
  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: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .logo-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
}
.auth-logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.auth-logo p {
  color: #888;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #667eea;
}

.input-row {
  display: flex;
  gap: 8px;
}
.input-row input { flex: 1; }

.btn-send {
  padding: 12px 14px;
  background: #e8eaff;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-send:hover { background: #d4d8f7; }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.forgot-link {
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  float: right;
}
.forgot-link:hover { text-decoration: underline; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #888;
}
.auth-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }
