/* Dova authentication surface 20260915-2 */
:root {
  --brand: var(--dova-color-brand);
  --brand-strong: var(--dova-color-brand-hover);
  --auth-form-max-width: 440px;
  --auth-control-height: var(--dova-control-large);
  --auth-control-font-size: 16px;
  --auth-control-radius: var(--dova-radius-lg);
  --auth-page: #f5f8fc;
  --auth-surface: var(--dova-color-surface);
  --auth-input: #fbfcfe;
  --auth-text: var(--dova-color-text);
  --auth-muted: #596b82;
  --auth-border: #c8d3e2;
  --auth-line: #e5ebf3;
  --auth-soft-blue: #edf3ff;
  --auth-error: #ad3029;
  --auth-error-bg: #fff1ef;
  --auth-error-border: #edc1bc;
  --auth-success: #137447;
  --auth-success-bg: #eaf7f0;
  --auth-success-border: #b4dbc4;
  --focus-ring: var(--dova-focus-ring);
  color-scheme: light;
  font-family: var(--dova-font-family);
  font-synthesis: none;
}

:root[data-dova-theme="night"] {
  --auth-page: #0f1927;
  --auth-surface: #142131;
  --auth-input: #101c2b;
  --auth-text: #edf3fb;
  --auth-muted: #acbcd0;
  --auth-border: #43556d;
  --auth-line: #2c3c51;
  --auth-soft-blue: #203352;
  --auth-error: #ffb4ad;
  --auth-error-bg: #392322;
  --auth-error-border: #80524c;
  --auth-success: #8ce0b7;
  --auth-success-bg: #15382c;
  --auth-success-border: #427c62;
  --dova-focus-ring: #9dbcf8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--auth-page); }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--auth-page);
  color: var(--auth-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--dova-focus-ring); outline-offset: 3px; }
#authTitle:focus { outline: 3px solid var(--dova-focus-ring); outline-offset: 5px; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  min-height: 100vh;
  min-height: 100svh;
}
.brand-panel {
  --dova-focus-ring: #9dbcf8;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 52px;
  min-width: 0;
  padding: clamp(28px, 4.2vw, 68px);
  color: #eef6ff;
  background:
    radial-gradient(ellipse at 25% 88%, #104275 0%, transparent 55%),
    linear-gradient(145deg, #0a1a35, #0b2a51);
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(#5683b72b 1px, transparent 1px), linear-gradient(90deg, #5683b72b 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent 5%, #000 95%);
}
.product-lockup {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  max-width: 100%;
  text-decoration: none;
}
.product-logo { width: 48px; height: 48px; overflow: visible; }
.product-logo-frame { fill: #f4f9ff; }
.product-logo-stream { fill: none; stroke: #6de8ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.product-logo-transform { fill: #70efff; stroke: #fff; stroke-width: 2; }
.product-logo-output { fill: #a78bfa; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.product-lockup > span { min-width: 0; }
.product-lockup strong { display: block; font-size: 1.8rem; letter-spacing: -.045em; line-height: 1.05; font-weight: 750; }
.product-lockup small { display: block; margin-top: 7px; font-size: .6875rem; font-weight: 600; letter-spacing: .15em; color: #adbfda; }
.product-lockup:hover strong { color: #b3f0fb; }
.brand-story { width: 100%; max-width: 510px; min-width: 0; margin: auto 0; padding: 18px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #9ddbed; font-size: .6875rem; letter-spacing: .16em; font-weight: 650; }
.eyebrow::before { content: ""; flex: 0 0 25px; height: 2px; background: #5bcee6; }
.brand-story h2 { margin: 0; font-size: clamp(2.25rem, 3.6vw, 3.75rem); line-height: 1.14; font-weight: 600; letter-spacing: -.045em; overflow-wrap: anywhere; }
.brand-story h2 span { color: #81dcee; }
.brand-lead { max-width: 340px; margin: 24px 0 0; color: #b9cce1; line-height: 1.75; }
.brand-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 42px 0 0; }
.brand-flow li { position: relative; min-width: 0; padding: 19px 8px 16px; text-align: center; background: #17385a85; border: 1px solid #7196bb45; border-radius: 12px; }
.brand-flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 1px); width: 12px; top: 37px; border-top: 1px solid #74a7c8; }
.brand-flow li:nth-child(2) { background: #1e568075; border-color: #7ed6e56b; }
.brand-flow svg { width: 27px; height: 27px; margin: 0 auto 13px; color: #90e5f2; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-flow strong { display: block; font-size: .8125rem; font-weight: 550; overflow-wrap: anywhere; }
.brand-footer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; color: #a9bfd6; font-size: .75rem; }
.brand-footer > div { display: grid; gap: 5px; }
.brand-footer strong { font-weight: 650; color: #e0edfb; }
.brand-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.brand-footer a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: 3px; }
.brand-footer a:hover { color: #fff; }
.access-panel { display: flex; flex-direction: column; min-width: 0; padding: 24px clamp(24px, 5.2vw, 88px); background: var(--auth-surface); }
.access-tools { display: flex; justify-content: flex-end; min-width: 0; margin-bottom: 8px; }
.access-panel .auth-theme-toggle { width: auto; min-height: 44px; gap: 8px; padding: 8px 12px; font-size: .8125rem; }
.theme-sun { display: none; }
:root[data-dova-theme="night"] .theme-moon { display: none; }
:root[data-dova-theme="night"] .theme-sun { display: block; }
.access-frame { width: min(100%, var(--auth-form-max-width)); min-width: 0; margin: auto; }
.access-inner { min-width: 0; padding: 28px 0; }
.access-header { margin-bottom: 30px; }
.access-badge { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 22px; border: 1px solid var(--auth-line); border-radius: 11px; background: var(--auth-soft-blue); color: var(--dova-color-brand-text); }
.access-badge svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.access-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.access-header h1 { margin: 0 0 10px; font-size: 2rem; line-height: 1.2; font-weight: 650; letter-spacing: -.045em; overflow-wrap: anywhere; }
.access-header > p:last-child { margin: 0; color: var(--auth-muted); font-size: .9375rem; }
form { min-width: 0; margin: 0; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0 0 19px; }
.field label, .setup label { color: var(--auth-text); font-size: .875rem; font-weight: 600; }
.input-shell { position: relative; min-width: 0; }
.field-icon { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: var(--auth-muted); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
input:not([type="checkbox"]):not([type="hidden"]), select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--auth-control-height);
  margin: 0;
  padding: 12px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-control-radius);
  background: var(--auth-input);
  color: var(--auth-text);
  font-size: var(--auth-control-font-size);
  line-height: 1.4;
}
.input-shell input:not([type="checkbox"]):not([type="hidden"]) { padding-left: 42px; }
.input-shell input[type="password"], .input-shell input[type="text"] { padding-right: 54px; }
input::placeholder { color: var(--auth-muted); opacity: 1; }
input:not([type="checkbox"]):not([type="hidden"]):focus, select:focus { border-color: var(--dova-focus-ring); outline: 3px solid var(--focus-ring); outline-offset: 1px; }
input[readonly] { color: var(--auth-muted); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--auth-text); caret-color: var(--auth-text); box-shadow: 0 0 0 1000px var(--auth-input) inset; }
select { cursor: pointer; }
.access-panel .DOVA_BUTTON { max-width: 100%; min-width: 0; width: 100%; border-radius: var(--auth-control-radius); padding: 11px 16px; font-size: .9375rem; font-weight: 600; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.access-panel .DOVA_BUTTON--secondary { border-color: var(--auth-border); background: var(--auth-surface); color: var(--auth-text); }
.access-panel .DOVA_BUTTON--secondary:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--auth-muted); background: var(--auth-page); color: var(--auth-text); }
.access-panel .DOVA_BUTTON svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.access-panel .auth-theme-toggle { width: auto; padding: 8px 12px; font-size: .8125rem; }
.auth-sign-in { margin-top: 6px; }
.sso-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sso-actions > :only-child, .sso-actions[data-provider-count="1"] > a { grid-column: 1 / -1; }
.access-panel .sso-button { gap: 9px; padding-inline: 10px; }
.access-panel .sso-button svg { width: 19px; height: 19px; fill: revert; stroke: none; }
.sso-divider { display: flex; align-items: center; gap: 16px; margin: 26px 0; color: var(--auth-muted); font-size: .75rem; }
.sso-divider::before, .sso-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.access-panel .field-action { position: absolute; top: 2px; right: 2px; bottom: 2px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--auth-muted); }
.access-panel .field-action:hover { background: var(--auth-soft-blue); color: var(--dova-color-brand-text); }
.field-action .eye-closed { display: none; }
.field-action[aria-pressed="true"] .eye-open { display: none; }
.field-action[aria-pressed="true"] .eye-closed { display: inline; }
.access-panel .auth-create-account { gap: 4px; margin-top: 17px; padding: 8px 0; border-color: transparent; background: transparent; color: var(--dova-color-brand-text); }
.access-panel .auth-create-account:hover:not(:disabled) { border-color: transparent; background: var(--auth-soft-blue); color: var(--dova-color-brand-text); }
.auth-create-account > svg { display: none; }
.auth-create-account small { font-size: inherit; font-weight: 400; color: var(--auth-muted); }
.message { margin: 0 0 18px; padding: 13px 15px; border: 1px solid var(--auth-border); border-radius: 8px; background: var(--auth-soft-blue); color: var(--auth-text); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.message:empty, .copy-status:empty { display: none; }
.message.error { border-color: var(--auth-error-border); background: var(--auth-error-bg); color: var(--auth-error); }
.message.success { border-color: var(--auth-success-border); background: var(--auth-success-bg); color: var(--auth-success); }
.step-intro { margin: 0 0 20px; color: var(--auth-muted); font-size: .875rem; }
.setup { min-width: 0; margin-bottom: 22px; padding: 16px; border: 1px solid var(--auth-border); border-radius: 12px; background: var(--auth-input); }
.step-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.step-heading > span { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; background: var(--auth-soft-blue); color: var(--dova-color-brand-text); font-size: .75rem; font-weight: 700; }
.step-heading > div { display: grid; min-width: 0; gap: 3px; }
.step-heading strong { color: var(--auth-text); font-size: .8125rem; }
.step-heading small { color: var(--auth-muted); font-size: .75rem; }
.mfa-qr { display: block; width: min(190px, 100%); height: auto; aspect-ratio: 1; margin: 14px auto 16px; border: 10px solid #fff; border-radius: 10px; background: #fff; }
details { min-width: 0; color: var(--auth-muted); font-size: .8125rem; }
summary { min-height: 44px; padding-block: 10px; color: var(--auth-text); cursor: pointer; font-weight: 600; }
.secret-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; margin-top: 8px; }
.secret-row .DOVA_BUTTON { width: auto; padding-inline: 12px; }
#mfaCode { text-align: center; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.trust-device { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 22px; color: var(--auth-text); font-size: .875rem; cursor: pointer; }
.trust-device input { width: var(--dova-checkbox-size, 18px); min-width: var(--dova-checkbox-size, 18px); height: var(--dova-checkbox-size, 18px); flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--brand); cursor: pointer; }
.trust-device > span { display: grid; gap: 4px; min-width: 0; }
.trust-device strong { font-weight: 600; }
.trust-device small { color: var(--auth-muted); font-size: .75rem; }
.recovery-codes { max-width: 100%; margin: 0 0 18px; padding: 14px; border: 1px solid var(--auth-border); border-radius: 10px; background: var(--auth-input); color: var(--auth-text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.copy-status { color: var(--auth-muted); font-size: .8125rem; margin: 0 0 16px; }
.password-requirements { margin: -3px 0 20px; color: var(--auth-muted); font-size: .8125rem; }
#backToLogin, #continueToApp, #cancelFirstLogin, #backToSignIn { margin-top: 12px; }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.registrationTrap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.security-note { display: flex; align-items: flex-start; gap: 9px; margin: 27px 0 0; padding-top: 14px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: .75rem; line-height: 1.6; }
.security-note svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-note > span { display: grid; gap: 4px; min-width: 0; }
.security-note small { color: var(--auth-muted); font-size: .6875rem; }
.access-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding-top: 12px; color: var(--auth-muted); font-size: .75rem; }
.access-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; }
.access-footer a { display: inline-flex; align-items: center; min-height: 36px; text-underline-offset: 3px; }
.access-footer a:hover { color: var(--dova-color-brand-text); }

@media (max-width: 1200px) {
  .brand-panel { padding: 32px; }
  .brand-story h2 { font-size: 2.5rem; }
  .brand-flow { gap: 8px; }
  .brand-flow li:not(:last-child)::after { width: 8px; }
  .access-panel { padding: 20px 28px; }
}
@media (max-width: 760px) {
  .auth-shell { display: flex; flex-direction: column; }
  .brand-panel { padding: max(21px, env(safe-area-inset-top)) 24px 21px; gap: 0; }
  .product-lockup { gap: 10px; }
  .product-logo { width: 36px; height: 36px; }
  .product-lockup strong { font-size: 1.5rem; }
  .product-lockup small { margin-top: 5px; font-size: .625rem; }
  .brand-story, .brand-footer { display: none; }
  .access-panel { flex: 1; padding: 12px 24px max(20px, env(safe-area-inset-bottom)); }
  .access-tools { margin-bottom: 0; }
  .access-inner { padding: 16px 0 26px; }
  .access-badge { display: none; }
  .access-header { margin-bottom: 26px; }
  .access-header h1 { font-size: 1.75rem; }
  .access-footer a { min-width: 44px; min-height: var(--auth-control-height); justify-content: center; }
}
@media (max-width: 520px) {
  .brand-panel, .access-panel { padding-left: 20px; padding-right: 20px; }
  .sso-actions { gap: 8px; }
  .registration-grid { grid-template-columns: minmax(0, 1fr); }
  .setup { padding: 12px; }
}

/* Follow the OS before JavaScript initializes; an explicit choice always wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-dova-theme]) {
    --auth-page: #0f1927;
    --auth-surface: #142131;
    --auth-input: #101c2b;
    --auth-text: #edf3fb;
    --auth-muted: #acbcd0;
    --auth-border: #43556d;
    --auth-line: #2c3c51;
    --auth-soft-blue: #203352;
    --auth-error: #ffb4ad;
    --auth-error-bg: #392322;
    --auth-error-border: #80524c;
    --auth-success: #8ce0b7;
    --auth-success-bg: #15382c;
    --auth-success-border: #427c62;
    --dova-color-brand: #3867c7;
    --dova-color-brand-hover: #315bb4;
    --dova-color-brand-text: #9dbcf8;
    --dova-focus-ring: #9dbcf8;
    color-scheme: dark;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
