/* Ported from OberBuilt-Website design/mockups-2026-09/assets/d-account.css (frozen reference). */
/* d-account.css: the four account pages in Direction D (2026-10-04). Loads after v2.css and dir-d.css.
   Prefix da-. Shared pieces for the later WooCommerce my-account screens:
   .da-card (form card), .da-alert (form error), .da-err (field error), .da-rows (one row per area). */

.d-sign-in, .d-create-account, .d-reset-password, .d-account { --da-err: #FF9A8F; --da-err-bg: rgba(255,110,96,.08); --da-err-line: rgba(255,138,128,.85); }

/* ---------- sign in / create / reset: copy left, form right ---------- */
.da-auth { position: relative; padding: clamp(28px, 5vw, 72px) 0 clamp(88px, 10vw, 136px); overflow-x: clip; }
.da-auth__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "aside"; gap: 28px; }
.da-auth__intro { grid-area: intro; }
.da-auth__form { grid-area: form; position: relative; }
.da-auth__aside { grid-area: aside; }
/* the same soft cyan glow D puts behind the unit, here behind the form */
.da-auth__form::before { content: ""; position: absolute; inset: -12% -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,184,212,.09), transparent 70%); pointer-events: none; }

.dir-d .da-h1 { font-size: clamp(38px, 4.6vw, 64px); max-width: 12ch; }
.dir-d .da-say { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--v-fg-2); max-width: 36ch; margin: 18px 0 0; }

/* ---------- form card ---------- */
.dir-d .da-card { position: relative; display: grid; gap: 20px; max-width: 480px; margin: 0; padding: clamp(22px, 3vw, 34px); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: var(--v-card); }
.da-card form { display: grid; gap: 20px; }
.da-field__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.dir-d .da-field__link { font-size: 14px; display: inline-block; padding: 4px 0; }
.da-field input { scroll-margin-top: 120px; }

/* show / hide password: a text button inside the field, 32px tall */
.da-pw { position: relative; }
.da-pw input { padding-right: 84px; }
.da-pw__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 6px; cursor: pointer;
  font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--v-fg-2); background: rgba(255,255,255,.05); }
.da-pw__btn:hover { color: var(--v-fg); background: rgba(255,255,255,.09); }
.da-pw__btn[aria-pressed="true"] { color: var(--v-cyan-2); }
.da-pw__btn[hidden] { display: none; }

/* the checkbox and its hint read as one group */
.da-check { display: grid; gap: 0; margin-top: -6px; }
.da-check .v-field__hint { padding-left: 32px; }

.dir-d .da-terms, .dir-d .da-same { font-size: 14px; line-height: 1.6; color: var(--v-fg-3); margin: 0; }
.da-terms a { display: inline-block; padding: 3px 0; }
.da-terms .v-tbd { margin-left: 2px; }
.da-submit { width: 100%; min-height: 48px; font-size: 16px; }
.dir-d .da-card__foot { font-size: 15px; color: var(--v-fg-3); border-top: .5px solid var(--v-line-2); padding-top: 18px; margin: 0; }
.da-card__foot a { display: inline-block; padding: 4px 0; font-weight: 600; }

/* ---------- errors: a form-level alert plus a line under each field ---------- */
.dir-d .da-alert { display: grid; gap: 4px; padding: 14px 16px 14px 46px; border-radius: 10px; position: relative;
  background: var(--da-err-bg); box-shadow: 0 0 0 1px rgba(255,138,128,.35) inset; }
.da-alert[hidden] { display: none !important; }
.da-alert::before { content: "!"; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 var(--font-sans); color: #1A0B09; background: var(--da-err); }
.da-alert:focus { outline: none; }
.da-alert:focus-visible { outline: 2px solid var(--v-cyan-2); outline-offset: 2px; }
.dir-d .da-alert__t { margin: 0; font-weight: 600; font-size: 15px; color: var(--v-fg); }
.dir-d .da-alert__d { margin: 0; font-size: 14px; line-height: 1.55; color: var(--v-fg-2); }
.da-alert__d a { display: inline-block; padding: 2px 0; }

.dir-d .da-err { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 14px; line-height: 1.45; color: var(--da-err); }
.da-err:empty { display: none; }
.da-err::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.dir-d .da-field input[aria-invalid="true"] { border-color: var(--da-err-line); box-shadow: 0 0 0 1px var(--da-err-line) inset; }

/* reset: the confirmation replaces the form in the same card */
.dir-d .da-sent { display: grid; gap: 14px; }
.da-sent[hidden] { display: none; }
.dir-d .da-sent .dd-k { margin: 0; }
.dir-d .da-sent__h { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: var(--v-fg); margin: 0; }
.da-sent__h:focus { outline: none; }
.dir-d .da-sent__d { margin: 0; font-size: 16px; line-height: 1.6; color: var(--v-fg-2); }
.da-sent__d a { display: inline-block; padding: 3px 0; }

/* ---------- aside: what the account is for ---------- */
.dir-d .da-aside__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--v-fg-3); margin: 0 0 6px; }
.da-mini { list-style: none; margin: 0; padding: 0; max-width: 460px; }
.da-mini li { display: grid; gap: 3px; padding: 15px 0; border-top: .5px solid var(--v-line-2); }
.da-mini li:first-child { border-top: 0; padding-top: 6px; }
.da-mini__n { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--v-fg); }
.da-mini__d { font-size: 15.5px; line-height: 1.5; color: var(--v-fg-2); }
.dir-d .da-aside__help, .dir-d .da-help { font-size: 15px; color: var(--v-fg-3); margin: 18px 0 0; }
.da-aside__help a, .da-help a { display: inline-block; padding: 3px 0; }
.dir-d .da-shot { margin: 0 0 18px; max-width: 460px; }
.da-shot picture { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--v-card); }
.da-shot img { display: block; width: 100%; height: auto; }

/* ---------- account: rows, grouped ---------- */
.da-acct { padding: clamp(28px, 5vw, 64px) 0 clamp(88px, 10vw, 136px); }
.da-acct__head { margin-bottom: clamp(36px, 5vw, 64px); }
.dir-d .da-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; font-size: 17px; color: var(--v-fg-2); }
.da-who b { color: var(--v-fg); font-weight: 600; }
.da-who__mail { overflow-wrap: anywhere; }

.da-group { margin-top: clamp(32px, 4vw, 48px); }
.da-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--v-line-2); }
.dir-d .da-group__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--v-cyan-2); margin: 0; order: 2; }
.dir-d .da-group__h { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2vw, 26px); letter-spacing: -.01em; color: var(--v-fg); margin: 0; }

.da-rows { list-style: none; margin: 0; padding: 0; }
.da-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: .5px solid var(--v-line-2); }
.da-row__what { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.dir-d .da-row__n { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.01em; color: var(--v-fg); margin: 0; }
.dir-d .da-row__d { margin: 4px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--v-fg-2); max-width: 42ch; }
.da-row__state { display: grid; gap: 4px; align-content: center; min-width: 0; }
.da-row__state:empty { display: none; }
.da-stat__k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--v-fg-3); }
.da-stat__v { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--v-fg); }
.da-stat__v .v-tbd { vertical-align: middle; }
.da-row__do { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.dir-d .da-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--v-cyan-2); text-decoration: none; }
.da-link:hover { color: #A6F1F8; }
.da-row__none { font-size: 14px; color: var(--v-fg-3); }

.da-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--v-cyan-2);
  background: rgba(98,226,239,.06); box-shadow: 0 0 0 1px rgba(98,226,239,.35) inset; }
.da-mark--steel { color: var(--dd-steel); background: rgba(255,255,255,.03); box-shadow: 0 0 0 1px var(--v-line-2) inset; }
.da-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.da-mark__base { opacity: .5; }

.da-row--more { display: block; padding: 16px 0 16px 60px; }
.dir-d .da-row--more p { margin: 0; font-size: 14.5px; color: var(--v-fg-3); }

.da-kv { display: grid; gap: 6px; margin: 0; }
.da-kv div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.da-kv dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--v-fg-3); }
.da-kv dd { margin: 0; font-size: 15px; color: var(--v-fg); overflow-wrap: anywhere; }
.da-dots { letter-spacing: .12em; color: var(--v-fg-2); }

/* ---------- wider ---------- */
@media (min-width: 900px) {
  .da-auth__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "intro form" "aside form"; gap: 36px clamp(48px, 7vw, 120px); align-items: start; }
  .da-auth__intro { padding-top: clamp(8px, 2vw, 32px); }
  .da-auth__form { justify-self: end; width: 100%; max-width: 480px; }
  .da-auth__aside { align-self: end; }
  .da-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px 0; }
  .da-row__state:empty { display: block; }
  .da-row__do { justify-content: flex-end; }
}
@media (max-width: 899px) {
  .da-auth__form { max-width: 520px; }
  .dir-d .da-card { max-width: none; }
  .da-row__state, .da-row__do { padding-left: 60px; }
}
@media (max-width: 420px) {
  .da-row__state, .da-row__do { padding-left: 0; }
  .da-row--more { padding-left: 0; }
  .da-row__do .v-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .da-pw__btn, .da-link { transition: color .16s var(--v-ease), background .16s var(--v-ease); }
}
.da-card form[hidden] { display: none; }
/* review fixes: h1 stays left (dir-d centres its hero h1 under 900px); state chips keep their own width;
   the app screenshot is unreadable at phone width, as on dir-d, so it drops out there */
.dir-d .da-h1 { text-align: left; margin-left: 0; }
.da-row__state { justify-items: start; }
@media (max-width: 560px) { .dir-d .da-shot { display: none; } }
.da-check .v-check a { display: inline-block; padding: 4px 0; } /* inline links in the terms checkbox: 24px+ targets */
