/* Account pages (login, registration, recovery, email screens, errors): one station on the red line, the form at the stop. */
:root {
  --col: 96px;
  --x: 32px;
  --lw: 18px;
  --dot: 24px;
  --dy: 26px;
  --end: 44px;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
.acct { flex: 1; width: 100%; padding-top: 48px; padding-bottom: 72px; }

/* the station: dot beside the heading, the line running down past the form to the end bar */
.acct-stop { position: relative; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); padding-bottom: 40px; }
.acct-stop::before { content: ""; position: absolute; left: calc(var(--x) - var(--lw) / 2); width: var(--lw); top: var(--dy); bottom: 0; background: var(--red); }
/* you are here: the current station is filled, ringed in white */
.acct-stop .dot {
  position: absolute; z-index: 1; left: calc(var(--x) - var(--dot) / 2); top: calc(var(--dy) - var(--dot) / 2);
  width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 6px #fff;
}
.acct-head, .acct-grid { grid-column: 2; }
.acct-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 24px; row-gap: 4px; margin-bottom: 28px; }
.acct h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.fig { font-size: 22px; font-weight: 700; color: var(--navy-2); }

.acct-grid { display: grid; grid-template-columns: minmax(0, 520px) 340px; gap: 40px; align-items: start; }
.acct-main { min-width: 0; }

.acct-end { position: relative; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); align-items: center; min-height: 48px; padding-top: 20px; }
.acct-end::before { content: ""; position: absolute; left: calc(var(--x) - var(--lw) / 2); width: var(--lw); top: 0; height: var(--end); background: var(--red); }
.acct-end .bar { position: absolute; z-index: 1; left: calc(var(--x) - 28px); top: calc(var(--end) - 7px); width: 56px; height: 14px; border-radius: 2px; background: var(--navy); }
.acct-end p { grid-column: 2; font-size: 16px; color: var(--navy-2); }

.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.label-row a { font-size: 16px; }
.plate-foot { font-size: 16px; color: var(--navy-2); padding-top: 18px; border-top: 1px solid var(--rule); }
.err { font-size: 14px; font-weight: 700; color: var(--red-text); }
/* the form plate, fields, notices: see cabinet.css, shared with the cabinet */
.plate.form, .acct .plate { padding: 32px; }
.acct-main > .notice, .acct-main > .alert { margin-bottom: 16px; }

.acct .legend { align-self: start; }

@media (max-width: 1040px) {
  .acct-grid { grid-template-columns: minmax(0, 560px); }
}

@media (max-width: 760px) {
  :root { --col: 40px; --x: 12px; --lw: 10px; --dot: 18px; --dy: 17px; --end: 36px; }
  .acct { padding-top: 32px; padding-bottom: 48px; }
  .acct-head { margin-bottom: 20px; }
  .plate.form, .acct .plate { padding: 20px 18px; gap: 18px; }
  .plate .sign { justify-self: stretch; justify-content: center; }
  .acct-end .bar { left: calc(var(--x) - 16px); width: 32px; height: 10px; top: calc(var(--end) - 5px); }
  .label-row { flex-wrap: wrap; }
}
