/*
 * VanKaapstad — portal auth screens.
 * From the approved Auth.dc.html on the Claude Design canvas: a 44/56 split, jade panel
 * left, form right capped at 460px. Standalone (does NOT load site.css) and scoped under
 * .au, like the public stylesheet is under .vk.
 */

.au {
  /* The portal palette differs from the public site: ink is a warm near-black,
     the ground is paper rather than cream. */
  --ink: #3D0700;
  --jade: #6FCBA0;
  --hot: #FF2B24;
  --coral: #F4614D;
  --blush: #FFD7D0;
  --paper: #FFF3EE;
  --ink-18: rgba(61, 7, 0, 0.18);
  --ink-60: rgba(61, 7, 0, 0.60);

  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
}

.au *, .au *::before, .au *::after { box-sizing: border-box; }
.au a { color: var(--ink); }
.au a:hover { color: #000; }
.au :focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }

/* --- left panel ------------------------------------------------------------- */

.au__side {
  background: var(--jade);
  border-right: 2px solid var(--ink);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.au__brand {
  font-size: 30px; font-weight: 900; font-stretch: 80%;
  white-space: nowrap; text-decoration: none; align-self: flex-start;
}
.au__van { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }

.au__big {
  font-weight: 900; font-stretch: 78%; line-height: 0.92;
  font-size: clamp(72px, 11vw, 150px);
  color: var(--hot);
  margin-top: 56px;
  /* paint-order keeps the stroke behind the fill, so the letters stay readable. */
  paint-order: stroke fill;
  -webkit-text-stroke: 6px var(--ink);
}

.au__tagline {
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  margin: 22px 0 0;
}

.au__pouch {
  position: absolute;
  width: 190px; height: auto;
  filter: drop-shadow(0 20px 30px rgba(61, 7, 0, 0.28));
  pointer-events: none;
}
.au__pouch--a { right: 40px;  bottom: -90px;  transform: rotate(8deg); }
.au__pouch--b { right: 190px; bottom: -130px; transform: rotate(-6deg); }

/* --- right pane -------------------------------------------------------------- */

.au__main {
  padding: 44px 64px;
  display: flex;
  flex-direction: column;
}

.au__top {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; min-height: 44px;
}

.au__messages { max-width: 460px; width: 100%; margin-top: 16px; }
.au__msg {
  margin: 0 0 10px; padding: 12px 16px;
  border: 2px solid var(--ink); background: var(--blush);
  font-size: 15px; font-weight: 700;
}
.au__msg--success { background: var(--jade); }

.au__form {
  max-width: 460px; width: 100%;
  margin: auto 0;
  display: flex; flex-direction: column; gap: 18px;
  padding: 40px 0;
}
.au__form--tight { gap: 14px; }

.au__cap {
  font-size: 13px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; margin: 0;
}
.au__h1 {
  font-weight: 900; font-stretch: 78%; line-height: 0.92;
  font-size: clamp(44px, 6vw, 72px);
  margin: 0;
}
.au__h1--welcome {
  color: var(--jade);
  font-size: clamp(56px, 8vw, 96px);
  paint-order: stroke fill;
  -webkit-text-stroke: 6px var(--ink);
}
.au__sub { font-size: 18px; font-weight: 500; line-height: 1.5; margin: 0; }
.au__hint, .au__warn { font-size: 14px; font-weight: 600; margin: 0; }
.au__warn {
  border: 2px solid var(--ink); background: var(--blush);
  padding: 10px 14px;
}

/* Progress through the three sign-up steps. */
.au__steps { display: flex; gap: 8px; }
.au__steps span { flex: 1; height: 6px; background: var(--ink-18); }
.au__steps span.on { background: var(--ink); }

/* --- fields ------------------------------------------------------------------ */

.au__f { display: block; }
.au__f label, .au__flabel {
  display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
  margin: 0 0 6px;
}
.au__f input, .au__f select {
  width: 100%; height: 54px;
  border: 2px solid var(--ink); border-radius: 0;
  background: #fff; padding: 0 16px;
  font-size: 17px; font-family: inherit; color: var(--ink);
}
.au__f input[aria-invalid="true"] { border-color: var(--hot); background: var(--blush); }
.au__f select { appearance: none; background-image: none; }

/* Read-only register data: dashed, so it reads as given rather than editable. */
.au__ro {
  border: 2px dashed var(--ink); background: transparent;
  padding: 12px 16px; font-size: 16px; font-weight: 600; line-height: 1.45;
}

.au__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.au__chk {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; font-weight: 600; line-height: 1.4;
}
.au__chk input {
  width: 22px; height: 22px; margin: 0; flex: none;
  accent-color: var(--ink);
}

.au__search { display: flex; flex-direction: column; gap: 12px; }

/* --- code boxes --------------------------------------------------------------- */

.au__codeset { border: none; margin: 0; padding: 0; }
.au__codeset legend {
  font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
  margin-bottom: 6px; padding: 0;
}
.au__code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.au__code input {
  height: 72px; width: 100%;
  border: 2px solid var(--ink); background: #fff;
  text-align: center; font-size: 34px; font-weight: 900;
  font-family: inherit; color: var(--ink); padding: 0;
}

/* --- buttons and links --------------------------------------------------------- */

.au__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 26px;
  font-size: 17px; font-weight: 800; font-family: inherit;
  text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink); cursor: pointer;
}
.au__btn--ink { background: var(--ink); color: var(--paper); }
.au__btn--ink:hover { color: var(--blush); }
.au__btn--line { background: transparent; color: var(--ink); }
.au__btn--line:hover { background: var(--blush); }

.au__link {
  /* inline-flex + center, not just min-height: min-height makes the 44px tap target
     but leaves the text at the top of the box, so it rides high next to adjacent text. */
  display: inline-flex; align-items: center;
  background: none; border: none; padding: 0;
  font: inherit; font-weight: 700; text-decoration: underline;
  color: var(--ink); cursor: pointer; min-height: 44px;
}
.au__link--sm { font-size: 14px; min-height: 0; margin-top: 6px; display: inline-block; }

.au__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600;
}
.au__row--after { max-width: 460px; width: 100%; margin: -24px 0 40px; }
.au__row--after form { display: flex; }

.au__nopw {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 2px solid var(--ink);
  padding: 14px 16px; margin: 0;
  font-size: 15px; font-weight: 600; line-height: 1.45;
}
.au__nopw svg { flex: none; margin-top: 1px; }

/* --- search results ------------------------------------------------------------- */

.au__res { border: 2px solid var(--ink); background: #fff; }
.au__res a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 14px 16px;
  border-top: 2px solid var(--ink);
  text-decoration: none; color: var(--ink);
}
.au__res a:first-child { border-top: none; }
.au__res a:hover { background: var(--blush); }
.au__res b { display: block; font-size: 17px; font-weight: 800; }
.au__res span span { font-size: 14px; font-weight: 500; }
.au__arrow { font-size: 20px; font-weight: 900; }

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

@media (max-width: 760px) {
  .au { grid-template-columns: 1fr; }
  .au__side {
    border-right: none; border-bottom: 2px solid var(--ink);
    padding: 22px 20px;
  }
  /* The panel collapses to the brand alone; the artwork would eat the screen. */
  .au__big, .au__tagline, .au__pouch { display: none; }
  .au__main { padding: 28px 20px; }
  .au__two { grid-template-columns: 1fr; }
  .au__code input { height: 58px; font-size: 28px; }
  .au__row--after { margin-top: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .au *, .au *::before, .au *::after { animation: none !important; transition: none !important; }
}
