/* ============================================================
   付费进群系统 v3.5 — 登录页 (Admin / Subsite / Agent)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4f6ef7 0%, #7c5cfc 40%, #a855f7 100%);
  color: #1e293b;
  padding: 20px;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.06) 0%, transparent 40%);
  animation: bgShift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgShift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 2%) rotate(3deg); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-container,
.login-box {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  animation: cardIn 0.5s ease;
}

.login-container h2,
.login-box h2 {
  text-align: center;
  margin-bottom: 28px;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-container h2::after,
.login-box h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #4f6ef7, #a855f7);
  border-radius: 2px;
  margin: 10px auto 0;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-size: 15px;
  color: #1e293b;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.login-container input:focus,
.login-box input:focus {
  border-color: #4f6ef7;
  box-shadow: 0 0 0 3px rgba(79,110,247,0.12);
}

.login-container input::placeholder,
.login-box input::placeholder {
  color: #94a3b8;
}

.login-container button,
.login-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4f6ef7, #7c5cfc);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(79,110,247,0.3);
  font-family: inherit;
}

.login-container button:hover,
.login-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,110,247,0.4);
}

.login-container button:active,
.login-box button:active {
  transform: scale(0.98);
}

.login-error,
.error {
  color: #ef4444;
  text-align: center;
  margin-bottom: 14px;
  font-size: 14px;
  padding: 10px;
  background: #fee2e2;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .login-container,
  .login-box {
    padding: 28px 20px;
  }
}
