* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #090c11;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f5f7fa;
  background:
    radial-gradient(circle at 50% 0%, rgba(76, 128, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #0d1219 0%, #090c11 100%);
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.login-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(16, 22, 31, 0.94);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #76a0ff;
  box-shadow: 0 0 22px rgba(118, 160, 255, 0.75);
}

.login-copy {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #82a6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.intro {
  margin: 12px 0 0;
  color: #9ca8b7;
  font-size: 15px;
}

.login-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #cbd3dd;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #2a3442;
  border-radius: 13px;
  outline: none;
  color: #f7f9fb;
  background: #0c1118;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

input:focus {
  border-color: #7199f8;
  background: #0f151e;
  box-shadow: 0 0 0 3px rgba(113, 153, 248, 0.13);
}

.login-error {
  margin: -2px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 112, 112, 0.25);
  border-radius: 11px;
  color: #ffb1b1;
  background: rgba(121, 31, 31, 0.18);
  font-size: 13px;
}

button {
  position: relative;
  min-height: 50px;
  margin-top: 2px;
  border: 0;
  border-radius: 13px;
  color: #08101e;
  background: #86a9ff;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    opacity 120ms ease;
}

button:hover {
  filter: brightness(1.06);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-progress {
  display: none;
}

button[data-loading="true"] .button-label {
  display: none;
}

button[data-loading="true"] .button-progress {
  display: inline;
}

.session-note {
  margin: 24px 0 0;
  color: #6f7d8f;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .login-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .brand {
    margin-bottom: 34px;
  }
}
