/* ============================================================================================
   VDG Ashvi B2B — authentication surfaces
   Built to `Reference image/Login and register page.png`: a split card with a photographic
   promise panel, the form beside it, and a trust strip beneath. Shared by every sign-in and
   sign-up page, of which there is one per audience — never a single shared login.
   ============================================================================================ */

.au {
  --ink: #16150f;
  --ink-2: #5a564c;
  --ink-3: #8d887c;
  --page: #eef0f4;
  --paper: #ffffff;
  --sand: #f4f1ec;
  --line: #e4e0d8;
  --line-2: #cec8bc;
  --pink: #d6006f;
  --violet: #6816ca;
  --ok: #1f6b4a;
  --ok-soft: #e4f2ea;
  --bad: #9e2b22;
  --bad-soft: #f8e6e3;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: var(--ds-font);
  --ease: cubic-bezier(.16, 1, .3, 1);

  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  font-size: 15.5px;
  line-height: 1.6;
}

.au *, .au *::before, .au *::after { box-sizing: border-box; }
:where(.au) :where(a) { color: inherit; text-decoration: none; }
.au img { display: block; max-width: 100%; }
.au p { margin: 0; }
.au ul { list-style: none; margin: 0; padding: 0; }
.au h1, .au h2 { margin: 0; text-wrap: balance; }
.au :focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
html:has(> body.au), html { overflow-x: clip; }

.au-skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 18px; z-index: 50; }
.au-skip:focus { left: 12px; top: 12px; }

.au-page { max-width: 1080px; margin-inline: auto; padding: clamp(18px, 4vw, 46px) clamp(16px, 4vw, 32px) 48px; }

.au-card {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 21, 15, .05), 0 40px 90px -50px rgba(22, 21, 15, .5);
}

/* ---------------------------------------------------------------- promise panel */
.au-aside { position: relative; background: var(--ink); color: #fff; min-height: 540px; }
.au-aside-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.au-aside::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(14, 13, 10, .92) 8%, rgba(14, 13, 10, .62) 48%, rgba(14, 13, 10, .94) 100%);
}
.au-aside-in { position: relative; z-index: 1; padding: clamp(26px, 3.4vw, 42px); display: flex; flex-direction: column; height: 100%; }
.au-kicker {
  display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: 18px;
}
.au-kicker span { width: 26px; height: 1px; background: rgba(255, 255, 255, .55); display: block; }
.au-aside-h { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.015em; }
.au-aside-p { color: rgba(255, 255, 255, .78); font-size: .9rem; line-height: 1.7; margin-top: 14px; max-width: 34ch; padding-bottom: 6px; }
.au-benefits { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 18px; }
.au-benefits li { display: flex; gap: 13px; align-items: center; font-size: .86rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.au-benefits svg { width: 22px; height: 22px; flex-shrink: 0; color: #fff; }
.au-aside-mark {
  margin-top: auto; padding-top: 30px; font-size: 0.75rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
}

/* ---------------------------------------------------------------- form panel */
.au-main { padding: clamp(26px, 3.6vw, 46px); display: flex; flex-direction: column; }
.au-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: clamp(20px, 3vw, 34px); }
.au-brand img { width: 56px; height: 56px; object-fit: contain; }
.au-brand b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.au-brand small { display: block; font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

.au-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink); background: #fdeaf3; border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.au-badge svg { width: 13px; height: 13px; }
.au-h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.au-sub { color: var(--ink-2); font-size: .9rem; margin-top: 7px; margin-bottom: 22px; }

/* ---------------------------------------------------------------- messages */
.au-msg { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.55; padding: 12px 14px; border-radius: 9px; margin-bottom: 18px; }
.au-msg svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.au-msg--ok { background: var(--ok-soft); color: var(--ok); }
.au-msg--bad { background: var(--bad-soft); color: var(--bad); }

/* ---------------------------------------------------------------- fields */
.au-form { display: flex; flex-direction: column; gap: 13px; }
.au-field { position: relative; display: block; }
.au-field > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.au-field input, .au-field select {
  width: 100%; font: inherit; font-size: .9rem; color: var(--ink);
  padding: 15px 15px 15px 46px; border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.au-field select { cursor: pointer; padding-right: 42px; }
.au-field input::placeholder { color: var(--ink-3); }
.au-field input:focus, .au-field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(214, 0, 111, .12); }
.au-field input[aria-invalid="true"] { border-color: var(--bad); }
.au-field .au-chev { left: auto; right: 15px; }
.au-peek {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--ink-3); border-radius: 50%;
}
.au-peek:hover { color: var(--ink); background: var(--sand); }
.au-peek svg { width: 17px; height: 17px; }
/* Visible to a screen reader, not to the eye. The fields carry placeholders rather than visible
   labels, so each one still needs a real label in the accessibility tree. This was an inline
   style copied into each field; as a class it can also be used by the portal sign-ins, which is
   where its absence showed up — every label rendered visibly above its own field. */
.au-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.au-hint {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.75rem; color: var(--ink-2); line-height: 1.55; margin-top: 22px;
}
/* Without this the icon inherits the SVG's own 24-unit box and renders at the column's width. */
.au-hint svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; }
.au-check { display: flex; align-items: center; gap: 9px; color: var(--ink-2); cursor: pointer; }
.au-check input { width: 17px; height: 17px; accent-color: var(--pink); cursor: pointer; }
.au-row a, .au-consent a { color: var(--pink); font-weight: 600; }
.au-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.au-consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--pink); flex-shrink: 0; cursor: pointer; }

.au-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: .92rem; font-weight: 700; color: #fff; cursor: pointer;
  padding: 16px 24px; border: 0; border-radius: 11px; margin-top: 4px;
  background: linear-gradient(95deg, var(--pink), var(--violet));
  box-shadow: 0 12px 30px -14px rgba(214, 0, 111, .7);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.au-submit:hover { transform: translateY(-2px); filter: saturate(1.08); }
.au-submit svg { width: 16px; height: 16px; }

.au-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.au-alt { display: flex; flex-direction: column; gap: 10px; }
.au-alt a {
  display: flex; align-items: center; justify-content: center; gap: 11px; font-size: .88rem; font-weight: 600;
  padding: 13px 18px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.au-alt a:hover { border-color: var(--ink); background: var(--sand); }
.au-alt svg { width: 17px; height: 17px; }

.au-switch { margin-top: 22px; text-align: center; font-size: .88rem; color: var(--ink-2); }
.au-switch a { color: var(--pink); font-weight: 700; }
.au-other { margin-top: 10px; text-align: center; font-size: .78rem; color: var(--ink-3); }
.au-other a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- trust strip */
.au-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper); border-radius: 14px; margin-top: 22px; padding: 20px 8px;
  box-shadow: 0 1px 2px rgba(22, 21, 15, .05), 0 22px 50px -40px rgba(22, 21, 15, .4);
}
.au-trust li { display: flex; gap: 12px; align-items: center; padding-inline: 18px; }
.au-trust li + li { border-left: 1px solid var(--line); }
.au-trust svg { width: 22px; height: 22px; color: var(--ink-2); flex-shrink: 0; }
.au-trust b { display: block; font-size: .82rem; }
.au-trust span span { display: block; font-size: 0.75rem; color: var(--ink-3); line-height: 1.45; }
.au-trust a { color: var(--pink); font-weight: 600; }

/* ---------------------------------------------------------------- chooser page */
.au-choose { max-width: 960px; margin-inline: auto; padding: clamp(26px, 5vw, 60px) clamp(16px, 4vw, 32px) 56px; text-align: center; }
.au-choose .au-brand { margin-bottom: 26px; }
.au-choose h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: -.02em; }
.au-choose > p { color: var(--ink-2); margin: 10px auto 34px; max-width: 56ch; font-size: .95rem; }
.au-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.au-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 7px;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.au-tile:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: 0 20px 44px -28px rgba(22, 21, 15, .4); }
.au-tile i { width: 42px; height: 42px; border-radius: 11px; background: #fdeaf3; color: var(--pink); display: grid; place-items: center; margin-bottom: 5px; }
.au-tile i svg { width: 21px; height: 21px; }
.au-tile b { font-size: .98rem; font-weight: 700; }
.au-tile p { font-size: .82rem; color: var(--ink-2); line-height: 1.6; flex: 1; }
.au-tile span.go { display: inline-flex; align-items: center; gap: 7px; color: var(--pink); font-size: .82rem; font-weight: 700; margin-top: 6px; }
.au-tile span.go svg { width: 13px; height: 13px; }
.au-choose-foot { margin-top: 30px; font-size: .88rem; color: var(--ink-2); }
.au-choose-foot a { color: var(--pink); font-weight: 700; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 880px) {
  .au-card { grid-template-columns: 1fr; }
  .au-aside { min-height: 0; order: 2; }
  .au-aside-in { padding: 26px; }
  .au-aside .au-benefits { gap: 12px; }
  .au-aside-mark { display: none; }
  .au-main { order: 1; }
  .au-trust { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .au-trust li { padding-inline: 0; }
  .au-trust li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .au-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .au-tiles { grid-template-columns: 1fr; }
  .au-card { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .au *, .au *::before, .au *::after { transition: none !important; }
  .au-submit:hover, .au-tile:hover { transform: none; }
}

/* V4-4f — target sizes.
   "Forgot password?", "Choose a different account type" and the trust-strip contact link were
   15-22px tall: the text's own box. They are the three things a visitor reaches for when the form
   is not working for them, which is exactly when a missed tap costs the most. */
.au-row a,
.au-other a,
.au-trust a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
