:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #282a36;
  --background-deep: #1f202b;
  --current-line: #44475a;
  --foreground: #f8f8f2;
  --comment: #6272a4;
  --cyan: #8be9fd;
  --blue: #6272a4;
  --pink: #ff79c6;
  --yellow: #f1fa8c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 16% 12%, rgb(139 233 253 / 18%), transparent 31%),
    radial-gradient(circle at 88% 88%, rgb(98 114 164 / 16%), transparent 34%),
    var(--background);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px 5px rgb(139 233 253 / 45%);
}

body::before {
  top: 18%;
  left: 12%;
}

body::after {
  right: 15%;
  bottom: 19%;
  background: var(--blue);
  box-shadow: 0 0 24px 5px rgb(98 114 164 / 45%);
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.login-card {
  width: min(100%, 432px);
  padding: 2.5rem;
  background: linear-gradient(145deg, rgb(68 71 90 / 88%), rgb(40 42 54 / 96%));
  border: 1px solid rgb(139 233 253 / 22%);
  border-radius: 1.5rem;
  box-shadow: 0 24px 70px rgb(15 16 24 / 46%), inset 0 1px rgb(248 248 242 / 7%);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 2rem;
  color: var(--background-deep);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgb(139 233 253 / 24%);
}

.login-heading {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.subtitle {
  margin: 0.75rem 0 0;
  color: var(--comment);
  font-size: 0.95rem;
}

.login-form {
  display: grid;
  gap: 0.7rem;
}

.login-form label {
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 650;
}

a {
  color: var(--cyan);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--pink);
  text-decoration: underline;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--foreground);
  font: inherit;
  background: rgb(31 32 43 / 72%);
  border: 1px solid var(--current-line);
  border-radius: 0.7rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: var(--comment);
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgb(139 233 253 / 18%);
}

.form-message {
  margin: 0.55rem 0 0.35rem;
  padding: 0.75rem 0.85rem;
  color: var(--yellow);
  font-size: 0.8rem;
  line-height: 1.45;
  background: rgb(241 250 140 / 8%);
  border: 1px solid rgb(241 250 140 / 25%);
  border-radius: 0.65rem;
}

button {
  padding: 0.95rem 1.1rem;
  color: var(--background-deep);
  font: inherit;
  font-weight: 750;
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  border: 0;
  border-radius: 0.7rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(139 233 253 / 20%);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button span {
  margin-left: 0.35rem;
  font-size: 1.1rem;
}

button:hover,
button:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgb(139 233 253 / 24%);
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  filter: saturate(0.65);
  opacity: 0.7;
  transform: none;
}

.secondary-button {
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgb(139 233 253 / 48%);
  box-shadow: none;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--background-deep);
  background: var(--cyan);
  box-shadow: 0 10px 24px rgb(139 233 253 / 20%);
}

.page-footer {
  position: absolute;
  bottom: 1.25rem;
  margin: 0;
  color: rgb(98 114 164 / 80%);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.35rem;
  }

  .page-footer {
    display: none;
  }
}
