/* Register / login page. */

.au-main {
  padding: var(--adw-s7) var(--adw-pad-x) var(--adw-s9);
}

.au-shell {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--adw-s7);
  align-items: stretch;
}

/* ------------------------------------------------------------ side panel */

.au-side {
  position: relative;
  border-radius: var(--adw-r-lg);
  overflow: hidden;
  background: var(--adw-grad-ps5);
  color: #fff;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

/* The photo keeps a fixed aspect ratio rather than absorbing leftover height.
 *
 * The panel stretches to match the form column, and the register form is far
 * taller than the login form — five fields, the terms checkbox and the bot
 * check, against two fields. A photo sized from what is left over therefore
 * came out visibly different on the two tabs. Pinning the ratio makes it
 * identical everywhere; the surplus falls below the copy as plain teal, which
 * reads as intentional padding rather than a gap.
 *
 * min-height is the fallback for browsers without aspect-ratio: the slot has
 * no content of its own, so without it the box would collapse to nothing. */
.au-side-slot {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 11;
}

.au-side-copy {
  position: relative;
  flex: none;
  padding: var(--adw-s5) var(--adw-s6) var(--adw-s6);
}

.au-side-copy h2 {
  margin: 0 0 var(--adw-s5);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
}

.au-side-copy ul {
  list-style: none;
  margin: 0 0 var(--adw-s5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.au-side-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #d6eef6;
}

.au-side-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--adw-cyan-light);
}

/* ------------------------------------------------------------ form panel */

.au-panel {
  background: #fff;
  border-radius: var(--adw-r-lg);
  padding: var(--adw-s6);
  box-shadow: var(--adw-sh-soft);
}

.au-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--adw-bg);
  padding: 6px;
  border-radius: var(--adw-r-full);
  margin-bottom: var(--adw-s6);
}

.au-tab {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 10px;
  border: 0;
  border-radius: var(--adw-r-full);
  background: transparent;
  color: var(--adw-body);
  cursor: pointer;
  min-height: 48px;
  transition: background 0.16s ease, color 0.16s ease;
}

.au-tab[aria-selected="true"] {
  background: var(--adw-cyan);
  color: #fff;
}

.au-tab:hover[aria-selected="false"] {
  background: var(--adw-cyan-tint);
  color: var(--adw-teal);
}

.au-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
}

.au-sub {
  margin: 0 0 var(--adw-s5);
  font-size: 16px;
  color: var(--adw-body);
}

/* ------------------------------------------------------------ password */

.au-pw {
  position: relative;
  display: block;
}

.au-pw .adw-input {
  padding-left: 52px;
}

.au-pw-toggle {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: var(--adw-r-sm);
  font-size: 18px;
  cursor: pointer;
  color: var(--adw-body);
}

.au-pw-toggle:hover {
  background: var(--adw-cyan-tint);
}

/* ------------------------------------------------------------ honeypot */

/* Hidden from people but not from a script that fills every input — bots
   routinely skip display:none and type=hidden, so neither is used.
 *
 * It is clipped to nothing rather than pushed off-screen with a large negative
 * offset. On an RTL page, inline-start overflow is scrollable rather than
 * clipped, so `left: -9999px` extends the document's scrollable area sideways
 * and drags the scroll origin with it — which left the whole register page
 * blank. This is the standard visually-hidden pattern and adds no overflow.
 */
.au-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.au-turnstile:not(:empty) {
  margin-bottom: var(--adw-s5);
}

/* --------------------------------------------------------------- links */

.au-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  color: var(--adw-teal);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.au-link:hover {
  color: var(--adw-cyan-dark);
}

.au-switch,
.au-forgot {
  margin: var(--adw-s5) 0 0;
  font-size: 15px;
  color: var(--adw-body);
  text-align: center;
}

.au-forgot {
  margin-top: var(--adw-s4);
}

/* ------------------------------------------------------------- success */

.au-success {
  text-align: center;
}

.au-success-mark {
  font-size: 56px;
  line-height: 1;
  margin-bottom: var(--adw-s4);
}

.au-codecard {
  border: 2px dashed var(--adw-cyan);
  border-radius: var(--adw-r-md);
  background: var(--adw-cyan-tint);
  padding: var(--adw-s5);
  margin: var(--adw-s5) 0 var(--adw-s4);
}

.au-codecard-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--adw-teal);
  margin-bottom: var(--adw-s2);
}

/* §9.2 "Code display": 30px mobile / 40px desktop, 800, 3px tracking. */
.au-code {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.2;
  color: var(--adw-teal);
  margin-bottom: var(--adw-s4);
  word-break: break-all;
}

.au-codehint {
  margin: 0 0 var(--adw-s5);
  font-size: 14px;
  line-height: 1.7;
  color: var(--adw-body);
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .au-shell {
    grid-template-columns: 1fr;
    gap: var(--adw-s5);
  }
  .au-side {
    min-height: 300px;
  }
}

@media (max-width: 780px) {
  .au-main {
    padding: var(--adw-s5) var(--adw-pad-x) var(--adw-s8);
  }
  .au-panel {
    padding: var(--adw-s5);
  }
  .au-title {
    font-size: 26px;
  }
  .au-code {
    font-size: 30px;
  }
  /* The photo panel is pure decoration; on a phone it only costs scroll. */
  .au-side {
    display: none;
  }
}
