:root {
  --ink: #0c1f2e;
  --muted: #5a6f80;
  --paper: #e8eef3;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(12, 31, 46, 0.12);
  --accent: #0a6b7c;
  --accent-2: #1a8a6a;
  --warn: #9a5b12;
  --danger: #9b1c1c;
  --ok: #0f6b52;
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(12, 31, 46, 0.1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(10, 107, 124, 0.18), transparent 55%),
    radial-gradient(700px 480px at 100% 0%, rgba(26, 138, 106, 0.12), transparent 50%),
    linear-gradient(165deg, #d9e3ec 0%, #c8d5e2 48%, #bcc9d7 100%);
  background-attachment: fixed;
}

.wrap { width: min(920px, calc(100% - 2rem)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(220, 229, 237, 0.78);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}
.brand { display: flex; flex-direction: column; gap: 0.1rem; }
.brand strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
nav { display: flex; gap: 1rem; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
nav a:hover { color: var(--accent); }

main.wrap { padding: 1.75rem 0 2.75rem; }

.auth-shell {
  min-height: calc(100vh - 4rem);
  display: grid;
  place-items: center;
  padding: 2rem 0 3rem;
}
.auth-hero {
  width: min(440px, 100%);
  text-align: left;
  animation: rise 0.7s ease both;
}
.auth-hero .mark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}
.auth-hero .lede {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 28ch;
}
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 0.85s ease 0.08s both;
}

h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.sub { margin: 0 0 1.25rem; color: var(--muted); }

.section {
  margin: 1.35rem 0;
  padding: 1.2rem 0 0.2rem;
  border-top: 1px solid var(--line);
  animation: rise 0.6s ease both;
}
.section:first-of-type { border-top: 0; padding-top: 0; }

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 650;
}
.form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form input:focus {
  outline: 2px solid rgba(10, 107, 124, 0.28);
  border-color: rgba(10, 107, 124, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--accent), #0d7f6a);
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 1.1rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.flash {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.flash.err {
  background: rgba(155, 28, 28, 0.08);
  border: 1px solid rgba(155, 28, 28, 0.22);
  color: var(--danger);
}
.flash.ok {
  background: rgba(15, 107, 82, 0.08);
  border: 1px solid rgba(15, 107, 82, 0.22);
  color: var(--ok);
}

.stack { display: flex; flex-direction: column; gap: 0.85rem; }
.lic {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.lic:last-child { border-bottom: 0; }
.lic code { font-size: 0.8rem; }
.ok { color: var(--ok); font-weight: 700; }
.warn { color: var(--warn); font-weight: 700; }
.mods { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

.files { margin: 0; padding-left: 1.1rem; }
.files li { margin: 0.4rem 0; }
.files a { color: var(--accent); font-weight: 700; text-decoration: none; }
.files a:hover { text-decoration: underline; }

.foot {
  color: var(--muted);
  font-size: 0.78rem;
  padding-bottom: 1.6rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .lic { align-items: flex-start; }
}
