/* Login + signup (layouts/auth.njk). Prefix: au- */
.au { position: relative; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow: clip; line-height: normal; }
.au__glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.au__glow--steel { width: 640px; height: 640px; left: -240px; top: -200px; background: var(--steel-deep); opacity: .26; }
.au__glow--orange { width: 520px; height: 520px; right: -200px; bottom: -160px; background: var(--orange); opacity: .14; }

.au__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--container); width: 100%; margin: 0 auto; padding: 22px var(--gutter); }
.au__back { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.au__back:hover { color: #fff; }

.au__main { position: relative; display: grid; place-items: center; padding: 24px var(--gutter) 48px; }

.au-card { width: min(100%, 460px); padding: 30px 28px 28px; border-color: var(--line-4); box-shadow: 0 8px 0 #03060b, 0 30px 80px rgba(76, 141, 255, .18); }
.au-tag { gap: 7px; padding: 6px 9px; border-radius: 7px; font-size: 10.5px; letter-spacing: .12em; }
.au-title { margin-top: 18px; font: 400 clamp(28px, 2.3vw, 34px)/1.05 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.au-lead { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.au-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.au-field { display: flex; flex-direction: column; gap: 8px; }
.au-hint { color: var(--ink-4); letter-spacing: .08em; }
.au-input {
  width: 100%; padding: 13px 14px; border-radius: 12px; background: var(--bg-inset); border: 2px solid var(--line-2b);
  color: var(--ink); font: 500 16px/1.2 var(--f-body); transition: border-color .12s, box-shadow .12s;
}
.au-input::placeholder { color: var(--ink-4); }
.au-input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(76, 141, 255, .16); }
.au-input--code { font: 400 16px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.au-field.is-bad .au-input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 77, 77, .12); }

.au-pass { position: relative; display: block; }
.au-pass .au-input { padding-right: 70px; }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 8px; border-radius: 8px; background: var(--line-1); font: 400 10.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--ink-2); }
.au-eye:hover { color: #fff; }

.au-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg-inset); border: 2px solid var(--line-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.au-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.au-check.is-bad { border-color: var(--red); }

.au-error { padding: 11px 12px; border-radius: 11px; background: rgba(255, 77, 77, .1); border: 2px solid rgba(255, 77, 77, .35); color: var(--red-soft); font-size: 14px; line-height: 1.4; }
.au-form .btn { margin-top: 4px; }

.au-note { margin-top: 16px; font: 400 12px/1.5 var(--f-mono); color: var(--ink-3); }
.au-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font: 400 10.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink-3); }
.au-sep::before, .au-sep::after { content: ''; flex: 1; height: 2px; background: var(--line-2); }

.au-done { text-align: center; display: flex; flex-direction: column; align-items: center; }
.au-done__badge { width: 64px; height: 70px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #c9f5df, #39d98a); color: #062a17; font: 800 26px/1 var(--f-body); }
.au-done .au-title { margin-top: 18px; }
.au-done .btn { margin-top: 22px; }

.au__foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.au__foot a:hover { color: var(--gold-soft); }
.au__foot { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 18px var(--gutter) 28px; font: 400 11px/1.5 var(--f-mono); color: var(--ink-3); text-align: center; }

@media (max-width: 520px) {
  .au__top { padding: 16px var(--gutter); }
  .au__back { font-size: 14px; }
  .au-card { padding: 24px 18px 20px; }
}
