:root {
  --bg: #080808;
  --surface: #111111;
  --border: #1a1a1a;
  --accent: #b3e837;
  --danger: #CC0000;
  --text: #f5f5f5;
  --muted: #888888;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(179, 232, 55, 0.055), transparent 340px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.auth-panel {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(179, 232, 55, 0.045), transparent 30%),
    #0d0d0d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 26px;
  text-align: center;
}

.auth-brand img {
  width: min(286px, 78vw);
  height: auto;
  display: block;
}

.auth-brand span,
.auth-kicker,
.auth-meta,
.auth-status,
.field label {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.auth-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.auth-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: #090909;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 232, 55, 0.08);
}

.field input::placeholder {
  color: #5f5f5f;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #050505;
  font-size: 14px;
  font-weight: 800;
  transition: opacity 160ms ease, transform 160ms ease;
}

.auth-button:hover {
  opacity: 0.9;
}

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

.auth-button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  margin-top: 18px;
}

.auth-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:hover {
  color: var(--text);
}

.auth-status {
  display: none;
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.auth-status.is-visible {
  display: block;
}

.auth-status.is-error {
  border: 1px solid rgba(204, 0, 0, 0.26);
  background: rgba(204, 0, 0, 0.08);
  color: #ff6b6b;
}

.auth-status.is-success {
  border: 1px solid rgba(179, 232, 55, 0.25);
  background: rgba(179, 232, 55, 0.08);
  color: var(--accent);
}

.auth-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: #666;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-shell {
    align-items: start;
    padding: 18px 14px;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-panel h1 {
    font-size: 22px;
  }
}
