/* EdvanceMFA — Login & OTP page styles
   SaaS-quality UI with glassmorphism, dark mode, smooth animations
   ----------------------------------------------------------------- */

/* ── Custom properties ─────────────────────────────────────────── */
:root {
  --emfa-brand:          #6366f1;
  --emfa-brand-hover:    #4f46e5;
  --emfa-brand-light:    rgba(99, 102, 241, .12);

  --emfa-bg:             #f0f2ff;
  --emfa-card-bg:        rgba(255, 255, 255, .85);
  --emfa-card-border:    rgba(255, 255, 255, .6);
  --emfa-card-shadow:    0 20px 60px rgba(99, 102, 241, .12), 0 4px 16px rgba(0,0,0,.06);

  --emfa-text-primary:   #111827;
  --emfa-text-secondary: #6b7280;
  --emfa-text-tertiary:  #9ca3af;

  --emfa-input-bg:       #fff;
  --emfa-input-border:   #e5e7eb;
  --emfa-input-focus:    var(--emfa-brand);
  --emfa-input-radius:   10px;

  --emfa-radius:         16px;
  --emfa-radius-sm:      10px;

  --emfa-error-bg:       #fff1f2;
  --emfa-error-text:     #be123c;
  --emfa-error-border:   #fecdd3;

  --emfa-success-bg:     #f0fdf4;
  --emfa-success-text:   #15803d;
  --emfa-success-border: #bbf7d0;

  --emfa-transition:     160ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Dark mode (OS preference or data-theme="dark") ────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --emfa-bg:             #0f0f1a;
    --emfa-card-bg:        rgba(20, 20, 36, .9);
    --emfa-card-border:    rgba(255, 255, 255, .08);
    --emfa-card-shadow:    0 20px 60px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4);

    --emfa-text-primary:   #f9fafb;
    --emfa-text-secondary: #9ca3af;
    --emfa-text-tertiary:  #6b7280;

    --emfa-input-bg:       rgba(255,255,255,.05);
    --emfa-input-border:   rgba(255,255,255,.1);

    --emfa-error-bg:       rgba(190,18,60,.15);
    --emfa-error-text:     #fda4af;
    --emfa-error-border:   rgba(253,164,175,.25);

    --emfa-success-bg:     rgba(21,128,61,.15);
    --emfa-success-text:   #86efac;
    --emfa-success-border: rgba(134,239,172,.25);
  }
}

[data-theme="dark"] {
  --emfa-bg:             #0f0f1a;
  --emfa-card-bg:        rgba(20, 20, 36, .9);
  --emfa-card-border:    rgba(255, 255, 255, .08);
  --emfa-card-shadow:    0 20px 60px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4);
  --emfa-text-primary:   #f9fafb;
  --emfa-text-secondary: #9ca3af;
  --emfa-text-tertiary:  #6b7280;
  --emfa-input-bg:       rgba(255,255,255,.05);
  --emfa-input-border:   rgba(255,255,255,.1);
  --emfa-error-bg:       rgba(190,18,60,.15);
  --emfa-error-text:     #fda4af;
  --emfa-error-border:   rgba(253,164,175,.25);
  --emfa-success-bg:     rgba(21,128,61,.15);
  --emfa-success-text:   #86efac;
  --emfa-success-border: rgba(134,239,172,.25);
}

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body.emfa-body {
  min-height: 100dvh;
  background-color: var(--emfa-bg);
  background-image:
    radial-gradient(ellipse at 25% 0%, rgba(99,102,241,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(139,92,246,.14) 0%, transparent 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--emfa-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── Screen wrapper ────────────────────────────────────────────── */
.emfa-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px 16px;
  gap: 20px;
}

/* Background image layer (::before) and overlay layer (::after).
   Both are injected inline from the template when a bg image is set. */
.emfa-screen::before,
.emfa-screen::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.emfa-screen::before {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.emfa-screen::after {
  z-index: 1;
}

/* Card and footer must sit above the overlay */
.emfa-card,
.emfa-footer { position: relative; z-index: 2; }

/* ── Card ──────────────────────────────────────────────────────── */
.emfa-card {
  width: 100%;
  max-width: 420px;
  background: var(--emfa-card-bg);
  border: 1px solid var(--emfa-card-border);
  border-radius: var(--emfa-radius);
  box-shadow: var(--emfa-card-shadow);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 40px 36px;
  animation: emfa-card-in 380ms cubic-bezier(.34,1.56,.64,1) both;
}

.emfa-card--otp { max-width: 460px; }

@keyframes emfa-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ──────────────────────────────────────────────────────── */
.emfa-card__logo {
  text-align: center;
  margin-bottom: 24px;
}

.emfa-logo-img {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.emfa-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  background: var(--emfa-brand-light);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--emfa-brand);
  letter-spacing: -.2px;
}

/* ── Card header ───────────────────────────────────────────────── */
.emfa-card__header {
  text-align: center;
  margin-bottom: 28px;
}

.emfa-card__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--emfa-text-primary);
  margin-bottom: 6px;
}

.emfa-card__subtitle {
  font-size: 14px;
  color: var(--emfa-text-secondary);
  line-height: 1.6;
}

/* ── Alert / notice ────────────────────────────────────────────── */
.emfa-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--emfa-radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  border: 1px solid;
}

.emfa-alert svg { flex-shrink: 0; margin-top: 1px; }

.emfa-alert--error {
  background: var(--emfa-error-bg);
  color: var(--emfa-error-text);
  border-color: var(--emfa-error-border);
}

.emfa-alert--success {
  background: var(--emfa-success-bg);
  color: var(--emfa-success-text);
  border-color: var(--emfa-success-border);
}

@keyframes emfa-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.emfa-alert--shake { animation: emfa-shake 420ms ease-in-out; }

/* ── Form fields ───────────────────────────────────────────────── */
.emfa-field { margin-bottom: 18px; }

.emfa-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--emfa-text-primary);
  margin-bottom: 7px;
}

.emfa-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.emfa-label-row .emfa-label { margin-bottom: 0; }

.emfa-forgot-link {
  font-size: 12.5px;
  color: var(--emfa-brand);
  text-decoration: none;
  font-weight: 500;
}

.emfa-forgot-link:hover { text-decoration: underline; }

/* ── Input ─────────────────────────────────────────────────────── */
.emfa-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.emfa-input-icon {
  position: absolute;
  left: 12px;
  color: var(--emfa-text-tertiary);
  pointer-events: none;
  flex-shrink: 0;
}

.emfa-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 38px;
  background: var(--emfa-input-bg);
  border: 1.5px solid var(--emfa-input-border);
  border-radius: var(--emfa-input-radius);
  font-size: 14.5px;
  color: var(--emfa-text-primary);
  outline: none;
  transition: border-color var(--emfa-transition), box-shadow var(--emfa-transition);
  -webkit-appearance: none;
  appearance: none;
}

.emfa-input::placeholder { color: var(--emfa-text-tertiary); }

.emfa-input:focus {
  border-color: var(--emfa-brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

.emfa-input:invalid:not(:placeholder-shown) { border-color: var(--emfa-error-text); }

/* Hide browser-native password reveal so our custom toggle is the only one */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none !important; }
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button { visibility: hidden; }

/* ── Password toggle ────────────────────────────────────────────── */
.emfa-pwd-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--emfa-text-tertiary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--emfa-transition), background var(--emfa-transition);
}

.emfa-pwd-toggle:hover { color: var(--emfa-text-primary); background: var(--emfa-brand-light); }

/* ── Button ─────────────────────────────────────────────────────── */
.emfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--emfa-input-radius);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background var(--emfa-transition), transform var(--emfa-transition), box-shadow var(--emfa-transition), opacity var(--emfa-transition);
  position: relative;
  overflow: hidden;
}

.emfa-btn--primary {
  background: var(--emfa-brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
}

.emfa-btn--primary:hover:not(:disabled) {
  background: var(--emfa-brand-hover);
  box-shadow: 0 4px 18px rgba(99,102,241,.45);
  transform: translateY(-1px);
}

.emfa-btn--primary:active:not(:disabled) { transform: translateY(0); }

.emfa-btn--full { width: 100%; margin-top: 8px; }

.emfa-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Loading spinner inside button */
.emfa-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: emfa-spin 600ms linear infinite;
}

.emfa-btn--loading .emfa-btn__label { display: none; }
.emfa-btn--loading .emfa-btn__spinner { display: block; }

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

/* ── OTP shield icon ────────────────────────────────────────────── */
.emfa-otp-icon {
  text-align: center;
  margin-bottom: 8px;
}

/* ── OTP digit boxes ────────────────────────────────────────────── */
.emfa-otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.emfa-otp-box {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  letter-spacing: 0;
  background: var(--emfa-input-bg);
  border: 2px solid var(--emfa-input-border);
  border-radius: 12px;
  color: var(--emfa-text-primary);
  outline: none;
  caret-color: var(--emfa-brand);
  transition: border-color var(--emfa-transition), box-shadow var(--emfa-transition), transform var(--emfa-transition);
  -webkit-appearance: none;
  appearance: none;
}

.emfa-otp-box:focus {
  border-color: var(--emfa-brand);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
  transform: scale(1.04);
}

.emfa-otp-box.emfa-otp-box--filled {
  border-color: var(--emfa-brand);
  background: var(--emfa-brand-light);
}

.emfa-otp-box.emfa-otp-box--error {
  border-color: var(--emfa-error-text);
  animation: emfa-shake 380ms ease;
}

/* Adjust for 8-digit boxes */
.emfa-otp-boxes[data-length="8"] .emfa-otp-box {
  width: 40px;
  height: 52px;
  font-size: 21px;
  gap: 6px;
  border-radius: 10px;
}

.emfa-otp-boxes[data-length="8"] { gap: 6px; }

/* ── Countdown timer ────────────────────────────────────────────── */
.emfa-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--emfa-text-secondary);
  margin-bottom: 16px;
}

.emfa-timer svg { flex-shrink: 0; }
.emfa-timer strong { color: var(--emfa-text-primary); font-weight: 600; }
.emfa-timer--expiring strong { color: var(--emfa-error-text); }

/* ── Checkbox (trust device) ────────────────────────────────────── */
.emfa-field--checkbox { margin-bottom: 20px; }

.emfa-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--emfa-text-secondary);
  user-select: none;
}

.emfa-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.emfa-checkbox-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--emfa-input-border);
  border-radius: 5px;
  background: var(--emfa-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--emfa-transition), border-color var(--emfa-transition);
}

.emfa-checkbox-label:has(.emfa-checkbox-input:checked) .emfa-checkbox-mark {
  background: var(--emfa-brand);
  border-color: var(--emfa-brand);
}

.emfa-checkbox-label:has(.emfa-checkbox-input:checked) .emfa-checkbox-mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ── Tooltip ────────────────────────────────────────────────────── */
.emfa-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--emfa-text-tertiary);
  cursor: default;
  vertical-align: middle;
}

.emfa-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #f9fafb;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  padding: 8px 12px;
  border-radius: 7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms;
  min-width: 180px;
  max-width: min(260px, 80vw);
  width: max-content;
  text-align: center;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.emfa-tooltip:hover::after { opacity: 1; }

/* ── Resend row ─────────────────────────────────────────────────── */
.emfa-resend-row {
  text-align: center;
  font-size: 13.5px;
  color: var(--emfa-text-secondary);
  margin-top: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.emfa-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emfa-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--emfa-transition);
}

.emfa-link-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  color: var(--emfa-text-tertiary);
  text-decoration: none;
}

/* ── Logo link wrapper ──────────────────────────────────────────── */
.emfa-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity var(--emfa-transition);
}

.emfa-logo-link:hover { opacity: .85; }

/* ── Back link ──────────────────────────────────────────────────── */
.emfa-back-row {
  text-align: center;
  margin-top: 4px;
}

.emfa-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--emfa-text-secondary);
  text-decoration: none;
  transition: color var(--emfa-transition);
}

.emfa-back-link:hover { color: var(--emfa-brand); }

/* ── Footer ─────────────────────────────────────────────────────── */
.emfa-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — fully fluid from 320 px to 4 K
   ═══════════════════════════════════════════════════════════════ */

/* ── Fluid base sizing via clamp() ──────────────────────────────
   These override the fixed values above without needing breakpoints
   for the base elements.                                          */
.emfa-card {
  width: min(100%, 420px);
  padding: clamp(22px, 5vw, 40px) clamp(18px, 5vw, 36px);
}

.emfa-card--otp {
  width: min(100%, 460px);
}

.emfa-card__title  { font-size: clamp(18px, 4vw, 22px); }
.emfa-card__subtitle { font-size: clamp(13px, 2.5vw, 14px); }

.emfa-input {
  height: clamp(40px, 6vw, 46px);
  font-size: clamp(14px, 2.5vw, 14.5px);
}

.emfa-btn {
  height: clamp(42px, 6vw, 46px);
  font-size: clamp(14px, 2.5vw, 14.5px);
}

.emfa-logo-img {
  max-height: clamp(36px, 6vw, 56px);
  max-width: clamp(120px, 40vw, 200px);
}

/* ── Screen padding — leave room for keyboard on mobile ─────────── */
.emfa-screen {
  padding: clamp(16px, 4vw, 40px) clamp(12px, 4vw, 24px);
  padding-bottom: max(clamp(16px, 4vw, 40px), env(safe-area-inset-bottom, 0px));
  padding-left:   max(clamp(12px, 4vw, 24px), env(safe-area-inset-left,   0px));
  padding-right:  max(clamp(12px, 4vw, 24px), env(safe-area-inset-right,  0px));
}

/* ── OTP boxes — fluid via clamp() ──────────────────────────────── */

/* 4-digit */
.emfa-otp-boxes[data-length="4"] .emfa-otp-box {
  width:     clamp(52px, 14vw, 72px);
  height:    clamp(60px, 16vw, 80px);
  font-size: clamp(24px, 6vw, 32px);
}
.emfa-otp-boxes[data-length="4"] { gap: clamp(8px, 2vw, 16px); }

/* 6-digit (default) */
.emfa-otp-boxes[data-length="6"] .emfa-otp-box,
.emfa-otp-boxes:not([data-length]) .emfa-otp-box {
  width:     clamp(38px, 10vw, 56px);
  height:    clamp(48px, 12vw, 64px);
  font-size: clamp(20px, 5vw, 28px);
}
.emfa-otp-boxes[data-length="6"],
.emfa-otp-boxes:not([data-length]) { gap: clamp(6px, 1.5vw, 12px); }

/* 8-digit */
.emfa-otp-boxes[data-length="8"] .emfa-otp-box {
  width:     clamp(30px, 7.5vw, 44px);
  height:    clamp(40px, 10vw, 54px);
  font-size: clamp(16px, 4vw, 22px);
  border-radius: 9px;
}
.emfa-otp-boxes[data-length="8"] { gap: clamp(4px, 1vw, 8px); }

/* ── Tablet (481–768 px) ──────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .emfa-screen { padding: 28px 20px; }
  .emfa-card   { padding: 36px 30px; }
}

/* ── Small mobile ( ≤ 390 px) ────────────────────────────────── */
@media (max-width: 390px) {
  .emfa-screen { padding: 12px 10px; gap: 14px; }
  .emfa-card   { border-radius: 14px; }
  .emfa-card__logo { margin-bottom: 18px; }
  .emfa-card__header { margin-bottom: 20px; }
  .emfa-card__title { font-size: 19px; }
  .emfa-label-row { flex-wrap: wrap; gap: 2px; }
  .emfa-forgot-link { font-size: 12px; }
  .emfa-checkbox-label { font-size: 12.5px; gap: 8px; }

  /* Slightly tighter field spacing */
  .emfa-field { margin-bottom: 14px; }
  .emfa-btn--full { margin-top: 4px; }
}

/* ── Very small mobile ( ≤ 320 px) ──────────────────────────── */
@media (max-width: 320px) {
  .emfa-card { padding: 18px 14px; border-radius: 12px; }
  .emfa-card__title { font-size: 17px; }
  .emfa-logo-text { font-size: 13px; height: 38px; padding: 0 12px; }
  .emfa-input, .emfa-btn { height: 40px; font-size: 13.5px; }
  .emfa-timer { font-size: 12px; }
}

/* ── Landscape phone (short viewport, wide) ──────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .emfa-screen {
    justify-content: flex-start;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .emfa-card {
    padding: 20px 24px;
    /* Two-column layout to reduce height */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 24px;
    width: min(100%, 680px);
  }

  .emfa-card__logo   { grid-column: 1 / -1; margin-bottom: 0; text-align: left; }
  .emfa-card__header { grid-column: 1 / -1; margin-bottom: 16px; text-align: left; }
  .emfa-card__title  { font-size: 17px; }
  .emfa-card__subtitle { font-size: 12.5px; }
  .emfa-alert        { grid-column: 1 / -1; margin-bottom: 12px; }

  /* OTP page: keep single-column in landscape (boxes need width) */
  .emfa-card--otp {
    display: flex;
    flex-direction: column;
    width: min(100%, 520px);
  }

  .emfa-otp-icon { display: none; }

  .emfa-field { margin-bottom: 12px; }
  .emfa-input, .emfa-btn { height: 40px; }
  .emfa-btn--full { margin-top: 4px; }
}

/* ── Large desktop ( ≥ 1280 px) ──────────────────────────────── */
@media (min-width: 1280px) {
  .emfa-card     { padding: 44px 40px; }
  .emfa-card--otp { padding: 44px 44px; }
  .emfa-card__title { font-size: 24px; }
  .emfa-logo-img { max-height: 52px; }
}

/* ── Extra-large (≥ 1920 px) — keep card comfortable size ──── */
@media (min-width: 1920px) {
  .emfa-card     { max-width: 460px; }
  .emfa-card--otp { max-width: 500px; }
}

/* ── High-DPI / Retina — keep crisp borders ─────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .emfa-card { border-width: 0.5px; }
  .emfa-otp-box { border-width: 1px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .emfa-card { animation: none; opacity: 1; transform: none; }
  .emfa-btn,
  .emfa-input,
  .emfa-otp-box,
  .emfa-back-link,
  .emfa-logo-link { transition: none; }
  .emfa-alert--shake { animation: none; }
}
