/*
 * Sign up / sign in for photographers.
 *
 * Built on the product's own tokens, so someone who has just read the pitch
 * walks into a form that belongs to the same product. The page it replaced was
 * three equally-weighted buttons and <br> tags between labels.
 */

*, *::before, *::after { box-sizing: border-box; }

.au-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--pz-canvas);
  color: var(--pz-ink);
  font: 400 var(--pz-text-md) / var(--pz-leading) var(--pz-font);
  -webkit-font-smoothing: antialiased;
}

/* The form leads. The reassurance panel is support, and it is the half that
   disappears when there is no room for it. */
.au-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
}
@media (min-width: 900px) {
  .au-split { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}

.au-panel {
  background: var(--pz-surface);
  padding: var(--pz-8) var(--pz-5) var(--pz-10);
  display: flex; flex-direction: column;
  max-width: 520px; width: 100%; margin-inline: auto;
}
@media (min-width: 900px) {
  .au-panel { padding: var(--pz-16) var(--pz-10); justify-content: center; }
}

.au-brand {
  display: inline-flex; align-items: center; gap: var(--pz-2);
  font-weight: 700; font-size: var(--pz-text-lg);
  color: var(--pz-ink); text-decoration: none;
  letter-spacing: var(--pz-track-tight);
  margin-bottom: var(--pz-8);
  align-self: flex-start;
}
.au-brand img { border-radius: 8px; display: block; }

.au-panel h1 {
  margin: 0 0 var(--pz-2);
  font-size: var(--pz-text-2xl); line-height: var(--pz-leading-tight);
  letter-spacing: var(--pz-track-tight);
}
.au-sub { margin: 0 0 var(--pz-6); color: var(--pz-ink-muted); }

/* ---- Google ------------------------------------------------------------- */
.au-google {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--pz-3);
  min-height: var(--pz-tap); padding: 0 var(--pz-5);
  border: 1px solid var(--pz-edge-strong); border-radius: var(--pz-radius);
  background: var(--pz-surface); color: var(--pz-ink);
  font: 600 var(--pz-text-md) / 1.2 var(--pz-font);
  text-decoration: none; box-shadow: var(--pz-shadow-sm);
  transition: background var(--pz-motion-fast) var(--pz-ease);
}
.au-google:hover { background: var(--pz-canvas); }
.au-google:focus-visible { outline: 2px solid var(--pz-brand); outline-offset: 2px; }

.au-or {
  display: flex; align-items: center; gap: var(--pz-3);
  margin: var(--pz-6) 0;
  font-size: var(--pz-text-xs); color: var(--pz-ink-subtle);
}
.au-or::before, .au-or::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--pz-edge);
}

/* ---- Fields ------------------------------------------------------------- */
.au-field { margin-bottom: var(--pz-5); }
.au-field label {
  display: block; margin-bottom: var(--pz-2);
  font-size: var(--pz-text-sm); font-weight: 600;
}
.au-field .pz-input.is-invalid {
  border-color: var(--pz-loss);
  box-shadow: 0 0 0 3px var(--pz-loss-soft);
}
.au-hint { margin: var(--pz-2) 0 0; font-size: var(--pz-text-xs); color: var(--pz-ink-subtle); }
.au-err {
  margin: var(--pz-2) 0 0; font-size: var(--pz-text-xs);
  color: var(--pz-loss); font-weight: 600;
}
.au-err a { color: var(--pz-loss); }

.au-submit { width: 100%; margin-top: var(--pz-2); }

.au-msg { margin: var(--pz-3) 0 0; font-size: var(--pz-text-sm); color: var(--pz-ink-muted); min-height: 1.4em; }
.au-msg--ok  { color: var(--pz-money); font-weight: 600; }
.au-msg--err { color: var(--pz-loss); font-weight: 600; }

.au-alt { margin: var(--pz-6) 0 0; font-size: var(--pz-text-sm); color: var(--pz-ink-muted); }
/* "Sign in" is the escape hatch for everyone who is not a new photographer, so
   it gets a real tap target rather than 20px of inline text. */
.au-alt a {
  color: var(--pz-brand-ink); font-weight: 600;
  display: inline-flex; align-items: center;
  min-height: var(--pz-tap); padding-inline: var(--pz-2);
}
.au-fine {
  margin: var(--pz-5) 0 0; max-width: 46ch;
  font-size: var(--pz-text-xs); color: var(--pz-ink-subtle); line-height: 1.5;
}

/* ---- Reassurance -------------------------------------------------------- */
.au-aside {
  display: none;
  padding: var(--pz-16) var(--pz-10);
  color: #fff;
  background:
    radial-gradient(700px 340px at 80% -10%, rgba(14, 154, 141, .18), transparent 62%),
    linear-gradient(168deg, var(--pz-scrim-flat-1), var(--pz-scrim-flat-2));
}
@media (min-width: 900px) { .au-aside { display: block; } }

.au-aside h2 {
  margin: 0 0 var(--pz-6);
  font-size: var(--pz-text-xl); letter-spacing: var(--pz-track-tight);
}
.au-next { margin: 0 0 var(--pz-10); padding-left: var(--pz-5); display: grid; gap: var(--pz-4); }
.au-next li { color: rgba(255, 255, 255, .78); font-size: var(--pz-text-sm); line-height: 1.55; }
.au-next strong { color: #fff; }

.au-facts {
  list-style: none; margin: 0; padding: var(--pz-6) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; gap: var(--pz-5);
}
.au-facts li { display: flex; flex-direction: column; gap: 2px; }
.au-facts strong { font-size: var(--pz-text-xl); letter-spacing: var(--pz-track-tight); }
.au-facts span { font-size: var(--pz-text-sm); color: rgba(255, 255, 255, .64); }
