:root {
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.65);
  --accent-dim: rgba(125, 211, 252, 0.35);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #0a0e17;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(99, 102, 241, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(236, 72, 153, 0.12), transparent 45%),
    linear-gradient(165deg, #0a0e17 0%, #111827 40%, #0f172a 100%);
  background-attachment: fixed;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 2.25rem 2rem 2rem;
  border-radius: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px -12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.45;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field {
  margin-bottom: 1.1rem;
}

input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder {
  color: rgba(244, 247, 251, 0.35);
}

input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}

button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  color: #0a0e17;
  background: linear-gradient(135deg, #7dd3fc 0%, #a5b4fc 100%);
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.25);
  transition: transform 0.12s, filter 0.12s;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.hint {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.toast {
  display: none;
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid var(--accent-dim);
  color: var(--text);
}

.toast.visible {
  display: block;
}
