/*
 * The sign-in pages: login, signup, forgot and reset. Refreshed on 8 October
 * 2026 in the landing page's language.
 *
 * A split screen: a photograph with one sentence on the left, held still while
 * the form scrolls, and the existing card on the right on the page's own
 * ground. The card's markup is untouched, so every rule the batteries hold on
 * these forms holds here, and the phone layout is the old one exactly, because
 * below 900px the photograph goes and the form is the first thing on screen.
 *
 * Loaded before shell.css, so every rule on a shared class is prefixed with
 * `.au` to win on specificity.
 */

main.au {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 100dvh;
  background: var(--bg);
}

/* The 404 wears the card without the photograph. */
main.au.au-solo { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------- the photo */

.au-side {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 14px;
}
.au-side-photo {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  /* The people in these photographs stand right of centre, at the desk; a
     centred crop of a tall panel cut them out of the frame. */
  object-position: 72% center;
  border-radius: 26px;
}
.au-side-copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px 44px;
  border-radius: 26px;
  /* Darkest at the foot, where the sentence is, and a little at the top for
     the wordmark. The photograph is a bright reception, so text on it needs
     the scrim to read at all. */
  background: linear-gradient(to top,
    rgba(20, 15, 8, 0.84) 0%,
    rgba(20, 15, 8, 0.32) 52%,
    rgba(20, 15, 8, 0.10) 72%,
    rgba(20, 15, 8, 0.38) 100%);
  color: #fbf8f2;
}
.au-side-brand {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fbf8f2;
  text-decoration: none;
}
.au-side-brand span { opacity: 0.75; }
.au-side-text { display: grid; gap: 20px; max-width: 30ch; }
.au-side-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fbf8f2;
}
.au-side-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.au-side-points li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #f1ebe0;
}
.au-side-points svg { margin-top: 3px; color: #8ef0e4; }

/* The points, on frosted glass, so they read against any part of the photo. */
.au-glass {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* ----------------------------------------------------------- the form */

/*
 * The second pass, 8 October 2026: the form sits on the page rather than in a
 * box, with the way home and the other door in a slim row along the top. Only
 * where the photograph is beside it (`:not(.au-solo)`); the 404, which has no
 * photograph, keeps its card.
 */
.au .au-main {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  justify-items: stretch;
  gap: 24px;
  padding: 26px clamp(20px, 4vw, 56px) 40px;
}

.au-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* shell.css sizes this bar to the old card's width, which wrapped the switch
   onto a second line under it. In the row it is as wide as its link. */
.au .back-bar,
.au .back-bar-card { width: auto; max-width: none; margin: 0; }
.au .back-link {
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  color: var(--ink-2);
}
.au .back-link:hover { background: none; color: var(--ink); }
.au-switch { font-size: 13.5px; color: var(--ink-3); }
.au-switch a {
  margin-left: 4px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The card without the box. */
.au:not(.au-solo) .card {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  padding: 8px 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.au-solo .card {
  max-width: 440px;
  padding: 38px 36px 30px;
  border-radius: 24px;
  background: var(--surface-2);
  box-shadow: var(--shadow-float);
}

/* The photograph already carries the brand beside the form; the large lockup
   comes back, smaller, on a phone, where the photograph does not. */
.au:not(.au-solo) .card-brand { display: none; }

.au .card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.au .card-blurb { margin-bottom: 26px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Where this screen sits in getting started. */
.au-progress {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.au-progress li { display: grid; gap: 8px; }
.au-progress-bar { height: 4px; border-radius: 4px; background: var(--line); }
.au-progress .is-done .au-progress-bar { background: var(--ink-3); }
.au-progress .is-here .au-progress-bar { background: var(--ink); }
.au-progress-label { font-size: 11.5px; color: var(--ink-3); }
.au-progress .is-here .au-progress-label { font-weight: 600; color: var(--ink); }

/* Fields: taller, on white, with a ring that says where you are. */
.au .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.au .field { gap: 7px; }
.au .input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 15px;
}
.au .input:hover { border-color: var(--ink-4); }
/* An example, not an answer: pale enough that nobody reads it as filled in. */
.au .input::placeholder { color: color-mix(in srgb, var(--ink-4) 70%, transparent); }
.au .input:focus {
  outline: none;
  border-color: var(--ink-2);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.au .hint { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

.au-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* The password rules as chips, which tick as they are met. */
.au .pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding: 0; }
.au .pw-rules li {
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  font-size: 11.5px;
}
.au .pw-rules-live li.met { border-color: color-mix(in srgb, var(--good) 40%, transparent); }

.au .toggle { padding: 0; border: 0; background: none; font-size: 13.5px; color: var(--ink-2); }
.au .terms-accept { padding: 13px 14px; border-radius: 12px; font-size: 13px; }
.au .plan-change { font-size: 13px; }

/* One button colour, the landing page's ink. */
.au .btn-primary { background: var(--ink); color: var(--bg); box-shadow: none; }
.au .btn-primary:hover { background: var(--ink-2); box-shadow: none; }
.au .btn-primary.btn-block {
  height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0;
}

.au .card-links { margin-top: 22px; gap: 10px; }
.au .card-links .muted,
.au .card-links a { font-size: 13.5px; }
.au .card-links a { color: var(--ink); }
.au:not(.au-solo) .card-notice { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); }

/* The plan picker, at /signup with no plan chosen. */
.au .plan-pick-row {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.au .plan-pick-row:hover {
  background: var(--surface-2);
  border-color: var(--ink-3);
  box-shadow: var(--shadow-card);
}
.au .plan-pick-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.au .plan-pick-amount { font-family: var(--font-display); font-size: 34px; font-weight: 400; }
.au .plan-pick-go { font-size: 13.5px; color: var(--ink); }

/* -------------------------------------------------------------- narrow */

@media (max-width: 900px) {
  main.au { grid-template-columns: minmax(0, 1fr); }
  .au-side { display: none; }
  .au:not(.au-solo) .card-brand { display: flex; margin-bottom: 22px; }
  .au:not(.au-solo) .card-brand.stacked .brand-lockup { --lockup: 96px; }
}

@media (max-width: 560px) {
  .au .au-main { padding: 18px 16px 32px; gap: 16px; }
  .au-solo .card { padding: 28px 22px 24px; border-radius: 20px; }
  .au .card-title { font-size: 32px; }
  .au-pair { grid-template-columns: minmax(0, 1fr); }
  .au-progress-label { font-size: 10.5px; }
}
