:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(13, 18, 24, 0.84);
  --line: rgba(200, 230, 54, 0.22);
  --text: #f4f7f0;
  --muted: #aab5bd;
  --brand-lime: #c8e636;
  --brand-green: #6ee67a;
  --brand-lime-rgb: 200, 230, 54;
  --brand-green-rgb: 110, 230, 122;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--brand-lime-rgb), 0.13), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(var(--brand-green-rgb), 0.1), transparent 28%),
    linear-gradient(180deg, #0b1015 0%, #05070a 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
}

.auth-brand {
  position: fixed;
  top: 22px;
  left: 24px;
  display: inline-grid;
  grid-template-columns: 38px auto;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.auth-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 26px rgba(var(--brand-lime-rgb), 0.24);
}

.auth-brand > span {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.auth-brand > span span {
  color: var(--brand-lime);
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(var(--brand-lime-rgb), 0.07), rgba(var(--brand-green-rgb), 0.035)), var(--panel);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.auth-kicker {
  color: var(--brand-lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #dce6ec;
  font-size: 12px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(150, 169, 184, 0.28);
  border-radius: 6px;
  background: rgba(4, 8, 12, 0.72);
  color: var(--text);
  outline: 0;
}

.auth-form input:focus {
  border-color: rgba(var(--brand-lime-rgb), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--brand-lime-rgb), 0.1);
}

.auth-primary {
  min-height: 42px;
  margin-top: 4px;
  border: 1px solid rgba(var(--brand-lime-rgb), 0.74);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-lime), var(--brand-green));
  color: #161b10;
  cursor: pointer;
  font-weight: 900;
}

.auth-primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-message {
  min-height: 18px;
}

.auth-message.is-error {
  color: #ff9aa6;
}

.auth-message.is-success {
  color: #dfff9d;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch a,
.auth-links a {
  color: var(--brand-lime);
  font-weight: 850;
  text-decoration: none;
}

.auth-switch a:hover,
.auth-links a:hover {
  text-decoration: underline;
}

.auth-links {
  position: fixed;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .auth-shell {
    align-content: center;
    place-items: stretch;
    padding-top: 92px;
  }

  .auth-brand,
  .auth-links {
    position: absolute;
  }

  .auth-links {
    left: 24px;
    right: auto;
  }
}
