/* ---------------------------------------------------------------------------
 * Sign-in card controls and colour tokens for the coastal login.
 *
 * Tru3Meta builds these from its design tokens and utility classes
 * (converse-market at f48b214: src/app/globals.css, components/ui/input.tsx,
 * components/ui/button.tsx, components/auth/auth-form.tsx). They are written
 * out here as plain CSS with the same values, so the page needs no build step.
 *
 * Everything sits in one cascade layer: coast_scene.css is unlayered and so
 * always wins over this file, exactly as it wins over the utilities in
 * Tru3Meta. Change wording, fields and links in login.html, not here.
 *
 * Served as a plain file at /static/coast/coast_auth.css (server/static_assets.py);
 * pages link it through {{ asset(...) }} in coast_base.html. Nothing here is
 * a template, so no value from a page can ever reach it.
 * ------------------------------------------------------------------------ */

/* Stand-ins used until Manrope and Outfit arrive, and for the few characters they lack (the arrow in
   "Back to home"). Tru3Meta's font loader generates the same two faces with the same adjustments. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  ascent-override: 103.31%;
  descent-override: 29.07%;
  line-gap-override: 0%;
  size-adjust: 103.19%;
}

@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial");
  ascent-override: 100.18%;
  descent-override: 26.05%;
  line-gap-override: 0%;
  size-adjust: 99.82%;
}

@layer coast-ui {
  :root {
    color-scheme: light;
    --background: #f6f7fc;
    --surface: #ffffff;
    --surface-raised: #f1f3fb;
    --foreground: #0e1220;
    --muted-foreground: #5b6480;
    --border: #e3e7f3;
    --accent: #4353ff;
    --danger: #ef4444;
    --ok: #15803d;
    --warn: #b45309;
    --shadow-1: color-mix(in srgb, #2a3170 7%, transparent);

    --color-border: var(--border);
    --brand-orange: #fd653f;
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --font-outfit: "Outfit", "Outfit Fallback";
    --font-manrope: "Manrope", "Manrope Fallback";
  }

  /* The card follows the device's light or dark setting; the scene does not. */
  @media (prefers-color-scheme: dark) {
    :root {
      color-scheme: dark;
      --background: #080a14;
      --surface: #0f1220;
      --surface-raised: #161a2b;
      --foreground: #eef0fa;
      --muted-foreground: #99a1bd;
      --border: #242a41;
      --accent: #7c8bff;
      --danger: #f87171;
      --ok: #4ade80;
      --warn: #fbbf24;
      --shadow-1: color-mix(in srgb, #000000 40%, transparent);
    }
  }

  /* --- Base ----------------------------------------------------------------- */

  *,
  ::before,
  ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
    border-color: var(--border);
  }

  html {
    height: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
  }

  body {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: "ss01" 1, "cv02" 1, "cv03" 1, "cv04" 1;
    text-rendering: optimizeLegibility;
  }

  h1,
  h2 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    text-decoration: inherit;
  }

  b {
    font-weight: bolder;
  }

  svg {
    display: block;
  }

  button,
  input {
    font: inherit;
    font-feature-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }

  ::placeholder {
    opacity: 1;
  }

  [hidden] {
    display: none !important;
  }

  button,
  a,
  input {
    -webkit-tap-highlight-color: transparent;
  }

  button,
  a {
    transition-property: color, background-color, border-color, box-shadow, opacity, transform;
    transition-duration: 200ms;
    transition-timing-function: var(--ease-soft);
  }

  button:not(:disabled):active,
  a:active {
    transform: translateY(0.5px);
  }

  ::selection {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    button:active,
    a:active {
      transform: none;
    }
  }

  /* --- Header ---------------------------------------------------------------- */

  .ca-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
    outline: none;
  }

  .ca-lockup:focus-visible,
  .ca-back:focus-visible {
    box-shadow: 0 0 0 2px #102d53;
  }

  /* The Andal lockup (brand concept, 11 Nov 2026): a white "a" on an ink circle for the avatar, its inside space
     filled coral (static/brand/andal-mark.svg, also the browser-tab icon), and the
     wordmark in Outfit with a small coral full stop. Ink 102D53, coral FF6947. */
  .ca-logo {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
  }

  .ca-wordmark {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-family: var(--font-outfit), sans-serif;
    font-size: 25px;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #102d53;
  }

  .ca-wordmark i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 3px;
    border-radius: 50%;
    background: #ff6947;
  }

  .ca-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #102d53;
    outline: none;
  }

  @media (hover: hover) {
    .ca-back:hover {
      color: rgb(16 45 83 / 0.7);
    }
  }

  /* English / Bahasa Melayu switch (public_l10n.py), between the lockup and "Back to home". Each link names its own
     language in that language; the current one is marked with aria-current and an underline, not colour alone. */
  .ca-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 14px;
    line-height: 20px;
  }

  .ca-lang-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 3px;
    color: #102d53;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
  }

  .ca-lang-link[aria-current="true"] {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #d83b18;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  .ca-lang-link:focus-visible {
    box-shadow: 0 0 0 2px #102d53;
  }

  @media (hover: hover) {
    .ca-lang-link:hover {
      color: rgb(16 45 83 / 0.7);
    }
  }

  @media (max-width: 520px) {
    .ca-lang { gap: 0; font-size: 13px; }
    .ca-lang-link { padding-inline: 6px; }
  }

  /* On a phone the header holds the lockup and the switch; the lockup already links home, so "Back to home" steps aside. */
  @media (max-width: 599px) {
    .coast-auth-header:has(.ca-lang) .ca-back { display: none; }
  }

  /* --- Story ----------------------------------------------------------------- */

  .ca-story-title {
    font-size: clamp(48px, 4.4vw, 66px);
    color: #102d53;
  }

  .ca-story-text {
    margin-top: 20px;
    max-width: 42ch;
    font-size: 17px;
    line-height: 1.65;
    color: #345879;
    text-wrap: pretty;
  }

  /* --- Card ------------------------------------------------------------------ */

  .coast-auth-card {
    background: var(--surface);
    color: var(--foreground);
  }

  .coast-auth-description {
    color: var(--muted-foreground);
    text-wrap: pretty;
  }

  .ca-field {
    display: grid;
    gap: 6px;
  }

  /* The code picker takes the width of its longest country name, so "Malaysia" and
     "Singapore" are never cut; the number gets the rest. Where the card is too narrow
     for both on one line (most phones), the picker sits above the number. */
  .ca-phone-field {
    container-type: inline-size;
  }

  .ca-phone-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  @container (width < 340px) {
    .ca-phone-row {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .ca-label {
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: var(--foreground);
  }

  .ca-input {
    width: 100%;
    height: 48px;
    padding-inline: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--foreground);
    font-size: 16px;
    line-height: 24px;
    box-shadow: 0 1px 2px var(--shadow-1);
    outline: none;
    transition-property: color, background-color, border-color, opacity, box-shadow;
    transition-duration: 200ms;
    transition-timing-function: var(--ease-soft);
  }

  .ca-input::placeholder {
    color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
  }

  /* Focus: a coral border and a soft coral ring, in the card's own colour. */
  .ca-input:focus {
    border-color: color-mix(in oklab, #ff6947 60%, var(--border));
    box-shadow:
      0 0 0 4px color-mix(in oklab, #ff6947 16%, transparent),
      0 1px 2px var(--shadow-1);
  }

  /* The country picker (and Indonesia's time-zone picker): one chevron of our own instead of the system's, which
     differs by browser. */
  .ca-input.ca-country,
  .ca-input.ca-zone {
    appearance: none;
    -webkit-appearance: none;
    padding-inline: 12px 34px;
    /* Room for "🇸🇬 +65 Singapore" whichever font and emoji set the device draws it in. */
    min-width: 11.75em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b6480' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    white-space: nowrap;
    cursor: pointer;
  }

  @media (prefers-color-scheme: dark) {
    .ca-input.ca-country,
    .ca-input.ca-zone {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2399a1bd' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    }
  }

  /* Indonesia's time-zone picker fills the card (its zone names are long) and shows only while Indonesia is the
     selected country. A browser without :has() shows it always, which is harmless: the server reads the zone only
     for a +62 number (webapp.signup_timezone). */
  .ca-input.ca-zone {
    min-width: 0;
    text-overflow: ellipsis;
  }

  form:not(:has(#phone-country option[value="ID"]:checked)) .ca-id-zone {
    display: none;
  }

  /* One-time codes: centred and spaced so six digits read as six digits. */
  .ca-code {
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3em;
    font-variant-numeric: tabular-nums;
  }

  .ca-hint {
    font-size: 12px;
    line-height: 20px;
    color: var(--muted-foreground);
  }

  .ca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding-inline: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: -0.006em;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
  }

  .ca-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
  }

  /* Tru3Meta's submit button shows no focus mark; this one does, for keyboard use. */
  .ca-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .ca-btn svg {
    transition: transform 200ms var(--ease-soft);
  }

  @media (hover: hover) {
    .ca-btn:hover svg {
      transform: translateX(2px);
    }
  }

  /* The second way in (a code by email) uses the quiet button of the same system. */
  .ca-btn-quiet {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--foreground);
    box-shadow: 0 1px 2px var(--shadow-1);
  }

  @media (hover: hover) {
    .ca-btn-quiet:hover {
      background: var(--surface-raised);
      color: var(--accent);
    }
  }

  .ca-form-alt {
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .ca-alert {
    padding: 10px 14px;
    border: 1px solid color-mix(in oklab, var(--danger) 25%, transparent);
    border-radius: 8px;
    background: color-mix(in oklab, var(--danger) 8%, transparent);
    color: var(--danger);
    font-size: 13px;
    line-height: 20px;
  }

  /* A plain notice, not an error (for example "this number already has an assistant"). */
  .ca-alert.ok {
    border-color: var(--border);
    background: var(--surface-raised);
    color: var(--foreground);
  }

  .ca-foot {
    margin-top: auto;
  }

  .coast-auth-switch {
    font-size: 14px;
    line-height: 20px;
    color: var(--muted-foreground);
  }

  .ca-link {
    border-radius: 4px;
    font-weight: 600;
    color: var(--foreground);
    text-decoration-line: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
    outline: none;
    transition-property: color, background-color, border-color, text-decoration-color;
  }

  @media (hover: hover) {
    .ca-link:hover {
      text-decoration-color: var(--foreground);
    }
  }

  .ca-link:focus-visible {
    box-shadow: 0 0 0 2px var(--accent);
  }

  .ca-divider {
    height: 1px;
    margin-block: 16px;
    background: var(--border);
  }

  .coast-auth-assurance {
    color: var(--muted-foreground);
  }

  .coast-auth-assurance svg {
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* --- Pages before sign-in (/start ...) ------------------------------------
   * The same card carrying more: a step bar, short lists, choices and plans.
   * Built only from the design's tokens (border, raised surface, accent and
   * the card's orange edge), so nothing new enters the palette.
   * ------------------------------------------------------------------------ */

  .ca-steps {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 20px;
    list-style: none;
  }

  .ca-steps li {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
    color: var(--muted-foreground);
  }

  .ca-steps li::before {
    content: "";
    height: 4px;
    border-radius: 999px;
    background: var(--border);
  }

  .ca-steps li.done::before,
  .ca-steps li.now::before {
    background: #ff6947;
  }

  .ca-steps li.now {
    color: var(--foreground);
  }

  .ca-steps span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ca-section {
    margin-top: 20px;
  }

  .ca-section-title {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted-foreground);
  }

  .ca-list {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    list-style: none;
  }

  .ca-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .ca-ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-raised);
    box-shadow: inset 0 0 0 1px var(--border);
    color: var(--accent);
  }

  .ca-list b,
  .ca-callout b {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--foreground);
  }

  .ca-list small {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--muted-foreground);
  }

  .ca-points {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 19px;
    color: var(--muted-foreground);
  }

  .ca-points li::marker {
    color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
  }

  .ca-points b {
    color: var(--foreground);
  }

  .ca-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-raised);
    box-shadow: inset 0 0 0 1px var(--border);
    font-size: 13px;
    line-height: 19px;
    color: var(--muted-foreground);
  }

  .ca-callout > svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent);
  }

  .ca-callout.warn > svg {
    color: var(--warn);
  }

  .ca-fieldset {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .ca-choices {
    display: grid;
    gap: 8px;
  }

  .ca-choices.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ca-choice,
  .ca-check,
  .ca-plan {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--foreground);
    box-shadow: 0 1px 2px var(--shadow-1);
    cursor: pointer;
    transition-property: border-color, box-shadow, background-color;
    transition-duration: 200ms;
    transition-timing-function: var(--ease-soft);
  }

  .ca-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
  }

  .ca-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 19px;
  }

  .ca-choice input,
  .ca-check input,
  .ca-plan input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
  }

  .ca-check input {
    margin-top: 1px;
  }

  .ca-choice:has(input:checked),
  .ca-check:has(input:checked),
  .ca-plan:has(input:checked) {
    border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent);
  }

  .ca-choice:has(input:focus-visible),
  .ca-check:has(input:focus-visible),
  .ca-plan:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  @media (hover: hover) {
    .ca-choice:hover,
    .ca-check:hover,
    .ca-plan:hover {
      border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
    }
  }

  .ca-plans {
    display: grid;
    gap: 10px;
  }

  .ca-plan {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 2px;
    padding: 14px;
    border-radius: 10px;
  }

  .ca-plan input {
    grid-row: span 2;
    margin-top: 2px;
  }

  .ca-plan-name {
    font-size: 15px;
    line-height: 22px;
    font-weight: 650;
  }

  .ca-plan-price {
    white-space: nowrap;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .ca-plan-price small,
  .ca-plan-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-foreground);
  }

  .ca-plan-meta {
    grid-column: 2 / -1;
    font-size: 13px;
    line-height: 19px;
    font-weight: 400;
  }

  .ca-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    font-size: 14px;
    line-height: 20px;
  }

  button.ca-link {
    cursor: pointer;
  }

  .ca-line {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: inset 0 0 0 1px var(--border);
  }

  .ca-line-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }

  .ca-line-number {
    white-space: nowrap;
    font-family: var(--font-outfit), var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--foreground);
  }

  .ca-line .ca-hint b {
    color: var(--foreground);
  }

  .ca-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid color-mix(in oklab, currentColor 30%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, currentColor 8%, var(--surface));
    white-space: nowrap;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    color: var(--warn);
  }

  .ca-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
  }

  .ca-pill.ok {
    color: var(--ok);
  }

  .ca-pill.bad {
    color: var(--danger);
  }

  .coast-auth-card .coast-auth-submit + .ca-btn-quiet,
  .coast-auth-card .ca-stack {
    margin-top: 12px;
  }

  .ca-stack {
    display: grid;
    gap: 12px;
  }

  /* Optional personal details on the quick sign-up: a native disclosure, closed
     unless something was typed in it, so the required fields and the button stay
     close together on a phone. */
  .ca-disclosure {
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--border);
  }

  .ca-disclosure > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    list-style: none;
    outline: none;
  }

  .ca-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .ca-disclosure > summary::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: 0 3px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
    transition: transform 150ms ease;
  }

  .ca-disclosure[open] > summary::before {
    transform: rotate(45deg);
  }

  .ca-disclosure > summary:focus-visible {
    box-shadow: 0 0 0 2px var(--accent);
  }

  .ca-disclosure-body {
    display: grid;
    gap: 12px;
    padding: 0 12px 12px;
  }

  .ca-guide-note {
    display: block;
    margin-top: 10px;
  }

  /* --- Taller cards ----------------------------------------------------------
   * The design's card holds one short form. Ours grows past that when a second
   * way in is offered, or when a message sits above the button. These margins
   * keep such a card clear of the pause button at the bottom right, so a short
   * screen scrolls a little instead of the button covering the card. Each value
   * tops the page's own bottom padding up to the button's 52px lane.
   *
   * The rules ask what the card holds, not which field it is, so a form or a
   * message added in login.html is covered without touching this file. Pages
   * longer than the design's card (the sign-up steps) set long = true.
   * ------------------------------------------------------------------------ */

  .coast-auth-card:has(form ~ form),
  .coast-auth-card:has(.ca-alert),
  .is-long .coast-auth-card {
    margin-bottom: 8px;
  }

  @media (width < 1024px) {
    .coast-auth-card:has(form ~ form),
    .coast-auth-card:has(.ca-alert),
    .is-long .coast-auth-card {
      margin-bottom: 28px;
    }
  }

  @media (width < 480px) {
    .coast-auth-card:has(form ~ form),
    .coast-auth-card:has(.ca-alert),
    .is-long .coast-auth-card {
      margin-bottom: 36px;
    }
  }

  @media (height <= 740px) {
    .coast-auth-card:has(form ~ form),
    .coast-auth-card:has(.ca-alert),
    .is-long .coast-auth-card {
      margin-bottom: 40px;
    }
  }

  @media (width < 640px) and (height <= 620px) {
    .coast-auth-card:has(form ~ form),
    .coast-auth-card:has(.ca-alert),
    .is-long .coast-auth-card {
      margin-bottom: 52px;
    }
  }
}
