/* able-runtime.css — bundled blueprint chrome CSS for SSR first-paint. */

/* able-login */

able-login {
  display: block;
  width: 100%;
  justify-self: stretch;
  min-height: 100vh;
  background: var(--login-bg, var(--surface-base, #f5f7fa));
  color: var(--text-primary, #0f172a);
}
.alogin-shell {
  width: 100%;            /* explicit; was implicit-inherited */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.alogin-card {
  width: 100%;
  /* clamp to keep mobile gap + cap desktop width; was 420px fixed */
  max-width: var(--login-card-max-width, min(440px, calc(100vw - 32px)));
  padding: var(--login-card-padding, clamp(20px, 4vw, 32px));
  background: var(--login-card-bg, var(--surface-card, #ffffff));
  border-radius: var(--login-card-radius, 12px);
  box-shadow: var(--login-card-shadow, 0 10px 40px rgba(0, 0, 0, 0.08));
  box-sizing: border-box;
}
.alogin-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.alogin-brand-img {
  /* viewport-aware logo sizing — was fixed 56px */
  max-height: clamp(48px, 8vw, 72px);
  max-width: 240px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}
.alogin-title {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--text-primary, #0f172a);
}
.alogin-form { display: flex; flex-direction: column; gap: 14px; }
.alogin-form.is-hidden { display: none; }
.alogin-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.alogin-label-text {
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  opacity: 0.85;
}
.alogin-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  min-height: 44px;       /* WCAG 2.2 AA touch target — was 39px */
  border: 1px solid var(--login-input-border, var(--border-default, #cbd5e1));
  border-radius: var(--login-input-radius, 8px);
  /* 16px MINIMUM — anything smaller triggers iOS Safari's auto-zoom on focus,
   * which causes a jarring viewport jump on every login. */
  font-size: 16px;
  line-height: 1.4;
  background: var(--surface-card, #ffffff);
  color: var(--text-primary, #0f172a);
  transition: border-color 120ms, box-shadow 120ms;
}
.alogin-input:focus {
  outline: none;
  border-color: var(--login-button-bg, var(--accent, #2563eb));
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.alogin-input-otp {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 24px;
  letter-spacing: 8px;
  text-align: center;
}
/* Login-verification step. Deliberately built from the SAME tokens as the rest
 * of the card (--login-*, --text-primary, --border-default) so every tenant's
 * existing overrides reach it with no per-app work: this blueprint ships to the
 * whole fleet and must look native in all of them. */
/* The inner <form> deliberately does NOT reuse .alogin-form: it is nested
 * inside the block that owns show/hide, and a tenant theme that puts spacing on
 * .alogin-form would apply it twice. */
.alogin-verify-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.alogin-verify-target {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary, #0f172a);
  overflow-wrap: anywhere;   /* a long masked address must not widen the card */
}
.alogin-verify-note {
  margin: 0 0 6px 0;
  /* The blueprint's prose tier (.alogin-hint), not its metadata tier: this line
   * is what pre-empts the support call from the ~1-in-4 Outlook inbox-placement
   * miss, so it has to be read, not merely present. */
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary, #0f172a);
  opacity: 0.8;
}
.alogin-verify-note.is-hidden { display: none; }
.alogin-verify-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  min-height: 1em;           /* reserve the line so a status never shifts layout */
  color: var(--text-primary, #0f172a);
  opacity: 0.75;
}
.alogin-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
/* The back link is a different KIND of action from the resend/switch row —
 * give it its own breathing room instead of stacking it flush underneath. */
[data-verification-root] .alogin-back { margin-top: 14px; }
.alogin-verify-actions .alogin-chip { flex: 1 1 auto; }
.alogin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  min-height: 44px;          /* WCAG 2.2 AA touch target */
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: var(--login-input-radius, 8px);
  background: var(--surface-card, #ffffff);
  color: var(--login-link-color, var(--accent, #2563eb));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
}
/* Hover-gated: without the guard Android leaves the chip stuck in its hover
 * paint after a tap. (The older rules in this file predate the convention;
 * they are left alone rather than re-skinned fleet-wide from this change.) */
@media (hover: hover) and (pointer: fine) {
  .alogin-chip:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--text-primary, #94a3b8);
  }
}
.alogin-chip:disabled {
  /* Not 0.55: the label IS the state ("Resend in 12s"), so it must stay
   * readable while dimmed. */
  opacity: 0.72;
  cursor: not-allowed;
  color: var(--text-primary, #0f172a);
}
able-login[theme-variant="dark"] .alogin-chip {
  background: #1e293b;
  border-color: #334155;
}
.alogin-passkey-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  margin-top: 8px;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--login-input-radius, 8px);
}
.alogin-passkey-prompt.is-hidden { display: none; }
.alogin-passkey-prompt-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}
.alogin-passkey-prompt-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary, #0f172a);
  opacity: 0.75;
}
.alogin-passkey-prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.alogin-passkey-prompt-actions .alogin-submit { flex: 1; margin: 0; }
.alogin-passkey-prompt-actions .alogin-back { flex: 1; margin: 0; min-height: 44px; }
.alogin-passkey {
  margin-top: 4px;
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: var(--login-input-radius, 8px);
  background: var(--surface-card, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
}
.alogin-passkey:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-primary, #94a3b8);
}
.alogin-passkey:disabled { opacity: 0.6; cursor: not-allowed; }
.alogin-passkey.is-primary {
  background: var(--login-button-bg, var(--accent, #2563eb));
  color: var(--login-button-color, #ffffff);
  border-color: transparent;
}
.alogin-passkey.is-primary:hover:not(:disabled) {
  background: var(--login-button-bg-hover, var(--accent-hover, #1d4ed8));
  border-color: transparent;
}
.alogin-passkey-fallback {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--login-link-color, var(--accent, #2563eb));
}
.alogin-passkey-fallback:hover { text-decoration: underline; }
.alogin-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  user-select: none;
  cursor: pointer;
}
.alogin-remember input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}
.alogin-submit {
  margin-top: 4px;
  padding: 12px 16px;
  min-height: 48px;       /* 48px on mobile feels right for thumb taps */
  border: 0;
  border-radius: var(--login-input-radius, 8px);
  background: var(--login-button-bg, var(--accent, #2563eb));
  color: var(--login-button-color, #ffffff);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms, transform 80ms;
}
.alogin-submit:hover:not(:disabled) {
  background: var(--login-button-bg-hover, var(--accent-hover, #1d4ed8));
}
.alogin-submit:active:not(:disabled) { transform: translateY(1px); }
.alogin-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.alogin-back {
  margin-top: 4px;
  padding: 8px 12px;
  background: transparent;
  color: var(--login-link-color, var(--accent, #2563eb));
  border: 0;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.alogin-back:hover { text-decoration: underline; }
.alogin-pwwrap { position: relative; display: block; }
.alogin-pwwrap .alogin-input { padding-right: 48px; }
.alogin-eye {
  position: absolute; top: 0; right: 0; width: 44px; height: 100%; min-height: 44px;
  border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--text-muted, #6b7280);
}
.alogin-eye[aria-pressed="true"] { color: var(--text-primary, #111827); }
.alogin-eye .ic { font-size: 16px; }
.alogin-rule { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-muted, #6b7280); }
.alogin-rule[data-ok] { color: var(--success, #15803d); font-weight: 600; }
.alogin-field-err { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--danger, #b91c1c); }
.alogin-field-err[hidden] { display: none; }
.alogin-hint {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary, #0f172a);
  opacity: 0.8;
}
.alogin-hint.is-hidden { display: none; }
.alogin-consent {
  margin: 10px 0 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted, #64748b);
}
.alogin-consent a {
  color: inherit;
  text-decoration: underline;
}
.alogin-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
}
.alogin-consent-check input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 1px;
  /* 18px + an explicit ring: the UNCHECKED control must read as an empty box at a
     glance (the 10DLC reviewer flags a control that is small or hard to parse). */
  width: 18px;
  height: 18px;
  outline: 1.5px solid var(--border-strong, #9aa3ad);
  outline-offset: -1.5px;
  border-radius: 4px;
  accent-color: var(--accent, #1b2a4a);
  /* The card is light regardless of the page scheme; without this, a page-level
     color-scheme: dark paints the UNCHECKED native box as a solid dark square —
     which reads as CHECKED. The consent artifact must be unambiguous. */
  color-scheme: light;
}
.alogin-qr {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-default, #e2e8f0);
}
.alogin-qr.is-hidden { display: none; }
.alogin-qr-img { width: 200px; height: 200px; display: block; }
.alogin-error {
  margin: 12px 0 0 0;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--login-error-color, #dc2626);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: none;
}
.alogin-error.is-visible { display: block; }
.alogin-forgot {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: var(--login-link-color, var(--accent, #2563eb));
  text-decoration: none;
}
.alogin-forgot:hover { text-decoration: underline; }
/* WS-6 — the code-only door. Same link vocabulary as "Forgot password?" — it
   sits directly under it as a tight PAIR of quiet alternative routes. No rule
   between them: the original hairline (border-top on the input-border token)
   rendered as a heavy full-width line on dark themes and stacked a THIRD
   divider between the forgot link and the OR separator (seen live on
   tenniswest 2026-08-21). The OR divider below already owns the separation
   from the SSO block; two links don't need chrome to read as a list. */
.alogin-passwordless {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--login-link-color, var(--accent, #2563eb));
  text-decoration: none;
}
.alogin-passwordless:hover { text-decoration: underline; }
.alogin-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px 0;
  font-size: 12px;
  color: var(--text-primary, #0f172a);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.alogin-divider::before, .alogin-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-default, #e2e8f0);
}
.alogin-divider::before { margin-right: 12px; }
.alogin-divider::after  { margin-left: 12px; }
.alogin-alternatives { display: flex; flex-direction: column; gap: 8px; }
.alogin-alt-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 44px;       /* WCAG 2.2 AA touch target */
  border: 1px solid var(--border-default, #cbd5e1);
  border-radius: var(--login-input-radius, 8px);
  background: var(--surface-card, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
  text-decoration: none;
}
.alogin-alt-button:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-primary, #94a3b8);
}
.alogin-alt-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.alogin-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-primary, #64748b);
  opacity: 0.75;
}
.alogin-footer a {
  color: var(--login-link-color, var(--accent, #2563eb));
  text-decoration: none;
}
.alogin-footer a:hover { text-decoration: underline; }

/* Theme variant: dark */
able-login[theme-variant="dark"] {
  background: var(--login-bg, #0f172a);
  color: #e2e8f0;
}
able-login[theme-variant="dark"] .alogin-card {
  background: var(--login-card-bg, #1e293b);
}
able-login[theme-variant="dark"] .alogin-input {
  background: #0f172a;
  color: #e2e8f0;
  border-color: var(--login-input-border, #334155);
}
able-login[theme-variant="dark"] .alogin-alt-button {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
able-login[theme-variant="dark"] .alogin-alt-button:hover {
  background: #283549;
}

/* Theme variant: brand-purple */
able-login[theme-variant="brand-purple"] {
  --login-button-bg: #7c3aed;
  --login-button-bg-hover: #6d28d9;
  --login-link-color: #7c3aed;
}

@media (max-width: 480px) {
  /* Mobile shell: hug the top with a comfortable gutter, let the card take
   * the available width minus 16px each side. */
  .alogin-shell { padding: 16px; align-items: flex-start; padding-top: 32px; }
  .alogin-card  {
    padding: 28px 20px;
    /* Override the desktop clamp so we always size to viewport-minus-gutter
     * on small phones (overrides the min(440px, calc(100vw - 32px)) above). */
    max-width: var(--login-card-max-width, calc(100vw - 32px));
  }
  .alogin-title { font-size: 18px; margin-bottom: 20px; }
}


/* able-phone-input */

able-phone-input {
  display: block;
  position: relative;
  width: 100%;
  font-family: inherit;
}
able-phone-input .apin-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-default, #d6d8db);
  border-radius: var(--radius-md, 8px);
  background: var(--surface-card, #ffffff);
  overflow: hidden;
}
able-phone-input .apin-row:focus-within {
  border-color: var(--accent, #1b2a4a);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(27, 42, 74, 0.15));
}
able-phone-input .apin-cc {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--border-subtle, #f1f5f9);
  background: var(--surface-subtle, #f1f5f9);
  color: var(--text-primary, #1d1c17);
  font: inherit;
  font-size: var(--font-base, 16px);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
able-phone-input .apin-cc:disabled { cursor: not-allowed; opacity: 0.6; }
able-phone-input .apin-cc:focus-visible {
  outline: 2px solid var(--accent, #1b2a4a);
  outline-offset: -2px;
}
able-phone-input .apin-flag { font-size: 1.15em; line-height: 1; }
able-phone-input .apin-dial { font-variant-numeric: tabular-nums; }
able-phone-input .apin-caret { opacity: 0.55; }
able-phone-input .apin-input {
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text-primary, #1d1c17);
  font: inherit;
  /* 16px floor — anything smaller makes iOS Safari zoom on focus (rule 29). */
  font-size: max(16px, var(--font-base, 16px));
  font-variant-numeric: tabular-nums;
}
able-phone-input .apin-input:focus { outline: none; }
able-phone-input .apin-input::placeholder { color: var(--text-subtle, #9ca3af); }
able-phone-input .apin-input:disabled { cursor: not-allowed; opacity: 0.6; }
able-phone-input .apin-pop {
  position: absolute;
  z-index: var(--z-dropdown, 300);
  top: calc(100% + 4px);
  left: 0;
  width: min(320px, 100%);
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--border-default, #d6d8db);
  border-radius: var(--radius-md, 8px);
  background: var(--surface-card, #ffffff);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.18));
}
able-phone-input .apin-pop[hidden] { display: none; }
able-phone-input .apin-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm, 4px);
  color: var(--text-primary, #1d1c17);
  font-size: var(--font-base, 16px);
  cursor: pointer;
}
able-phone-input .apin-opt[aria-selected="true"] { font-weight: 600; }
able-phone-input .apin-opt.is-active,
able-phone-input .apin-opt:hover {
  background: var(--surface-hover, #f8f8f9);
}
able-phone-input .apin-opt-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
able-phone-input .apin-opt-dial {
  color: var(--text-secondary, #3f3f46);
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  able-phone-input * { transition: none !important; }
}

