/* Auth — Swiss / structural. No effects, no canvas: a hairline grid, oversized
   mono labels, thick rules, sharp cells, one emerald signal. Shared by
   login / signup / reset. Deliberately dark to match the studio's identity. */

:root {
  --a-bg: #0b0b0d;
  --a-ink: #ededf1;
  --a-dim: #7c7c85;
  --a-line: #26262d;
  --a-cell: #101014;
  --a-acc: #10b981;
}

.auth-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--a-bg); color: var(--a-ink);
  font-family: var(--sans, 'Plus Jakarta Sans', system-ui, sans-serif);
}

/* meta rulers top + bottom */
.auth-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 4vw, 40px);
  font-family: var(--mono, monospace);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--a-dim);
}
.auth-bar.top { border-bottom: 1px solid var(--a-line); }
.auth-bar.bot { border-top: 1px solid var(--a-line); margin-top: auto; }
.auth-bar .lit { color: var(--a-ink); }
.auth-bar .stat { display: inline-flex; align-items: center; gap: 7px; color: var(--a-acc); }
.auth-bar .stat::before { content: ""; width: 6px; height: 6px; background: var(--a-acc); }

/* main split: index/tagline rail | form column */
.auth-main {
  flex: 1; display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.auth-rail {
  border-right: 1px solid var(--a-line);
  padding: clamp(30px, 5vw, 66px) clamp(20px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 26px;
}
.auth-index {
  font-family: var(--mono, monospace);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-acc);
  padding-bottom: 22px; border-bottom: 1px solid var(--a-line);
}
.auth-slug {
  font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.06;
  letter-spacing: -.02em; text-wrap: balance; max-width: 12ch;
}
.auth-slug em { font-style: normal; color: var(--a-acc); }
.auth-meta {
  margin-top: auto; font-family: var(--mono, monospace);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--a-dim); line-height: 2;
}
.auth-meta b { color: var(--a-ink); font-weight: 400; }

.auth-formcol {
  padding: clamp(30px, 5vw, 66px) clamp(20px, 5vw, 76px);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-formcol .inner { width: 100%; max-width: 460px; }

.auth-h {
  font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  line-height: 1.0; letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 10px; text-wrap: balance;
}
.auth-lede { color: var(--a-dim); font-size: 14.5px; line-height: 1.55; margin: 0 0 34px; max-width: 44ch; }

.auth-field { display: block; margin-bottom: 4px; border-top: 1px solid var(--a-line); padding-top: 16px; margin-top: 16px; }
.auth-field:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.auth-field > span {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--a-dim); margin-bottom: 9px;
}
.auth-field > span .idx { color: #46464e; }
.auth-cell {
  width: 100%; box-sizing: border-box;
  background: var(--a-cell); border: 1px solid var(--a-line); border-radius: 2px;
  color: var(--a-ink); font-family: inherit; font-size: 16px; padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-cell::placeholder { color: #4a4a52; }
.auth-cell:focus { outline: none; border-color: var(--a-acc); box-shadow: inset 0 0 0 1px var(--a-acc); }

.auth-submit {
  width: 100%; margin-top: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--a-acc); color: #04140d; border: 1px solid var(--a-acc); border-radius: 2px;
  font-family: var(--mono, monospace); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  padding: 16px 20px; transition: background .15s ease, color .15s ease;
}
.auth-submit:hover:not(:disabled) { background: transparent; color: var(--a-acc); }
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-submit .arw { font-family: var(--sans, sans-serif); }

.auth-hint { font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--a-dim); margin: 12px 0 0; }
.auth-msg { font-family: var(--mono, monospace); font-size: 12px; letter-spacing: .04em; margin-top: 18px; min-height: 16px; line-height: 1.5; }
.auth-msg.err { color: #fb7185; }
.auth-msg.ok { color: var(--a-acc); }

.auth-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--a-line);
  font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.auth-foot a { color: var(--a-dim); text-decoration: none; transition: color .15s ease; }
.auth-foot a:hover { color: var(--a-acc); }
.auth-foot a .mk { color: var(--a-acc); }

/* mobile: stack rail above form, keep the structural rulers */
@media (max-width: 820px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-rail { border-right: none; border-bottom: 1px solid var(--a-line); gap: 18px; padding-bottom: 26px; }
  .auth-slug { max-width: none; font-size: clamp(1.4rem, 1rem + 4vw, 2rem); }
  .auth-meta { display: none; }
  .auth-formcol { padding-top: 34px; padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-cell, .auth-submit, .auth-foot a { transition: none; }
}
