:root {
  --indigo-900: #060b2e;
  --indigo-800: #0a1244;
  --cyan: #22d3ee;
  --amber: #ff7a1a;
  --violet: #8b5cf6;
  --text: #e8ecff;
  --muted: #9aa6d8;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% -10%, #16215e 0%, var(--indigo-800) 45%, var(--indigo-900) 100%);
  overflow: hidden;
}

/* soft moving glow behind the card */
.aurora {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(420px 420px at 30% 30%, rgba(34, 211, 238, 0.25), transparent 60%),
    radial-gradient(460px 460px at 70% 65%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(380px 380px at 55% 45%, rgba(255, 122, 26, 0.18), transparent 60%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.login-card {
  position: relative;
  width: min(380px, 100%);
  padding: 40px 32px 32px;
  text-align: center;
  border-radius: 24px;
  background: rgba(12, 20, 62, 0.55);
  border: 1px solid rgba(154, 166, 216, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(255, 122, 26, 0.9), rgba(255, 122, 26, 0.05) 62%);
  box-shadow: 0 0 40px rgba(255, 122, 26, 0.45), inset 0 0 0 1px rgba(34, 211, 238, 0.55);
  animation: breathe 3.4s ease-in-out infinite;
}

.mark span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffd7a8;
  box-shadow: 0 0 22px rgba(255, 190, 120, 0.95);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sub {
  margin: 6px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  background: rgba(6, 11, 46, 0.7);
  border: 1px solid rgba(154, 166, 216, 0.28);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

button[type="submit"] {
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #04122a;
  background: linear-gradient(135deg, var(--cyan), #7de3f5);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.32);
}

button[type="submit"]:disabled { opacity: 0.65; cursor: default; }

.error {
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  color: #ffd5d5;
  background: rgba(220, 60, 60, 0.16);
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .mark { animation: none; }
}
