:root {
  --auth-primary: #2563eb;
  --auth-primary-deep: #173e96;
  --auth-primary-soft: #edf4ff;
  --auth-navy: #0b1f44;
  --auth-ink: #10213d;
  --auth-muted: #63738d;
  --auth-line: #d6e2f1;
  --auth-surface: #ffffff;
  --auth-page: #eef4fa;
  --auth-success: #087f6b;
  --auth-success-soft: #e9f8f4;
  --auth-danger: #c2412d;
  --auth-danger-soft: #fff1ee;
  --auth-shadow: 0 24px 64px rgba(24, 54, 96, .14);
  --auth-radius-xl: 28px;
  --auth-radius-lg: 18px;
  --auth-radius-md: 13px;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--auth-ink);
  background: var(--auth-page);
  color-scheme: light;
}

html[data-my-theme="green"] {
  --auth-primary: #0f8f78;
  --auth-primary-deep: #086b5b;
  --auth-primary-soft: #e8f8f4;
}

html[data-my-theme="purple"] {
  --auth-primary: #7c3aed;
  --auth-primary-deep: #5b21b6;
  --auth-primary-soft: #f3edff;
}

html[data-my-theme="orange"] {
  --auth-primary: #d97706;
  --auth-primary-deep: #9a4d04;
  --auth-primary-soft: #fff4e5;
}

html[data-my-theme="dark"] {
  --auth-primary: #60a5fa;
  --auth-primary-deep: #bfdbfe;
  --auth-primary-soft: #172a46;
  --auth-navy: #f5f8ff;
  --auth-ink: #e5edf9;
  --auth-muted: #9cafc9;
  --auth-line: #334967;
  --auth-surface: #101d31;
  --auth-page: #0a1424;
  --auth-success-soft: #12372f;
  --auth-danger-soft: #3c211d;
  --auth-shadow: 0 24px 64px rgba(0, 0, 0, .32);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body { margin: 0; min-width: 320px; min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--auth-page);
  color: var(--auth-ink);
  scrollbar-gutter: stable;
}

button,
input,
select { font: inherit; }

button { color: inherit; }

.auth-svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }

.auth-svg-sprite symbol,
.auth-shell svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-shell {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(390px, 46%) minmax(520px, 54%);
  grid-template-areas: "brand form";
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

.auth-brand-panel {
  grid-area: brand;
  direction: rtl;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  padding: clamp(30px, 4vw, 64px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 22%, rgba(37, 99, 235, .34), transparent 31%),
    radial-gradient(circle at 86% 84%, rgba(13, 148, 136, .22), transparent 28%),
    linear-gradient(146deg, #071831 0%, #0b2550 52%, #113a72 100%);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.auth-brand-panel::before { width: 420px; height: 420px; inset: -200px auto auto -170px; }
.auth-brand-panel::after { width: 520px; height: 520px; inset: auto -270px -310px auto; }

.auth-brand-top,
.auth-mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
}

.auth-brand-mark svg { width: 24px; height: 24px; }
.auth-brand-mark img { display: block; width: 34px; height: 34px; object-fit: contain; }
.auth-brand-logo { padding: 5px; }

.auth-brand-top strong,
.auth-mobile-brand b { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.01em; }
.auth-brand-top span,
.auth-mobile-brand small { display: block; margin-top: 3px; color: #a9c5f3; font-size: 11px; font-weight: 700; }

.auth-brand-copy {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
  margin-block: 38px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, .12);
  font-size: 11px;
  font-weight: 800;
}

.auth-brand-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.25;
  letter-spacing: -.045em;
}

.auth-brand-copy h1 em { color: #7dd3fc; font-style: normal; }

.auth-brand-copy > p {
  max-width: 560px;
  margin: 0;
  color: #c9d8ef;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.9;
}

.auth-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }

.auth-proof-grid article {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, .13);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(10px);
}

.auth-proof-grid article > svg { flex: 0 0 auto; width: 35px; height: 35px; padding: 8px; border-radius: 10px; color: #7dd3fc; background: rgba(37, 99, 235, .18); }
.auth-proof-grid b { display: block; margin-bottom: 3px; font-size: 11px; line-height: 1.35; }
.auth-proof-grid small { display: block; overflow: hidden; color: #a9bddb; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }

.auth-brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9fb5d5;
  font-size: 11px;
}

.auth-brand-footer span { display: flex; align-items: center; gap: 7px; color: #b7e7da; font-weight: 700; }
.auth-brand-footer i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }

html[dir="ltr"] .auth-brand-panel,
html[dir="ltr"] .auth-form-panel,
html[dir="ltr"] .auth-mobile-brand { direction: ltr; }
html[dir="ltr"] .auth-advanced-toggle { text-align: center; }
html[dir="ltr"] .auth-primary-button > svg { transform: none; }

.auth-form-panel {
  grid-area: form;
  direction: rtl;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(24px, 4vw, 58px);
  overflow: auto;
  scrollbar-gutter: stable;
  background:
    linear-gradient(rgba(238, 244, 250, .92), rgba(238, 244, 250, .92)),
    radial-gradient(circle at 70% 12%, #d7e9ff, transparent 37%);
}

.auth-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(#b8c9df 1px, transparent 1px), linear-gradient(90deg, #b8c9df 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.auth-mobile-brand { display: none; }

.auth-login-stage {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(520px, 100%);
}

.auth-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 644px;
  border: 1px solid rgba(198, 214, 234, .92);
  border-radius: var(--auth-radius-xl);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--auth-shadow);
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.auth-attendance-menu-trigger {
  direction: rtl;
  position: fixed;
  z-index: 45;
  top: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: min(252px, calc(46vw - 48px));
  min-height: 60px;
  padding: 8px 11px;
  border: 1px solid rgba(191, 219, 254, .24);
  border-radius: 12px;
  color: #f7fbff;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 14px 32px rgba(2, 17, 40, .18);
  backdrop-filter: blur(12px);
  text-align: right;
  cursor: pointer;
}

.auth-attendance-menu-trigger:hover { border-color: rgba(191, 219, 254, .52); background: rgba(255, 255, 255, .14); }
.auth-attendance-menu-trigger:focus-visible { outline: 3px solid rgba(125, 211, 252, .46); outline-offset: 3px; }
.auth-attendance-trigger-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: #dbeafe; background: rgba(37, 99, 235, .32); }
.auth-attendance-trigger-icon svg { width: 21px; height: 21px; }
.auth-attendance-trigger-icon i { position: absolute; inset: auto 2px 2px auto; width: 8px; height: 8px; border: 2px solid #13366a; border-radius: 50%; background: #f59e0b; }
.auth-attendance-menu-trigger[data-state="ready"] .auth-attendance-trigger-icon i { background: #34d399; }
.auth-attendance-trigger-copy { min-width: 0; }
.auth-attendance-trigger-copy strong,
.auth-attendance-trigger-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-attendance-trigger-copy strong { font-size: 12px; line-height: 1.45; }
.auth-attendance-trigger-copy small { margin-top: 2px; color: #b9ceea; font-size: 9.5px; font-weight: 700; }
.auth-attendance-trigger-arrow { width: 17px; height: 17px; transform: rotate(180deg); }
html[dir="ltr"] .auth-attendance-menu-trigger { direction: ltr; text-align: left; }
html[dir="ltr"] .auth-attendance-trigger-arrow { transform: none; }

.auth-hr-qr-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(6, 20, 42, .56);
  backdrop-filter: blur(3px);
  cursor: default;
}

.auth-hr-qr-card {
  direction: rtl;
  position: fixed;
  z-index: 90;
  inset: 0 auto 0 0;
  width: min(440px, 100vw);
  height: 100vh;
  height: 100dvh;
  padding: 26px 28px 22px;
  border: 0;
  border-right: 1px solid rgba(169, 196, 231, .94);
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--auth-ink);
  background: rgba(255, 255, 255, .99);
  box-shadow: 20px 0 60px rgba(7, 30, 67, .24);
}

.auth-hr-qr-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e9f3;
}
.auth-hr-qr-header > div { min-width: 0; }
.auth-hr-qr-header small { display: block; color: var(--auth-primary); font-size: 10px; font-weight: 850; }
.auth-hr-qr-header h2 { margin: 4px 0 0; color: var(--auth-navy); font-size: 18px; line-height: 1.35; }
.auth-hr-qr-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-hr-qr-icon svg { width: 21px; height: 21px; }
.auth-hr-qr-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #d7e2ef; border-radius: 8px; color: #617691; background: #fff; cursor: pointer; }
.auth-hr-qr-close:hover,
.auth-hr-qr-close:focus-visible { border-color: var(--auth-primary); color: var(--auth-primary); background: var(--auth-primary-soft); outline: 0; }
.auth-hr-qr-close svg { width: 17px; height: 17px; }

.auth-hr-qr-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin: 0 0 22px; padding: 4px; border: 1px solid #dce6f1; border-radius: 9px; background: #edf3fa; }
.auth-hr-qr-modes button { min-height: 38px; padding: 7px 9px; border: 1px solid transparent; border-radius: 6px; color: #637894; background: transparent; font-family: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.auth-hr-qr-modes button.is-active { border-color: #c6daf0; color: var(--auth-primary-deep); background: #fff; box-shadow: 0 4px 12px rgba(30,73,126,.08); }
.auth-hr-qr-modes button:focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 1px; }

.auth-hr-qr-figure { display: grid; justify-items: center; gap: 14px; margin: 0; text-align: center; }
.auth-hr-qr-image-shell { display: grid; place-items: center; width: 220px; height: 220px; padding: 10px; border: 1px solid #d8e5f3; border-radius: 10px; background: #fff; transition: width .18s ease, height .18s ease; }
.auth-hr-qr-image-shell > * { grid-area: 1 / 1; }
.auth-hr-qr-image-shell img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-hr-qr-placeholder { width: 48px; height: 48px; color: #8aa6c9; }
.auth-hr-qr-card[data-state="unavailable"] .auth-hr-qr-image-shell { width: 84px; height: 84px; background: #f3f7fc; }
.auth-hr-qr-card[data-state="unavailable"] .auth-hr-qr-placeholder { width: 32px; height: 32px; }
.auth-hr-qr-figure figcaption { min-width: 0; max-width: 330px; }
.auth-hr-qr-figure figcaption strong { display: block; margin-bottom: 6px; color: var(--auth-navy); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-hr-qr-figure figcaption span { display: block; color: var(--auth-muted); font-size: 10px; line-height: 1.75; }

.auth-hr-qr-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 10px 11px; border-radius: 8px; color: #536b8d; background: #f3f7fc; font-size: 9.5px; font-weight: 750; }
.auth-hr-qr-meta time { direction: ltr; color: var(--auth-primary-deep); font-variant-numeric: tabular-nums; font-weight: 900; }
.auth-hr-qr-card[data-state="refreshing"] .auth-hr-qr-image-shell { opacity: .62; }

.auth-hr-qr-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #cedced;
  border-radius: 8px;
  color: var(--auth-primary-deep);
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.auth-hr-qr-refresh:hover,
.auth-hr-qr-refresh:focus-visible { border-color: var(--auth-primary); background: var(--auth-primary-soft); outline: 0; }
.auth-hr-qr-refresh:disabled { cursor: progress; opacity: .65; }
.auth-hr-qr-refresh svg { width: 15px; height: 15px; }
.auth-hr-qr-card[data-state="refreshing"] .auth-hr-qr-refresh svg { animation: auth-qr-spin .8s linear infinite; }

.auth-hr-qr-privacy { display: flex; align-items: flex-start; gap: 7px; margin: 12px 1px 0; color: var(--auth-muted); font-size: 8.5px; line-height: 1.6; }
.auth-hr-qr-privacy svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 1px; color: var(--auth-success); }
html.auth-attendance-open body { overflow: hidden; }
@keyframes auth-qr-spin { to { transform: rotate(360deg); } }

.auth-card > section { flex: 1 1 auto; padding: 24px 30px 16px; }

.auth-mini-toolbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0 0 16px;
  padding: 3px 5px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  background: #f7faff;
}

.auth-toolbar-label,
.auth-control-cluster,
.auth-language-switcher { display: flex; align-items: center; }
.auth-toolbar-label { justify-self: start; gap: 5px; padding-inline: 7px; color: var(--auth-muted); font-size: 10.5px; font-weight: 800; }
.auth-toolbar-label svg { width: 13px; height: 13px; }
.auth-control-cluster,
.auth-language-switcher { gap: 4px; }
.auth-control-cluster { direction: ltr; }
.auth-language-switcher { direction: ltr; }
.auth-theme-picker { position: relative; }

.auth-theme-trigger,
.auth-language-switcher .lang-btn {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d7e3f0;
  border-radius: 9px;
  color: #526c91;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.auth-theme-trigger { width: 32px; padding: 0; }
.auth-theme-trigger svg { width: 16px; height: 16px; }
.auth-theme-trigger:hover,
.auth-theme-trigger[aria-expanded="true"],
.auth-language-switcher .lang-btn:hover { color: var(--auth-primary-deep); background: var(--auth-primary-soft); }
.auth-language-switcher .lang-btn.is-active { border-color: var(--auth-primary); color: #fff; background: var(--auth-primary); }

.auth-theme-menu {
  position: absolute;
  z-index: 50;
  inset: calc(100% + 7px) auto auto 0;
  display: grid;
  grid-template-columns: repeat(5, 31px);
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--auth-line);
  border-radius: 11px;
  background: var(--auth-surface);
  box-shadow: 0 14px 34px rgba(24, 54, 96, .16);
}

.auth-theme-menu button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.auth-theme-menu button:hover,
.auth-theme-menu button.is-active { border-color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-theme-menu button i { width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #b9c8da; }
.auth-theme-menu button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.auth-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.auth-card-header > div { min-width: 0; }
#login > .auth-card-header { flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
#login > .auth-card-header > div { width: 100%; }
#login > .auth-card-header h2 { margin-bottom: 0; }
.auth-card-header span:first-child { color: var(--auth-primary); font-size: 11px; font-weight: 800; }
.auth-card-header h2 { margin: 6px 0 5px; color: var(--auth-navy); font-size: 27px; line-height: 1.3; letter-spacing: -.025em; }
.auth-card-header p { margin: 0; color: var(--auth-muted); font-size: 12.5px; line-height: 1.6; }

#loginForm,
.auth-recovery-form { display: grid; gap: 13px; }

.auth-compat-tab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.auth-advanced-shell {
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}

.auth-advanced-toggle {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 3px 10px;
  border: 0;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.auth-advanced-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: -3px; }
.auth-advanced-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-advanced-icon svg { width: 15px; height: 15px; }
.auth-advanced-label { display: block; overflow: hidden; color: var(--auth-ink); font-size: 12px; font-weight: 850; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.auth-advanced-chevron { justify-self: center; width: 15px; height: 15px; color: #7890b1; transform: rotate(90deg); }
.auth-advanced-shell.is-open .auth-advanced-chevron { transform: rotate(-90deg); }

.auth-advanced-panel { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px 12px; border-top: 1px solid #e7eef7; }
.auth-advanced-shell.is-open .auth-advanced-panel { display: grid; padding-top: 11px; }

.auth-field { display: grid; gap: 6px; min-width: 0; color: var(--auth-ink); font-size: 11px; font-weight: 800; }
.auth-field > span:first-child { padding-inline: 3px; }
.auth-field > small { color: var(--auth-muted); font-size: 10px; font-weight: 500; line-height: 1.5; }
#loginForm .auth-field > span:first-child,
#loginForm .auth-advanced-label { text-align: center; }

.auth-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #cbd9ea;
  border-radius: var(--auth-radius-md);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 35, 70, .025);
}

.auth-control:focus-within { border-color: #6ea1ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .11); }
.auth-control > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-inline: 13px 2px; color: #6680a5; }
.auth-control input,
.auth-control select { width: 100%; min-width: 0; height: 46px; padding: 0 9px; border: 0; outline: 0; color: var(--auth-ink); background: transparent; font-size: 12.5px; font-weight: 700; }
.auth-control select { cursor: pointer; }
#loginForm .auth-control input,
#loginForm .auth-control select { text-align: center; }
#loginForm .auth-control select { text-align-last: center; }
.auth-control input::placeholder { color: #9aa9bc; font-weight: 500; }

.auth-password-field { padding-inline-end: 5px; }
.auth-password-field > input { padding-inline-end: 4px; }
.auth-control-button { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 9px; color: #617897; background: transparent; cursor: pointer; }
.auth-control-button:hover,
.auth-control-button:focus-visible,
.auth-control-button.is-active { color: var(--auth-primary); background: var(--auth-primary-soft); outline: 0; }
.auth-control-button svg { width: 17px; height: 17px; }

.auth-keypad {
  position: absolute;
  z-index: 10;
  inset: calc(100% + 8px) 0 auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(26, 55, 98, .18);
}

.auth-password-field.is-keypad-open .auth-keypad { display: block; }
.auth-keypad-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #405777; font-size: 11px; }
.auth-keypad .auth-keypad-close { display: grid; place-items: center; width: 28px; min-height: 28px; padding: 0; border-color: #efd2cc; color: var(--auth-danger); background: var(--auth-danger-soft); }
.auth-keypad-close svg { width: 14px; height: 14px; }
.auth-keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.auth-keypad button { min-height: 35px; border: 1px solid #d7e3f0; border-radius: 9px; color: var(--auth-ink); background: #f8fbff; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-keypad button:hover { border-color: #9bbcf4; background: var(--auth-primary-soft); }
.auth-keypad button.is-muted { color: var(--auth-muted); font-size: 10px; }
.auth-keypad button.is-ok { border-color: #9fd4c8; color: var(--auth-success); background: var(--auth-success-soft); }
.auth-caps-lock { display: block; padding: 2px 4px 0; color: #a43a25; font-size: 10px; font-weight: 700; }

.auth-form-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 14px; min-height: 28px; text-align: center; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: #415472; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check > span[aria-hidden] { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #b9cbe0; border-radius: 6px; color: transparent; background: #fff; }
.auth-check > span[aria-hidden] svg { width: 12px; height: 12px; stroke-width: 2.5; }
.auth-check input:checked + span[aria-hidden] { border-color: var(--auth-primary); color: #fff; background: var(--auth-primary); }
.auth-check input:focus-visible + span[aria-hidden] { outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 2px; }

.auth-link-button { padding: 4px 0; border: 0; color: var(--auth-primary-deep); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.auth-link-button:hover { color: var(--auth-primary); text-decoration: underline; }

.auth-primary-button,
.auth-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-primary-button { border: 1px solid #1d4ed8; color: #fff; background: linear-gradient(135deg, #2f75ed, #1d55c7); box-shadow: 0 11px 24px rgba(37, 99, 235, .22); }
.auth-primary-button:hover:not(:disabled) { background: linear-gradient(135deg, #2563eb, #1646ad); }
.auth-primary-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .24); outline-offset: 3px; }
.auth-primary-button > svg { width: 18px; height: 18px; transform: rotate(180deg); }
.auth-primary-button:disabled { cursor: wait; opacity: .74; }
.auth-button-loader { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
body[data-login-busy="true"] .auth-button-loader { display: inline-block; }
body[data-login-busy="true"] #btnUserLogin > svg { display: none; }

.auth-secondary-button { border: 1px solid var(--auth-line); color: var(--auth-primary-deep); background: #f8fbff; box-shadow: none; }
.auth-secondary-button svg { width: 19px; height: 19px; }
.auth-action-row {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) 49px;
  gap: 9px;
  min-height: 49px;
  direction: ltr;
}
.auth-action-row > * { direction: rtl; }
.auth-action-row > #btnBiometricAction { grid-column: 1; grid-row: 1; }
.auth-action-row > #btnUserLogin { grid-column: 2; grid-row: 1; }
.auth-action-row > #Config_db { grid-column: 3; grid-row: 1; }
.auth-action-row > .auth-secondary-button { width: 49px; padding: 0; }
.auth-action-row > .auth-secondary-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.auth-config-db-button { color: var(--auth-primary-deep); }
.auth-config-db-button:hover,
.auth-config-db-button:focus-visible { border-color: #94b9f7; color: var(--auth-primary); background: var(--auth-primary-soft); outline: 0; }

.auth-license-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 13px;
  padding: 8px 11px;
  border: 1px solid #bfe6dc;
  border-radius: 11px;
  color: var(--auth-success);
  background: var(--auth-success-soft);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.55;
  text-align: center;
}
.auth-license-status svg { flex: 0 0 auto; width: 17px; height: 17px; }
.auth-license-status[data-license-state="trial"] { border-color: #f0d39e; color: #9a5b05; background: #fff8e9; }
.auth-license-status[data-license-state="unlicensed"] { border-color: #efc2c7; color: #a72b3a; background: #fff1f3; }

.auth-switch { margin: -2px 0 0; color: var(--auth-muted); text-align: center; font-size: 10.5px; }
.auth-switch a { color: var(--auth-primary-deep); font-weight: 900; text-decoration: none; }
.auth-switch a:hover { color: var(--auth-primary); text-decoration: underline; }

.auth-demo-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 35px;
  padding: 7px 10px;
  border: 1px dashed #c9d9ec;
  border-radius: 10px;
  color: var(--auth-muted);
  background: #f8fbfe;
  font-size: 9.5px;
}

.auth-demo-note b { color: #334968; font-size: 10px; }
.auth-biometric-status { padding: 8px; border-radius: 10px; color: var(--auth-muted); background: #f6f9fc; font-size: 10px; line-height: 1.5; }

.auth-remote-demo { display: grid; gap: 14px; text-align: center; }
.auth-remote-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 4px auto 0; border-radius: 18px; color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-remote-icon svg { width: 27px; height: 27px; }
.auth-remote-demo h3 { margin: 0; color: var(--auth-navy); font-size: 20px; }
.auth-remote-demo > p { margin: -7px auto 2px; max-width: 360px; color: var(--auth-muted); font-size: 12px; line-height: 1.7; }
.auth-demo-origin-link { justify-self: center; text-decoration: none; }

.auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 10px 32px;
  border-top: 1px solid #e6edf5;
  border-radius: 0 0 var(--auth-radius-xl) var(--auth-radius-xl);
  color: var(--auth-muted);
  background: #fbfdff;
  font-size: 10.5px;
}

.auth-card-footer b { color: #334d72; }
.auth-card-footer small { color: #73859e; font-size: 9.5px; font-weight: 700; }

html[data-my-theme="dark"] body,
html[data-my-theme="dark"] .auth-form-panel {
  background: #0a1424;
}

html[data-my-theme="dark"] .auth-form-panel::before { opacity: .1; }
html[data-my-theme="dark"] .auth-card,
html[data-my-theme="dark"] .auth-hr-qr-card,
html[data-my-theme="dark"] .auth-control,
html[data-my-theme="dark"] .auth-theme-menu { background: rgba(16, 29, 49, .98); }
html[data-my-theme="dark"] .auth-mini-toolbar,
html[data-my-theme="dark"] .auth-advanced-shell,
html[data-my-theme="dark"] .auth-advanced-panel,
html[data-my-theme="dark"] .auth-card-footer,
html[data-my-theme="dark"] .auth-secondary-button { background: #13233a; }
html[data-my-theme="dark"] .auth-theme-trigger,
html[data-my-theme="dark"] .auth-language-switcher .lang-btn,
html[data-my-theme="dark"] .auth-check > span[aria-hidden] { color: #b8c8dd; background: #101d31; }
html[data-my-theme="dark"] .auth-card-footer,
html[data-my-theme="dark"] .auth-card-footer b { color: #e5edf9; }
html[data-my-theme="dark"] .auth-hr-qr-image-shell { border-color: #3a516f; background: #fff; }
html[data-my-theme="dark"] .auth-hr-qr-refresh,
html[data-my-theme="dark"] .auth-hr-qr-close { border-color: #3a516f; background: #13233a; }
html[data-my-theme="dark"] .auth-hr-qr-meta { color: #b6c8df; background: #172a46; }
html[data-my-theme="dark"] .auth-hr-qr-modes { background: #172a46; }
html[data-my-theme="dark"] .auth-hr-qr-modes button { color: #b6c8df; }
html[data-my-theme="dark"] .auth-hr-qr-modes button.is-active { border-color: #3a516f; color: #e6f0ff; background: #243b5c; }

.auth-alert-host { position: absolute; z-index: 30; inset: 12px 18px auto; pointer-events: none; }
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #f0c2b8;
  border-radius: 12px;
  color: #8f2f20;
  background: rgba(255, 244, 241, .98);
  box-shadow: 0 10px 24px rgba(115, 45, 31, .12);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.55;
}

.auth-alert[data-type="success"] { border-color: #bfe6dc; color: #096c5c; background: rgba(239, 252, 248, .98); }
.auth-alert[data-type="info"] { border-color: #c6d9fa; color: #24539e; background: rgba(242, 247, 255, .98); }

.auth-recovery { min-height: 535px; }
.auth-icon-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #efc3ba; border-radius: 12px; color: var(--auth-danger); background: var(--auth-danger-soft); cursor: pointer; }
.auth-icon-close svg { width: 18px; height: 18px; }
.auth-recovery-passwords { display: grid; gap: 13px; }
.auth-back-button { justify-self: center; }

.auth-recovery-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -5px 0 20px; }
.auth-recovery-steps span { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; min-height: 34px; padding: 5px 7px; border: 1px solid #dce6f1; border-radius: 10px; color: #7a8da7; background: #f8fafc; }
.auth-recovery-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #6c809c; background: #eaf0f7; font-size: 10px; }
.auth-recovery-steps small { overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.auth-recovery-steps span.is-active { border-color: #a8c6f7; color: var(--auth-primary-deep); background: #f1f6ff; }
.auth-recovery-steps span.is-active b { color: #fff; background: var(--auth-primary); }
.auth-recovery-steps span.is-complete { border-color: #bfe6dc; color: var(--auth-success); background: var(--auth-success-soft); }
.auth-recovery-steps span.is-complete b { color: #fff; background: var(--auth-success); }
.auth-recovery-stage { display: grid; gap: 14px; }
.auth-contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-contact-methods legend { grid-column: 1 / -1; padding: 0 3px 2px; color: var(--auth-ink); font-size: 10.5px; font-weight: 850; }
.auth-contact-methods label { position: relative; cursor: pointer; }
.auth-contact-methods input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.auth-contact-methods label > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 1px solid #d5e1ee; border-radius: 12px; color: #5e718d; background: #fbfdff; font-size: 11px; font-weight: 800; }
.auth-contact-methods svg { width: 16px; height: 16px; }
.auth-contact-methods label.is-active > span { border-color: #8eb5f7; color: var(--auth-primary-deep); background: var(--auth-primary-soft); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08); }
.auth-contact-methods input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 2px; }
.auth-recovery-hint { margin: 0; padding: 10px 12px; border: 1px solid #dbe6f2; border-radius: 11px; color: #506682; background: #f8fbfe; font-size: 11px; line-height: 1.6; }
.auth-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.auth-otp input { width: 100%; min-width: 0; height: 50px; border: 1px solid #c9d8e9; border-radius: 11px; outline: 0; color: var(--auth-navy); background: #fff; text-align: center; font-size: 18px; font-weight: 900; }
.auth-otp input:focus { border-color: #5b95f4; box-shadow: 0 0 0 3px rgba(37, 99, 235, .11); }
.auth-code-preview { min-height: 22px; color: var(--auth-success); text-align: center; font-size: 10.5px; font-weight: 800; }
.auth-recovery-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px; }
.auth-resend-button { white-space: nowrap; }
@media (min-width: 721px) {
  .auth-resend-button {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #c8d9ee;
    border-radius: 9px;
    color: var(--auth-primary-deep);
    background: #f7faff;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
  }
  .auth-resend-button:hover,
  .auth-resend-button:focus-visible {
    border-color: #91b6ef;
    color: var(--auth-primary);
    background: var(--auth-primary-soft);
    outline: 2px solid rgba(37, 99, 235, .12);
    outline-offset: 2px;
    text-decoration: none;
  }
}
.auth-recovery-password-control { padding-inline-end: 5px; }
.auth-recovery-password-control input { text-align: center; }

.auth-support-footer {
  direction: rtl;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(198, 214, 234, .92);
  border-radius: 15px;
  color: var(--auth-muted);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(24, 54, 96, .08);
  font-size: 9.5px;
}
.auth-support-heading { display: grid; gap: 2px; min-width: 0; }
.auth-support-heading strong { color: var(--auth-navy); font-size: 10.5px; }
.auth-support-heading span { color: var(--auth-primary-deep); font-weight: 850; }
.auth-support-contacts { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.auth-support-contact { direction: ltr; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 3px 5px 3px 9px; border: 1px solid #dce6f1; border-radius: 999px; background: #fbfdff; }
.auth-support-contact b { color: #334d72; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.auth-support-contact a { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--auth-primary-deep); background: var(--auth-primary-soft); text-decoration: none; }
.auth-support-contact a:last-child { color: var(--auth-success); background: var(--auth-success-soft); }
.auth-support-contact a:hover,
.auth-support-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.auth-support-contact svg { width: 13px; height: 13px; }
.auth-support-footer > small { color: #73859e; font-size: 8.5px; font-weight: 700; white-space: nowrap; }
html[data-my-theme="dark"] .auth-support-footer { border-color: #334967; color: #b8c8dd; background: #13233a; }
html[data-my-theme="dark"] .auth-support-heading strong,
html[data-my-theme="dark"] .auth-support-contact b { color: #e5edf9; }
html[data-my-theme="dark"] .auth-support-contact { border-color: #3a516f; background: #101d31; }

.auth-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--auth-ink); background: transparent; box-shadow: 0 26px 70px rgba(15, 37, 72, .26); }
.auth-dialog::backdrop { background: rgba(7, 24, 49, .52); backdrop-filter: blur(4px); }
.auth-dialog-card { overflow: hidden; border: 1px solid #cad8e9; border-radius: 22px; background: #fff; }
.auth-dialog-card > header { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px; align-items: center; gap: 11px; padding: 18px 20px; border-bottom: 1px solid #e4ebf4; background: linear-gradient(180deg, #fbfdff, #f5f8fc); }
.auth-dialog-card > header h2 { margin: 2px 0 0; color: var(--auth-navy); font-size: 19px; }
.auth-dialog-card > header small { color: var(--auth-muted); font-size: 10px; font-weight: 800; }
.auth-dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-dialog-icon svg { width: 20px; height: 20px; }
.auth-connection-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 20px 20px 10px; }
.auth-connection-summary > div { min-width: 0; padding: 11px; border: 1px solid #dce6f1; border-radius: 12px; background: #f8fbfe; }
.auth-connection-summary span, .auth-connection-summary b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-connection-summary span { margin-bottom: 5px; color: var(--auth-muted); font-size: 9.5px; }
.auth-connection-summary b { color: #284262; font-size: 11px; }
.auth-dialog-note { margin: 4px 20px 18px; color: #5f7189; font-size: 10.5px; line-height: 1.7; }
.auth-dialog-card > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 20px; border-top: 1px solid #e5edf5; background: #f9fbfd; }
.auth-dialog-card > footer .auth-primary-button,
.auth-dialog-card > footer .auth-secondary-button { width: auto; min-height: 42px; font-size: 11px; }

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

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

/* Desktop: remove the duplicated identity and category badge while preserving
   the compact mobile identity used when the brand panel is hidden. */
@media (min-width: 981px) {
  .auth-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .auth-brand-panel,
  .auth-form-panel {
    height: 100%;
    min-height: 0;
  }

  .auth-brand-top,
  .auth-eyebrow {
    display: none;
  }

  .auth-brand-copy {
    margin-block: auto;
  }

  .auth-brand-copy h1 {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .auth-shell { display: block; min-height: 100dvh; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; padding: 28px 20px; }
  .auth-mobile-brand { display: flex; position: relative; z-index: 2; direction: rtl; width: min(520px, 100%); margin-bottom: 14px; color: var(--auth-navy); }
  .auth-mobile-brand .auth-brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .auth-mobile-brand b { font-size: 16px; }
  .auth-mobile-brand small { color: #7185a2; }
  .auth-card { margin-top: 0; }
  .auth-login-stage { width: min(520px, 100%); }
  .auth-attendance-menu-trigger {
    top: 18px;
    left: 18px;
    grid-template-columns: 1fr;
    width: 46px;
    min-height: 46px;
    padding: 0;
    border-color: #c9d9eb;
    color: var(--auth-primary);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 26px rgba(24, 54, 96, .15);
  }
  .auth-attendance-menu-trigger:hover { border-color: var(--auth-primary); background: var(--auth-primary-soft); }
  .auth-attendance-trigger-icon { width: 32px; height: 32px; margin: auto; color: var(--auth-primary); background: var(--auth-primary-soft); }
  .auth-attendance-trigger-icon svg { width: 18px; height: 18px; }
  .auth-attendance-trigger-icon i { inset: auto -1px -1px auto; border-color: #fff; }
  .auth-attendance-trigger-copy,
  .auth-attendance-trigger-arrow { display: none; }
  html[data-my-theme="dark"] .auth-attendance-menu-trigger { border-color: #3a516f; background: #13233a; }
}

@media (max-width: 560px) {
  .auth-form-panel { display: block; padding: 18px 12px 24px; }
  .auth-mobile-brand { position: relative; inset: auto; margin: 0 6px 14px; }
  .auth-card { width: 100%; min-height: 0; margin: 0; border-radius: 22px; box-shadow: 0 16px 42px rgba(24, 54, 96, .12); }
  .auth-card > section { padding: 24px 20px 18px; }
  .auth-card-header { margin-bottom: 18px; }
  .auth-card-header h2 { font-size: 23px; }
  .auth-advanced-toggle { min-height: 34px; }
  .auth-advanced-panel { grid-template-columns: 1fr; }
  .auth-card-footer { flex-wrap: wrap; padding-inline: 20px; border-radius: 0 0 22px 22px; }
  .auth-support-footer { grid-template-columns: 1fr; justify-items: center; margin-top: 12px; text-align: center; }
  .auth-support-contacts { flex-wrap: wrap; }
  .auth-recovery-steps small { display: none; }
  .auth-recovery-steps span { grid-template-columns: 1fr; place-items: center; }
  .auth-connection-summary { grid-template-columns: 1fr; }
  .auth-attendance-menu-trigger { top: 12px; left: 12px; }
  .auth-hr-qr-card { width: 100%; padding: 20px 18px; }
  .auth-hr-qr-header { grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 9px; }
  .auth-hr-qr-header h2 { font-size: 16px; }
  .auth-hr-qr-image-shell { width: 194px; height: 194px; }
}

@media (max-width: 380px) {
  .auth-form-options { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-height: 760px) and (min-width: 981px) {
  .auth-form-panel { place-items: start center; padding-block: 20px; }
  .auth-card { min-height: 0; }
  .auth-card > section { padding-block: 23px 17px; }
  .auth-card-header { margin-bottom: 15px; }
  #loginForm { gap: 10px; }
  .auth-demo-note { display: none; }
}

/* MyAuth two-factor dialog */
.auth-two-factor-dialog .auth-dialog-card {
  width: min(92vw, 510px);
  border: 1px solid color-mix(in srgb, var(--auth-primary, #2463eb) 24%, transparent);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.auth-two-factor-copy { margin: 0; color: var(--auth-muted, #64748b); line-height: 1.8; }
.auth-two-factor-targets {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--auth-primary, #2463eb) 8%, transparent);
  color: var(--auth-text, #172033);
  font-size: .88rem;
  text-align: center;
}
.auth-two-factor-otp { margin: 20px 0 12px; }
.auth-two-factor-meta { display: flex; justify-content: center; gap: 8px; color: var(--auth-muted, #64748b); }
.auth-two-factor-meta time { color: var(--auth-primary, #2463eb); font-weight: 800; font-variant-numeric: tabular-nums; }
.auth-two-factor-actions { display: grid !important; gap: 8px; margin-top: 18px; }
.auth-two-factor-actions .auth-primary-button { width: 100%; }
.auth-backup-link { font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.auth-two-factor-dialog[data-busy="true"] .auth-dialog-card { cursor: progress; }

/* Task132: explicit, non-destructive active-session replacement consent. */
.auth-session-replacement-dialog { width: min(560px, calc(100% - 28px)); }
.auth-session-replacement-dialog .auth-dialog-card {
  border-color: color-mix(in srgb, #d97706 36%, #cad8e9);
  box-shadow: 0 30px 90px rgba(71, 43, 9, .3);
}
.auth-session-replacement-icon {
  color: #b45309;
  background: #fff4d8;
}
.auth-session-replacement-body { padding: 20px; }
.auth-session-replacement-body > p {
  margin: 0 0 16px;
  color: #3d4d63;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.8;
}
.auth-session-replacement-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-session-replacement-body li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.auth-session-replacement-body li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #b45309;
  background: #fff4d8;
}
.auth-session-replacement-body li svg { width: 19px; height: 19px; }
.auth-session-replacement-body li b,
.auth-session-replacement-body li small { display: block; }
.auth-session-replacement-body li b { margin: 1px 0 4px; color: var(--auth-navy); font-size: .84rem; }
.auth-session-replacement-body li small { color: var(--auth-muted); font-size: .76rem; line-height: 1.65; }
.auth-session-replacement-actions { align-items: center; }
.auth-session-replacement-actions .auth-secondary-button,
.auth-session-replacement-actions .auth-primary-button { min-height: 44px; }
html[data-my-theme="dark"] .auth-session-replacement-dialog .auth-dialog-card { border-color: #725121; background: #101d31; }
html[data-my-theme="dark"] .auth-session-replacement-dialog .auth-dialog-card > header,
html[data-my-theme="dark"] .auth-session-replacement-actions { border-color: #344862; background: #14243a; }
html[data-my-theme="dark"] .auth-session-replacement-body > p { color: #e5edf9; }
html[data-my-theme="dark"] .auth-session-replacement-body li { border-color: #344862; background: #14243a; }
html[data-my-theme="dark"] .auth-session-replacement-body li b { color: #f3f7fc; }

@media (max-width: 540px) {
  .auth-session-replacement-body { padding: 16px; }
  .auth-session-replacement-dialog .auth-dialog-card > header { padding: 15px 16px; }
  .auth-session-replacement-actions { display: grid !important; grid-template-columns: 1fr; padding: 12px 16px !important; }
  .auth-session-replacement-actions .auth-secondary-button,
  .auth-session-replacement-actions .auth-primary-button { width: 100% !important; }
}
