:root {
  --bg: #090c0a;
  --surface: #151c18;
  --line: rgba(225, 240, 230, 0.1);
  --line-strong: rgba(225, 240, 230, 0.18);
  --text: #f0f5f1;
  --muted: #94a39a;
  --faint: #66756d;
  --accent: #ccff4f;
  --accent-ink: #111700;
  --danger: #ff7568;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

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

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 55% 42% at 50% -8%, rgba(204, 255, 79, 0.1), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(110, 190, 150, 0.05), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  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: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black, transparent 75%);
  content: "";
  pointer-events: none;
}

.login-shell {
  width: min(100%, 420px);
}

.login-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(204, 255, 79, 0.05), transparent 70%),
    linear-gradient(160deg, rgba(23, 31, 26, 0.98), rgba(12, 17, 14, 0.99));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 38px;
}

.brand-mark {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 8px 7px;
  border-radius: 11px;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(204, 255, 79, 0.14);
}

.brand-mark span {
  width: 4px;
  border-radius: 2px;
  background: var(--accent-ink);
}

.brand-mark span:nth-child(1) {
  height: 42%;
}

.brand-mark span:nth-child(2) {
  height: 78%;
}

.brand-mark span:nth-child(3) {
  height: 56%;
}

.brand-mark span:nth-child(4) {
  height: 100%;
}

.brand-mark span:nth-child(5) {
  height: 31%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.login-lede {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92em;
}

.login-error {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 117, 104, 0.28);
  border-radius: 8px;
  background: rgba(255, 117, 104, 0.08);
  color: #ffb1a9;
  font-size: 12px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  margin-top: 26px;
  gap: 8px;
}

.login-form label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 255, 79, 0.1);
}

.login-form button {
  height: 42px;
  margin-top: 6px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 150ms ease;
}

.login-form button:hover {
  box-shadow: 0 0 0 4px rgba(204, 255, 79, 0.12);
  transform: translateY(-1px);
}

.login-form button:active {
  transform: translateY(0);
}

.login-note {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .login-brand {
    margin-bottom: 30px;
  }
}
