*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: #07080b;
  color: #eef1f6;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(43, 92, 255, .28) 0%, rgba(43, 92, 255, 0) 45%),
    radial-gradient(circle at 82% 10%, rgba(255, 45, 135, .2) 0%, rgba(255, 45, 135, 0) 42%);
  filter: blur(20px);
}

.box {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 2rem 1.6rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.kicker {
  margin: 0 0 .8rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #59616f;
}

h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 4%, #eef3fd 46%, #c2cde0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}

.hint {
  margin: .7rem 0 1.5rem;
  font-size: .85rem;
  color: #8a93a3;
}

.field {
  display: block;
  margin-bottom: .9rem;
}

.field span {
  display: block;
  margin-bottom: .4rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #59616f;
}

input[type="password"] {
  width: 100%;
  padding: .85rem .9rem;
  font-size: 1rem;
  font-family: inherit;
  color: #eef1f6;
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input[type="password"]:focus {
  border-color: rgba(255, 45, 85, .55);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .12);
}

button {
  width: 100%;
  margin-top: .35rem;
  padding: .9rem 1rem;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #ff3a5f, #e01e46);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: filter .18s ease, transform .12s ease;
}

button:hover { filter: brightness(1.07); }
button:active { transform: scale(.99); }

.error {
  display: none;
  margin: .9rem 0 0;
  font-size: .8rem;
  color: #ff8095;
}

.error.show { display: block; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; }
}
