/*
 * eDIC login / register page.
 *
 * Sits beside login-esuite.css — it does NOT override login.css, which the
 * shared login page still uses for every other product.
 *
 * Every colour, radius and font in this page comes from the :root block below.
 * Do not write a hex literal anywhere else in this file, in login-edic.ejs, or
 * in the React components this page loads: when Design delivers the real design
 * tokens (D-13) the swap has to be one edit, not a sweep.
 */

:root {
  /* Mostly still eyeballed from the Figma screenshots (2026-09-16). The values
   * marked "Design" below came from Design directly on 2026-09-29 and are
   * exact; the rest are provisional until the full token set lands (D-13). The
   * variable names stay either way. */

  /* brand / actions */
  --edic-primary: #1968D7;        /* Design, 2026-09-29 */
  /* Derived from --edic-primary at the same ratios the previous pair used
   * (x0.85 for hover, 60% toward white for disabled), because Design gave the
   * resting colour only. Replace with real values when they arrive. */
  --edic-primary-hover: #1558B7;
  --edic-primary-disabled: #A3C3EF;
  --edic-on-primary: #FFFFFF;

  /* feedback */
  --edic-error: #E5395A;
  --edic-error-border: #F0788F;
  --edic-error-bg: #FEECEF;       /* Design, 2026-09-29 */
  /* Sampled from Design's exported warning icon rather than guessed — the
   * inline SVG in Chrome.js must match the delivered artwork exactly. */
  --edic-error-icon: #F43F5E;
  --edic-on-error: #FFFFFF;
  --edic-danger: #F4476B;

  /* warning (cancel-registration modal) */
  --edic-warn: #E8961E;
  --edic-warn-bg: #FDF2E2;

  /* surfaces & lines */
  --edic-page-bg: #FFFFFF;
  --edic-surface-muted: #F7F8FA;
  --edic-tab-shadow: 0 1px 2px rgba(11, 21, 36, 0.08); /* reset form: the selected Email / WhatsApp tab */
  --edic-scrim: rgba(11, 21, 36, 0.45);
  --edic-hero-bg: #EEF0FD;
  --edic-border: #E3E6EC;
  --edic-border-focus: var(--edic-primary);

  /* text */
  --edic-text: #0B1524;
  --edic-muted: #6B7280;
  --edic-footer: #9CA3AF;

  /* sign-up v2 progress panel (EDC-7897). Exact, from Figma
   * "onboarding/progress-panel" (663:173392), so these can differ from the
   * provisional --edic-text / --edic-muted / --edic-border above. The washes
   * carry Design's layer opacity in their alpha. */
  --edic-progress-surface: #FFFFFF;
  --edic-progress-text: #000F1F;
  --edic-progress-muted: #435970;
  --edic-progress-line: #E3E8F5;
  --edic-progress-wash-lilac: rgba(204, 163, 227, 0.3);
  --edic-progress-wash-blue: rgba(78, 152, 255, 0.2);
  --edic-progress-wash-pink: rgba(255, 142, 234, 0.3);

  /* Login Banner v2 (RC EDIC_LOGIN_VIEW_V2): the dark panels. Exact, from
   * Figma "Option E" (876:179420; its step list 876:179461). The pulse is the
   * ring Design's animated onboarding SVG draws around the current step. */
  --edic-hero-v2-bg: #0A0D2E;
  --edic-progress-v2-line: rgba(255, 255, 255, 0.08);
  --edic-progress-v2-text: #FFFFFF;
  --edic-progress-v2-muted: #D6DEEC;
  --edic-progress-v2-upcoming: #C8D2E6;
  --edic-progress-v2-upcoming-muted: #A0AFCD;
  --edic-progress-v2-dot: rgba(255, 255, 255, 0.06);
  --edic-progress-v2-connector: #6E7DBE;
  --edic-progress-v2-done: #3B7DFF;
  --edic-progress-v2-current-ring: #96B4FF;
  --edic-progress-v2-current-number: #163AAA;
  --edic-progress-v2-pulse: #8FA8FF;

  /* sign-up v2 register form (EDC-7898). Exact, from Figma C1 / C2 (663:173393,
   * 663:173619). The checklist labels use --edic-progress-muted, the same
   * #435970 the panel uses. */
  --edic-signup-subtle: #667A8E;   /* the X, the Terms line under the form */
  --edic-rule-pending: #A7B8C9;    /* checklist marker, rule not met */
  --edic-rule-met: #2DA06E;        /* checklist check, rule met */

  /* icons */
  --edic-icon-mail: #1669E3;
  --edic-icon-lock: #435970;     /* Design, 2026-09-29 (lock.svg) */

  /* shape */
  --edic-radius-input: 10px;
  --edic-radius-card: 16px;
  --edic-radius-hero: 24px;

  /* type */
  --edic-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* layout (D-14) */
  --edic-form-max: 440px;
  --edic-page-pad: 24px;
}

/* D-14: the hero panel does not fit on a phone. Breakpoint lives here as a
 * media query rather than a variable because CSS cannot interpolate a custom
 * property into a media condition. Keep it in sync with --edic-hero-hide in the
 * plan: 768px. */

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--edic-page-bg);
  color: var(--edic-text);
  font-family: var(--edic-font);
  -webkit-font-smoothing: antialiased;
}

.edic-shell {
  display: flex;
  min-height: 100vh;
  padding: var(--edic-page-pad);
  box-sizing: border-box;
  gap: var(--edic-page-pad);
}

/* ---- left: hero ------------------------------------------------------- */

.edic-hero {
  position: relative;
  flex: 0 0 47%;
  border-radius: var(--edic-radius-hero);
  background: var(--edic-hero-bg);
  overflow: hidden;
}

/* Fallback only. Design's export (2026-09-29) has the wordmark drawn into the
 * art, so there is no separate logo element on this panel any more — this
 * positions the text stand-in that EdicHero renders if the art fails to load,
 * so a broken asset still shows the brand instead of an empty lavender slab. */
.edic-hero__logo {
  position: absolute;
  top: 28px;
  left: 28px;
  height: 32px;
  width: auto;
  z-index: 1;
}

/* The art is 2272x2688 and carries its own background, while the panel is full
 * viewport height at ~47% width — the two aspect ratios never match. cover keeps
 * the panel edge-to-edge with no seam against --edic-hero-bg.
 *
 * `left top`, not `center top`: the wordmark is baked into the top-left corner
 * of the export, and on a window wide enough for cover to scale by height the
 * overflow is horizontal. Centring would then crop the logo off the left edge.
 * Anchoring both axes to the corner the brand lives in means the only thing
 * ever cut is the bottom-right of the illustration, which carries no meaning. */
.edic-hero__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* ---- left: sign-up v2 progress panel (EDC-7897) ----------------------- */

/* Takes .edic-hero's slot (width, clipping, hidden ≤768px) and replaces its
 * look with Figma's card: white, 1px line, 16px radius, 40/48 padding.
 *
 * Column, space-between: logo at the top, the steps in the middle. Figma
 * balances it with an invisible 16px "Need help?" line at the bottom; the
 * ::after box stands in for it so the steps sit where Design put them.
 *
 * `isolation` makes the panel its own stacking context, so the washes'
 * z-index -1 puts them above its background and under the text. */
.edic-progress {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 40px 48px;
  border: 1px solid var(--edic-progress-line);
  border-radius: var(--edic-radius-card);
  background: var(--edic-progress-surface);
  color: var(--edic-progress-text);
  isolation: isolate;
}

.edic-progress::after {
  content: "";
  flex: none;
  height: 16px;
}

/* Design's three blurred ellipses, placed as fractions of their 568x672
 * frame so they keep their spot as the panel's size follows the window.
 *
 * Blur is half the Figma value (140 -> 70, 118.7 -> 59.35): Figma's layer
 * blur spreads about twice as far as CSS blur(). Halved, the rendered panel
 * matches Design's export within 2/255 per channel at eight sample points;
 * the Figma numbers as-is came out visibly paler. */
.edic-progress__wash {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.edic-progress__wash--lilac {
  left: 45.77%;
  top: -29.76%;
  width: 84.51%;
  height: 56.55%;
  background: var(--edic-progress-wash-lilac);
  filter: blur(70px);
}

.edic-progress__wash--blue {
  left: -51.06%;
  top: 74.4%;
  width: 105.63%;
  height: 53.57%;
  background: var(--edic-progress-wash-blue);
  filter: blur(59.35px);
}

.edic-progress__wash--pink {
  left: 59.86%;
  top: 68.45%;
  width: 66.9%;
  height: 44.64%;
  background: var(--edic-progress-wash-pink);
  filter: blur(70px);
}

.edic-progress__logo {
  flex: none;
  align-self: flex-start;
  height: 24px;
  width: auto;
}

.edic-progress__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}

.edic-progress__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--edic-progress-muted);
}

.edic-progress__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 32px 0 0;
  padding: 0;
}

.edic-progress__step {
  display: flex;
  gap: 16px;
}

.edic-progress__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.edic-progress__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--edic-progress-line);
  background: var(--edic-progress-surface);
  color: var(--edic-progress-muted);
  font-size: 13px;
  font-weight: 700;
}

.edic-progress__connector {
  width: 2px;
  height: 36px;
  border-radius: 1px;
  background: var(--edic-progress-line);
}

.edic-progress__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.edic-progress__step-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--edic-progress-muted);
}

.edic-progress__step-subtitle {
  font-size: 14px;
  line-height: 1.4;
  color: var(--edic-progress-muted);
}

/* Done and current read as reached: dark, bold title. */
.edic-progress__step.is-done .edic-progress__step-title,
.edic-progress__step.is-current .edic-progress__step-title {
  font-weight: 700;
  color: var(--edic-progress-text);
}

.edic-progress__step.is-current .edic-progress__dot {
  border: 1px solid var(--edic-primary);
  color: var(--edic-primary);
}

.edic-progress__step.is-done .edic-progress__dot {
  border: 1px solid var(--edic-primary);
  background: var(--edic-primary);
  color: var(--edic-on-primary);
}

/* The line leaving a done step is primary: the path walked so far. */
.edic-progress__step.is-done .edic-progress__connector {
  background: var(--edic-primary);
}

.edic-progress__check {
  display: block;
}

/* ---- left: Login Banner v2 (RC EDIC_LOGIN_VIEW_V2, data.heroV2) -------- */

/* The v2 art carries its own dark background; this only colours whatever the
 * image does not cover (its rounded corners, a slow load). */
.edic-hero--v2 {
  background: var(--edic-hero-v2-bg);
}

/* The dark progress panel (Figma "Option E", 876:179420). Same layout as the
 * light one; the background is Design's animated art instead of the washes,
 * and the step colours change (876:179461). */
.edic-progress--v2 {
  border-color: var(--edic-progress-v2-line);
  background: var(--edic-hero-v2-bg);
  color: var(--edic-progress-v2-text);
}

/* The art (612x725, the panel's own aspect) carries the background, glows,
 * sparkles and slabs, all on the right and bottom, so `right bottom` keeps
 * the slabs in view when cover has to crop. z-index -1 sits it under the text
 * inside the panel's stacking context (isolation on .edic-progress). */
.edic-progress__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  pointer-events: none;
}

.edic-progress--v2 .edic-progress__subtitle {
  color: var(--edic-progress-v2-muted);
}

.edic-progress--v2 .edic-progress__step-title {
  font-weight: 500;
  color: var(--edic-progress-v2-upcoming);
}

.edic-progress--v2 .edic-progress__step-subtitle {
  color: var(--edic-progress-v2-upcoming-muted);
}

.edic-progress--v2 .edic-progress__step.is-done .edic-progress__step-title,
.edic-progress--v2 .edic-progress__step.is-current .edic-progress__step-title {
  font-weight: 700;
  color: var(--edic-progress-v2-text);
}

.edic-progress--v2 .edic-progress__step.is-done .edic-progress__step-subtitle,
.edic-progress--v2 .edic-progress__step.is-current .edic-progress__step-subtitle {
  color: var(--edic-progress-v2-muted);
}

.edic-progress--v2 .edic-progress__dot {
  border: 1.5px solid var(--edic-progress-v2-upcoming-muted);
  background: var(--edic-progress-v2-dot);
  color: var(--edic-progress-v2-upcoming);
}

.edic-progress--v2 .edic-progress__step.is-current .edic-progress__dot {
  position: relative;
  border: 1px solid var(--edic-progress-v2-current-ring);
  background: #FFFFFF;
  color: var(--edic-progress-v2-current-number);
  box-shadow: 0 0 16px rgba(90, 130, 255, 0.9);
}

/* Design's animated SVG: a ring that grows from the current dot and fades. */
.edic-progress--v2 .edic-progress__step.is-current .edic-progress__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--edic-progress-v2-pulse);
  border-radius: 50%;
  opacity: 0;
  animation: edic-progress-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes edic-progress-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .edic-progress--v2 .edic-progress__step.is-current .edic-progress__dot::after {
    animation: none;
  }
}

.edic-progress--v2 .edic-progress__step.is-done .edic-progress__dot {
  border: 0;
  background: var(--edic-progress-v2-done);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(59, 125, 255, 0.45);
}

/* Figma draws the line after a done step #3B7DFF and after the current step
 * #6E7DBE. It has no upcoming-to-upcoming line (it shows step 2 of 3); that
 * one takes the upcoming dot's 6% white. */
.edic-progress--v2 .edic-progress__connector {
  background: var(--edic-progress-v2-dot);
}

.edic-progress--v2 .edic-progress__step.is-current .edic-progress__connector {
  background: var(--edic-progress-v2-connector);
}

.edic-progress--v2 .edic-progress__step.is-done .edic-progress__connector {
  background: var(--edic-progress-v2-done);
}

/* Phone-only stand-in for the panel; the ≤768px block below shows it. */
.edic-progress-compact {
  display: none;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--edic-primary);
  text-align: center;
}

/* ---- right: form column ----------------------------------------------- */

.edic-pane {
  flex: 1 1 53%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 var(--edic-page-pad);
  box-sizing: border-box;
}

.edic-col {
  width: 100%;
  max-width: var(--edic-form-max);
}

/* Only shown once the hero is hidden, so the mobile page keeps its brand. */
.edic-col__logo {
  display: none;
  height: 32px;
  width: auto;
  margin: 0 auto 32px;
}

.edic-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.edic-subtitle {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--edic-muted);
  text-align: center;
}

/* Screens 3 and 4 replace the big title with a screen title plus a back chevron.
 *
 * The chevron is taken OUT of the centring: laid out in flow it would be part of
 * what gets centred, pushing the title text off-centre by half the chevron's
 * width against the inputs and buttons below it — which reads as a mistake even
 * though the row itself is centred. Absolute on the left, the title text centres
 * on the same axis as everything else in the column.
 *
 * The horizontal padding keeps a long title from running underneath the chevron
 * on a narrow screen. */
.edic-screen-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.edic-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--edic-text);
  cursor: pointer;
}

.edic-screen-title .edic-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.edic-back:hover {
  background: var(--edic-hero-bg);
}

/* ---- sign-up v2 register screen (Figma C1 / C2, EDIC_SIGNUP_STEPS_ENABLED) ---- */

/* The X sits in the pane's top-right corner, where C1 draws it (24px from the
 * page edge, the shell's padding). The 32px button is centred on the frame's
 * 20px icon, so the icon lands where the design puts it and the target stays
 * comfortable. */
.edic-close {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--edic-signup-subtle);
  cursor: pointer;
}

.edic-close:hover {
  background: var(--edic-hero-bg);
}

.edic-signup-title {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.edic-subtitle__email {
  color: var(--edic-text);
}

/* C1 puts the Terms / Privacy line where the other screens have the company
 * footer: pinned to the bottom of the pane. */
.edic-legal--footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  color: var(--edic-signup-subtle);
}

@media (max-width: 768px) {
  .edic-close {
    top: 12px;
    right: 12px;
  }

  .edic-signup-title {
    font-size: 28px;
    line-height: 36px;
  }

  /* The pane loses its side padding to the absolute box: give it back, and lift the line
   * off the edge like the company footer on the other screens. */
  .edic-legal--footer {
    bottom: 24px;
    padding: 0 20px;
  }
}

/* Sits between the subtitle and the first field on every screen that uses it.
   The margin is on TOP, not the bottom: the bottom gap comes from the
   adjacency rule below instead, because `.edic-field` carries its own 32px and
   the two used to stack into a 52px trench that pushed the message away from
   the controls it refers to — while leaving it glued to the subtitle above. */
.edic-notice {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--edic-radius-input);
  background: var(--edic-error-bg);
  color: var(--edic-error);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Design's warning mark, drawn inline in Chrome.js rather than loaded as the
   512px PNG they exported: at 16px on screen the PNG would be a 20KB request
   for something the browser then has to downscale, and it would blur on a
   retina zoom. `flex: none` keeps it from being squeezed when the message wraps
   to two or three lines, which the Google refusal always does. */
.edic-notice__icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--edic-error-icon);
}

/* Knocked out of the disc. A token rather than a literal white so the mark
   still works if the notice ever moves onto a dark surface. */
.edic-notice__icon-glyph {
  fill: var(--edic-on-error);
}

/* The trace id, printed after the message. Support asks for it on every
   report; the messages above it are deliberately identical for every cause, so
   this is the only thing distinguishing one failure from another. Monospace
   because it is 32 hex characters that someone will read out or retype, and
   `user-select: all` so one click takes the whole id and no neighbouring
   punctuation. */
.edic-notice__trace {
  margin-left: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  opacity: 0.85;
  overflow-wrap: anywhere;
  user-select: all;
}

/* Equal air above and below the notice. Without this the field's own 32px
   applies unchanged and the spacing reads lopsided. Scoped to the adjacency so
   a field that follows anything else keeps its normal 32px. */
.edic-notice + .edic-field {
  margin-top: 20px;
}

.edic-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--edic-muted);
  text-align: center;
}

.edic-legal a {
  color: inherit;
  text-decoration: underline;
}

.edic-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--edic-footer);
}

/* ---- form primitives --------------------------------------------------- */

.edic-field {
  margin-top: 32px;
}

.edic-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--edic-text);
  background: var(--edic-page-bg);
  border: 1px solid var(--edic-border);
  border-radius: var(--edic-radius-input);
  outline: 0;
}

.edic-input::placeholder {
  color: var(--edic-muted);
}

.edic-input:focus {
  border-color: var(--edic-border-focus);
}

/* Password field with the reveal control (Figma). The input keeps its own
   styling; only the right padding changes, so the typed value never runs under
   the eye. */
.edic-password {
  position: relative;
}

.edic-input--with-toggle {
  padding-right: 48px;
}

.edic-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--edic-muted);
  cursor: pointer;
}

.edic-password__toggle:hover:not(:disabled) {
  color: var(--edic-text);
}

/* Visible focus ring: this control is reachable by keyboard on purpose, so it
   has to be findable without a mouse. */
.edic-password__toggle:focus-visible {
  outline: 2px solid var(--edic-border-focus);
  outline-offset: 1px;
}

.edic-password__toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.edic-input--error {
  border-color: var(--edic-error-border);
}

.edic-input:disabled {
  background: var(--edic-surface-muted);
  color: var(--edic-muted);
  cursor: not-allowed;
}

.edic-error-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--edic-error);
}

.edic-help-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--edic-muted);
}

.edic-btn {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  margin-top: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--edic-radius-input);
  border: 1px solid transparent;
  cursor: pointer;
}

.edic-btn--primary {
  background: var(--edic-primary);
  color: var(--edic-on-primary);
}

.edic-btn--primary:hover:not(:disabled) {
  background: var(--edic-primary-hover);
}

.edic-btn--primary:disabled {
  background: var(--edic-primary-disabled);
  cursor: not-allowed;
}

.edic-btn--outline {
  background: var(--edic-page-bg);
  color: var(--edic-text);
  border-color: var(--edic-border);
}

.edic-btn--outline:hover:not(:disabled) {
  background: var(--edic-surface-muted);
}

/* Method rows on screen 3: icon pinned left, label optically centred. The
 * existing Button.js renders its icon absolutely positioned, which is why these
 * rows do not reuse it. */
.edic-method {
  justify-content: center;
}

.edic-method__icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
}

.edic-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--edic-border);
}

.edic-spinner {
  width: 20px;
  height: 20px;
  animation: edic-spin 0.9s linear infinite;
}

@keyframes edic-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- verification card (screen 2) -------------------------------------- */

.edic-card {
  margin-top: 32px;
  padding: 32px 28px;
  border: 1px solid var(--edic-border);
  border-radius: var(--edic-radius-card);
  text-align: center;
}

.edic-card__icon {
  color: var(--edic-icon-mail);
  margin-bottom: 20px;
}

.edic-card__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--edic-muted);
}

.edic-card__lead strong {
  display: block;
  color: var(--edic-text);
}

.edic-otp {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.edic-otp input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-family: inherit;
  font-size: 20px;
  color: var(--edic-text);
  border: 1px solid var(--edic-border);
  border-radius: var(--edic-radius-input);
  outline: 0;
}

.edic-otp input:focus {
  border-color: var(--edic-border-focus);
}

.edic-otp--error input {
  border-color: var(--edic-error-border);
}

.edic-card__meta {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--edic-muted);
}

.edic-link {
  color: var(--edic-primary);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.edic-link:disabled {
  color: var(--edic-muted);
  cursor: default;
}

/* ---- D-14: hero is dropped, logo moves above the form ------------------ */

@media (max-width: 768px) {
  .edic-shell {
    padding: 0;
  }

  .edic-hero {
    display: none;
  }

  .edic-pane {
    flex: 1 1 100%;
    padding: 32px 20px 72px;
  }

  .edic-col__logo {
    display: block;
  }

  .edic-progress-compact {
    display: block;
  }

  .edic-title {
    font-size: 28px;
  }

  .edic-otp input {
    width: 44px;
    height: 48px;
  }
}

/* ---- Login Banner v2: phones, tablets and foldables get the single column (IRT-2349)
 *
 * The v2 art is one fixed-shape picture drawn with `cover` in a panel that is
 * 47% of the row at the window's full height. On a touch device of any size
 * (a Galaxy Fold opened, an iPad Pro 13 either way round) and in narrow,
 * portrait or near-square windows, that panel lost most of the art or put the
 * top slab over the step text. While the key is on, those screens use the
 * phone layout of D-14 instead, logo and step line above the form:
 * - (pointer: coarse): the main input is a finger, whatever the screen size;
 * - (max-width: 1023.98px): a narrow window (the .98 closes the gap at
 *   fractional widths under zoom);
 * - (max-aspect-ratio: 4/3): portrait, square, 4:3 and 5:4 windows.
 * Desktop windows wider than 4:3 keep the panel exactly as above. Key off:
 * unchanged (every rule needs a --v2 class). */
@media (max-width: 1023.98px), (max-aspect-ratio: 4/3), (pointer: coarse) {
  .edic-hero--v2,
  .edic-progress--v2 {
    display: none;
  }

  /* The pane always follows the panel in .edic-shell, so siblings reach the
   * D-14 fallbacks without :has() (older Firefox and Chrome would drop it). */
  .edic-hero--v2 ~ .edic-pane .edic-col__logo,
  .edic-progress--v2 ~ .edic-pane .edic-col__logo {
    display: block;
  }

  /* The text stand-in keeps its own centring (see .edic-col__logo.edic-wordmark). */
  .edic-hero--v2 ~ .edic-pane .edic-col__logo.edic-wordmark,
  .edic-progress--v2 ~ .edic-pane .edic-col__logo.edic-wordmark {
    display: flex;
  }

  .edic-progress--v2 ~ .edic-pane .edic-progress-compact {
    display: block;
  }
}

/* ---- password rules checklist (screen 5) ------------------------------- */

.edic-rules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--edic-muted);
}

.edic-rules li.is-ok {
  color: var(--edic-primary);
}

/* Sign-up v2 (Figma C2): grey labels, and a green check on a rule that is met. */
.edic-rules--v2 li,
.edic-rules--v2 li.is-ok {
  color: var(--edic-progress-muted);
}

.edic-rules--v2 li span {
  color: var(--edic-rule-pending);
}

.edic-rules--v2 li.is-ok span {
  color: var(--edic-rule-met);
}

/* ---- reset password (Sign-up v2 follow-up, Figma 767:174590) ------------- */

/* Email / WhatsApp switch above the field (Figma 2, 2b): a muted track, the
 * selected tab raised in white. */
.edic-tabs {
  display: flex;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  background: var(--edic-surface-muted);
  border-radius: var(--edic-radius-input);
}

.edic-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--edic-muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.edic-tab.is-active {
  color: var(--edic-primary);
  background: var(--edic-page-bg);
  box-shadow: var(--edic-tab-shadow);
}

.edic-tab:disabled {
  cursor: default;
}

/* The field sits closer to the tabs than to a subtitle. */
.edic-tabs + .edic-field--reset {
  margin-top: 16px;
}

.edic-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--edic-text);
}

/* Phone number (Figma 2b): one box, the dial code as text with a transparent
 * native picker over it, then the number. Borders follow .edic-input. */
.edic-phone {
  display: flex;
  align-items: center;
  background: var(--edic-page-bg);
  border: 1px solid var(--edic-border);
  border-radius: var(--edic-radius-input);
}

.edic-phone:focus-within {
  border-color: var(--edic-border-focus);
}

.edic-phone--error {
  border-color: var(--edic-error-border);
}

.edic-phone__dial {
  position: relative;
  padding: 14px 0 14px 16px;
  font-size: 15px;
  color: var(--edic-text);
}

.edic-phone__dial select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.edic-phone__number {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 14px 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--edic-text);
  background: none;
  border: 0;
  outline: 0;
}

.edic-phone__number::placeholder {
  color: var(--edic-muted);
}

/* Code screen (Figma 4, 4b): the card holds a plain code field, typed left to
 * right, rather than the sign-up screen's digit boxes. */
.edic-card--reset .edic-input {
  text-align: left;
}

.edic-card--reset .edic-btn {
  margin-top: 16px;
}

/* New password (Figma 6): the account on its own line under the sentence. */
.edic-subtitle__email--block {
  display: block;
}

/* Password updated (Figma 8): the success art over a smaller title. */
.edic-done__art {
  display: block;
  margin: 0 auto;
}

.edic-done__title {
  margin: 20px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

/* "Back to sign in" is a link drawn as the primary button. */
.edic-btn--reset-done {
  margin-top: 24px;
  text-decoration: none;
}

/* ---- cancel-registration modal (screen 5) ------------------------------ */

.edic-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--edic-scrim);
  z-index: 10;
}

.edic-modal__card {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 20px;
  border-radius: var(--edic-radius-card);
  background: var(--edic-page-bg);
  text-align: center;
}

.edic-modal__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--edic-warn-bg);
  color: var(--edic-warn);
  font-weight: 800;
}

.edic-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.edic-modal__body {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--edic-muted);
}

.edic-modal__actions {
  display: flex;
  gap: 12px;
}

.edic-modal__actions .edic-btn {
  margin-top: 0;
}

.edic-btn--danger {
  background: var(--edic-danger);
  color: var(--edic-on-primary);
}

.edic-btn--danger:hover:not(:disabled) {
  filter: brightness(0.95);
}

/* ---- account-check modal (Sign-up v2 S2 757:175461, S3 652:172075) ----- */

.edic-modal__card--art {
  max-width: 400px;
  padding: 0;
  overflow: hidden;
}

.edic-modal__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  background: #F4EFFF;           /* Design: the illustration's backdrop */
}

.edic-modal__content {
  padding: 24px;
}

.edic-modal__card--art .edic-modal__title {
  font-size: 24px;
  line-height: 32px;
}

.edic-modal__card--art .edic-modal__body {
  font-size: 16px;
  line-height: 24px;
}

.edic-modal__strong {
  color: var(--edic-text);
}

.edic-modal__actions--stacked {
  flex-direction: column;
  gap: 8px;
}

/* ---- placeholder for brand art that has not been delivered yet --------- */

/* Stands in for the logo image until Design ships it. Sized to the slot it
 * replaces so the layout does not shift when the real asset arrives. */
.edic-wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--edic-text);
}

.edic-col__logo.edic-wordmark {
  display: none;
  justify-content: center;
}

@media (max-width: 768px) {
  .edic-col__logo.edic-wordmark {
    display: flex;
  }
}

/* ---- Google Identity Services row (screen 3) --------------------------- */

/* Google renders this button itself and its internal markup is not ours to
 * restyle — brand terms govern the mark's size and clear space. All we do is
 * centre it and give it the same vertical rhythm as the rows beside it. */
/* The Google row is a form so it can POST; the form must not introduce any
 * box of its own, or the button inside it stops matching the sibling rows
 * that are plain buttons in the same flex column. */
.edic-google-form {
  display: contents;
}
