/* Sign-in pages (login, forgot, reset, account). They reuse the landing's design
   system: load landing.css first for the tokens (--bg, --ink, --gold...), the
   self-hosted fonts, the header, the language switch and the buttons. This file
   adds only what a form page needs. No third-party request, no inline style. */

body.au {
  display: flex; flex-direction: column; min-height: 100vh;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(255, 130, 50, 0.14), transparent 70%),
    radial-gradient(50% 45% at 0% 8%, rgba(122, 162, 255, 0.12), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

.au-main {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(1.5rem, 7vw, 4.5rem) 1rem 3rem;
}

.au-card {
  width: 100%; max-width: 27rem;
  padding: clamp(1.4rem, 6vw, 2.4rem);
  border: 1px solid var(--edge); border-radius: 20px; background: var(--glass);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.au-card .lp-eyebrow { margin-bottom: 0.9rem; }

.au-title {
  font: 600 clamp(1.7rem, 6.5vw, 2.15rem)/1.1 var(--font-brand);
  letter-spacing: -0.022em; color: var(--ink); text-wrap: balance;
}
.au-sub { margin-top: 1.75rem; font: 600 1.15rem/1.2 var(--font-brand); color: var(--ink); }
.au-lead { margin-top: 0.75rem; color: var(--ink-2); text-wrap: pretty; overflow-wrap: anywhere; }
.au-sub + .au-form { margin-top: 1rem; }

.au-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.au-form--secondary { margin-top: 1rem; }

.au-field { display: grid; gap: 0.4rem; }
.au-field label { font: 500 0.9rem/1.3 var(--font-sans); color: var(--ink); }

.au-input {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 12px;
  background: rgba(4, 6, 13, 0.65); color: var(--ink);
  font: 400 1rem/1.4 var(--font-sans); /* 16px: iOS does not zoom the page on focus */
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.au-input:hover { border-color: rgba(255, 255, 255, 0.4); }
.au-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); border-radius: 12px; }
.au-input[aria-invalid="true"] { border-color: #ff9d9d; }

.au-hint { font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.au-alert {
  margin-top: 1.25rem; padding: 0.8rem 1rem; border-radius: 12px;
  font-size: 0.92rem; line-height: 1.5; border: 1px solid;
}
.au-alert--error { color: #ffc9c9; background: rgba(255, 90, 90, 0.1); border-color: rgba(255, 140, 140, 0.45); }
.au-alert--info { color: #ffe2b5; background: rgba(255, 207, 138, 0.09); border-color: rgba(255, 207, 138, 0.4); }

.au-btn { width: 100%; margin-top: 0.25rem; }
.au-card > .au-btn { margin-top: 1.5rem; }
.au-card > .lp-btn--ghost.au-btn { margin-top: 0; }

.au-card > .au-aside, .au-btn + .au-aside { margin-top: 1.25rem; }
.au-aside { text-align: center; font-size: 0.92rem; color: var(--muted); }
.au-link { color: var(--violet); text-decoration: underline; text-decoration-color: rgba(184, 168, 246, 0.45); }
.au-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.au-or {
  display: flex; align-items: center; gap: 0.9rem; margin: 1.5rem 0;
  font: 500 0.9rem/1 var(--font-sans); color: var(--muted); /* sans: a mono "o" reads as a zero */
}
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* the signed-in strip in the header */
.au-who { display: flex; align-items: center; gap: 0.75rem; min-width: 0; font-size: 0.85rem; }
.au-who__email { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.au-linkbtn {
  min-height: 2.25rem; padding: 0 0.4rem; border: 0; background: none; cursor: pointer;
  color: var(--violet); font: 500 0.85rem var(--font-sans); text-decoration: underline; text-underline-offset: 0.2em;
}
.au-linkbtn:hover { color: var(--ink); }

.au-foot { padding: 1.5rem 1rem 2rem; text-align: center; font-size: 0.85rem; color: var(--muted); }
.au-foot a { color: var(--ink-2); }

@media (max-width: 30rem) {
  .au-who__email { display: none; }
  .lp-header__inner { gap: 0.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .au-card { animation: au-rise 0.6s var(--ease) both; }
}
@keyframes au-rise { from { opacity: 0; translate: 0 12px; } }
