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

:root {
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --accent-dark: #6d28d9;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --text-primary: #1e1b4b;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #6366f1 0%, #f59e0b 50%, #ef4444 100%);
  position: relative;
  overflow-x: hidden;
  padding: 20px;
}

/* Floating orbs */
.bg-shapes {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}
.bg-shape:nth-child(1) { width:600px; height:600px; top:-200px; left:-100px;  animation-delay:0s;    background:linear-gradient(135deg,#a78bfa,#818cf8); opacity:.3; }
.bg-shape:nth-child(2) { width:500px; height:500px; bottom:-150px; right:-100px; animation-delay:-7s;  animation-duration:25s; background:linear-gradient(135deg,#f472b6,#e879f9); opacity:.3; }
.bg-shape:nth-child(3) { width:400px; height:400px; top:50%; left:50%; transform:translate(-50%,-50%); animation-delay:-14s; animation-duration:22s; background:linear-gradient(135deg,#34d399,#6ee7b7); opacity:.2; }
.bg-shape:nth-child(4) { width:350px; height:350px; top:30%; right:-50px;  animation-delay:-10s; animation-duration:18s; background:linear-gradient(135deg,#fbbf24,#f59e0b); opacity:.25; }

@keyframes float {
  0%,100%{transform:translateY(0)rotate(0deg)scale(1)}
  25%{transform:translateY(-30px)rotate(5deg)scale(1.05)}
  50%{transform:translateY(20px)rotate(-3deg)scale(.95)}
  75%{transform:translateY(-15px)rotate(2deg)scale(1.02)}
}

/* Glass card */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.glass-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px 36px 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(255,255,255,.3) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Logo */
.logo-wrapper {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(124,58,237,.35);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse { 0%,100%{box-shadow:0 8px 32px rgba(124,58,237,.35)} 50%{box-shadow:0 12px 40px rgba(124,58,237,.5)} }
.logo-icon { width: 40px; height: 40px; fill: #fff; }

.title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-align: center;
}
.title-accent {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}
.subtitle .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent-light);
  border-radius: 50%;
  margin: 0 6px;
  vertical-align: middle;
  opacity: .6;
}

/* Warning badge */
.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 50px;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0%,100%{border-color:rgba(239,68,68,.2)} 50%{border-color:rgba(239,68,68,.4)} }
.warning-dot {
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: warnPulse 1.5s ease-in-out infinite;
}
@keyframes warnPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }
.warning-text { font-size: 14px; color: var(--danger); font-weight: 500; }

/* Input */
.input-section { width: 100%; }
.input-group {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  overflow: hidden;
}
.input-group input {
  flex: 1;
  border: none; outline: none;
  padding: 18px 22px;
  font-size: 18px;
  color: #333;
  background: transparent;
  font-family: inherit;
}
.input-group input::placeholder { color: #aab5a0; font-size: 17px; }
.btn-submit {
  padding: 18px 36px;
  background: #e74c3c;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-submit:hover { background: #d63031; }

/* Password guide button */
.password-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 16px rgba(245,158,11,.25);
  transition: all .2s;
}
.password-link:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 20px rgba(245,158,11,.4);
  transform: translateY(-1px);
}
.password-link svg { width: 16px; height: 16px; transition: transform .2s; }
.password-link:hover svg { transform: translateX(2px); }

/* Info text */
.info-section {
  text-align: center;
  font-size: 13px;
  color: var(--accent-light);
  line-height: 2;
}
.info-section .update-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(139,92,246,.1);
  border-radius: 50px;
  font-size: 12px;
  color: var(--accent-light);
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; }

/* Stats */
.stats-grid {
  display: flex;
  gap: 4px;
  width: 100%;
}
.stat-card {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  padding: 6px 4px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat-label { font-size: 9px; color: var(--text-secondary); margin-top: 1px; font-weight: 500; }
.stat-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 2px;
  vertical-align: middle;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.35s ease-in-out; }

/* Responsive */
@media (max-width: 480px) {
  .glass-card { padding: 32px 20px 28px; gap: 20px; border-radius: 24px; }
  .title { font-size: 24px; }
  .logo-wrapper { width: 56px; height: 56px; border-radius: 16px; }
  .logo-icon { width: 30px; height: 30px; }
  .input-group input { padding: 14px 16px; font-size: 16px; }
  .input-group input::placeholder { font-size: 15px; }
  .btn-submit { padding: 14px 20px; font-size: 16px; }
  .stats-grid { flex-wrap: wrap; }
  .stat-card { flex: 1 1 46%; }
  .stat-value { font-size: 13px; }
  .stat-label { font-size: 8px; }
}
