:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: rgba(23, 26, 29, 0.94);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f1e8;
  --muted: #a9aaa6;
  --accent: #f1a75b;
  --accent-bright: #ffc27d;
  --red: #ff938c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 30% -10%, #24201b 0, var(--bg) 45%);
  background-size: 44px 44px, 44px 44px, auto;
}

button,
input {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one {
  top: 1rem;
  right: -12rem;
  background: var(--accent);
}

.ambient-two {
  bottom: -15rem;
  left: -10rem;
  background: #6da9ff;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 2rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: var(--accent);
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) {
  height: 8px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
  height: 15px;
}

.brand-mark i:nth-child(3) {
  height: 22px;
}

.auth-card {
  width: min(100vw - 2rem, 29rem);
  padding: clamp(1.5rem, 5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.85rem 0 1.5rem;
  color: #d7d5ce;
  line-height: 1.55;
}

.muted,
.auth-footnote {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-footnote {
  margin: 0;
}

.error {
  color: #ffd0cc;
}

.notice {
  margin: 1rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(114, 214, 161, 0.35);
  border-radius: 12px;
  color: #a9ebc8;
  background: rgba(114, 214, 161, 0.08);
  font-size: 0.88rem;
}

.auth-form {
  display: grid;
  gap: 0.65rem;
}

.auth-form label {
  margin-top: 0.35rem;
  color: #d9d7d0;
  font-size: 0.83rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(5, 6, 7, 0.65);
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 167, 91, 0.14);
}

.auth-form button,
.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: #17120e;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.auth-form button:hover,
.button-link:hover {
  filter: brightness(1.06);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.text-link {
  color: var(--accent-bright);
  font-size: 0.86rem;
}

.quiet-danger {
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.command {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

code {
  color: var(--accent-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}

@media (max-width: 480px) {
  .auth-shell {
    place-content: start center;
  }

  .auth-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
