/* ========================================================================
   Account / Sign-in styles (self-contained)
   Loaded ONLY by _AuthLayout.cshtml. Deliberately decoupled from the main
   site styles.css + tailwind.css so the auth screen stays lean and can be
   reused as-is across getfacturx, getzugferd and getubl. Everything this
   page needs (fonts, tokens, reset) lives here, nothing else.
   ======================================================================== */

/* Self-hosted fonts (woff2 in /fonts), subset-split so the browser only
   downloads the ranges actually used on the page. */
/* Inter (latin-ext) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter (latin) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk (latin-ext) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk (latin) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens (only what the auth screen consumes) ─────────────────────────── */
:root {
  --ink:         #173541;
  --ink-2:       #2c4d57;
  --ink-soft:    #51676f;
  --ink-faint:   #8a9aa0;
  --brand-lime:  #d5e43f;
  --lime-soft:   #eef3c0;
  --lime-deep:   #8ba326;
  --line:        rgba(23, 53, 65, 0.10);
  --line-2:      rgba(23, 53, 65, 0.16);
  --destructive: 12 70% 50%;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ── Minimal reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: #f4f3ea;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ============ SIGN-IN SPLIT LAYOUT ============ */
/* Full-bleed two-column auth screen. Uses Space Grotesk / Inter / mono. */
.auth-split {
  --auth-md: 0 6px 20px rgba(23,53,65,.08), 0 2px 6px rgba(23,53,65,.05);
  --auth-lg: 0 22px 60px rgba(23,53,65,.14), 0 6px 16px rgba(23,53,65,.07);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ----- Left brand panel ----- */
.auth-brand {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 40px 56px 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 360px at 86% 6%, rgba(213,228,63,.16), transparent 62%),
    radial-gradient(440px 360px at 4% 100%, rgba(143,183,191,.16), transparent 60%);
}
.auth-brand-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.auth-lockup .mk {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
}
.auth-back {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .15s;
  white-space: nowrap;
}
.auth-back:hover { color: #fff; }

.auth-brand-body {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 440px;
}
.auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-lime);
}
.auth-brand-body h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.06;
  letter-spacing: -.01em;
}
.auth-brand-body h1 .accent { color: var(--brand-lime); }
.auth-sub {
  color: rgba(255,255,255,.74);
  font-size: 16px;
  line-height: 1.55;
  margin: 16px 0 0;
}
.auth-vlist {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-vlist li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
.auth-vlist .c {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(213,228,63,.14);
  color: var(--brand-lime);
  display: grid;
  place-items: center;
}
.auth-art {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.auth-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 34px;
}
.auth-foot .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.auth-foot .std {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
}

/* ----- Right form panel ----- */
.auth-form-side {
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  background: #f4f3ea;
}
.auth-form-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.auth-form-top a { font-weight: 700; color: var(--ink); }
.auth-form-top a:hover { color: var(--lime-deep); }

.auth-formwrap {
  margin: auto;
  width: 100%;
  max-width: 400px;
}
.auth-formwrap .head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.auth-formwrap .head p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 10px 0 0;
  line-height: 1.5;
}

.auth-error {
  margin-top: 22px;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  background: hsl(var(--destructive) / .1);
  color: hsl(var(--destructive));
}

.auth-gbtn {
  margin-top: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--auth-md);
  transition: transform .12s, box-shadow .2s, border-color .2s;
}
.auth-gbtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--auth-lg);
  border-color: var(--line);
}
.auth-gbtn:active { transform: translateY(0); }

.auth-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.auth-sep::before,
.auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.auth-input { position: relative; }
.auth-input .ic {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
  transition: color .15s;
}
.auth-input input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px 14px 44px;
  transition: border-color .18s, box-shadow .18s;
}
.auth-input input::placeholder { color: var(--ink-faint); }
.auth-input input:focus {
  outline: none;
  border-color: var(--lime-deep);
  box-shadow: 0 0 0 4px var(--lime-soft);
}
.auth-input:focus-within .ic { color: var(--lime-deep); }

.auth-submit {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--auth-md);
  transition: transform .12s, box-shadow .2s, background .2s;
}
.auth-submit:hover { background: #0f2a33; box-shadow: var(--auth-lg); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit .arr { transition: transform .18s; }
.auth-submit:hover .arr { transform: translateX(3px); }

.auth-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.auth-legal {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin-top: 28px;
}
.auth-legal a { font-weight: 700; color: var(--ink-soft); }
.auth-legal a:hover { color: var(--ink); }

/* ----- Sent state ----- */
.auth-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.auth-sent .seal {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--lime-soft);
  display: grid;
  place-items: center;
  color: var(--lime-deep);
  margin-bottom: 20px;
  box-shadow: var(--auth-md);
}
.auth-sent h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.auth-sent p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 12px 0 0;
}
.auth-sent p b { color: var(--ink); }
.auth-sent .resend {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lime-deep);
}
.auth-sent .resend:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-side { padding: 28px 22px; }
  .auth-formwrap { max-width: 420px; }
}
