/* Dova authentication surface 20260826-15 */

:root {
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-deep: #0b1f5f;
  --brand-cyan: #22d3ee;
  --brand-violet: #8b5cf6;
  --auth-form-max-width: 440px;
  --auth-control-height: 48px;
  --auth-control-font-size: 16px;
  --auth-control-radius: 8px;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-muted: #e9eff7;
  --text: #172033;
  --text-soft: #5c6b80;
  --text-muted: #748398;
  --control-border: #b9c8da;
  --danger: #b42318;
  --success: #137a4e;
  --focus-ring: rgba(37, 99, 235, 0.22);
  --auth-shadow: 0 28px 72px rgba(20, 40, 78, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--surface-soft);
  color-scheme: light;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 61fr) minmax(500px, 39fr);
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 664px;
  overflow: hidden;
}

.brand-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  min-width: 0;
  padding: 32px clamp(34px, 3vw, 54px) 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, rgba(41, 155, 255, 0.2), transparent 25%),
    radial-gradient(circle at 22% 18%, rgba(86, 92, 255, 0.2), transparent 31%),
    linear-gradient(145deg, #07183d 0%, #0a245a 46%, #0b1742 100%);
  color: #f7fbff;
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.brand-panel::before {
  top: -15%;
  right: -12%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(110, 210, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(91, 146, 255, 0.04),
    0 0 0 150px rgba(114, 82, 255, 0.025);
}

.brand-panel::after {
  right: 7%;
  bottom: -38%;
  width: 60%;
  height: 58%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.11), transparent 67%);
  filter: blur(8px);
}

.product-lockup {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}

.product-lockup:hover strong {
  color: #c8f8ff;
}

.product-logo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(0, 188, 255, 0.22));
}

.product-logo-frame {
  fill: rgba(48, 114, 255, 0.24);
}

.product-logo-stream {
  fill: none;
  stroke: #6de8ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-logo-transform {
  fill: #70efff;
  stroke: #ffffff;
  stroke-width: 2;
}

.product-logo-output {
  fill: #a78bfa;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linejoin: round;
}

.product-lockup span {
  display: grid;
  gap: 4px;
}

.product-lockup strong {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
  transition: color 160ms ease;
}

.product-lockup small {
  color: #9fc7ee;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.product-lockup em {
  color: #7ce8ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.brand-story {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, 0.94fr) minmax(360px, 1.06fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 24px;
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.eyebrow {
  grid-column: 1;
  align-self: end;
  margin: 0 0 15px;
  color: #71e7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-story h1 {
  grid-column: 1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(46px, 3.45vw, 58px);
  font-weight: 760;
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.brand-story h1 span {
  color: #80e9ff;
}

.brand-lead {
  grid-column: 1;
  max-width: 420px;
  margin: 20px 0 0;
  color: #bdd0e7;
  font-size: 15px;
  line-height: 1.58;
}

.brand-visual {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  height: clamp(600px, 66vh, 640px);
  min-width: 0;
  pointer-events: none;
}

.brand-visual > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.visual-stars {
  fill: #a8f3ff;
  opacity: 0.68;
}

.visual-aura {
  fill: rgba(38, 131, 255, 0.13);
  filter: url("#authSoftGlow");
}

.visual-orbits {
  fill: none;
  stroke: url("#authFlowLine");
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 5 10;
  opacity: 0.72;
}

.visual-cloud > path:first-child {
  fill: url("#authCloudFill");
  stroke: rgba(233, 253, 255, 0.9);
  stroke-width: 2;
}

.visual-cloud-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 4;
  stroke-linecap: round;
}

.visual-beam {
  fill: #d9fbff;
  stroke: #53e9ff;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.92;
}

.platform-side {
  fill: url("#authPlatformSide");
  stroke: rgba(89, 157, 255, 0.72);
  stroke-width: 1.5;
}

.platform-edge {
  fill: rgba(17, 77, 186, 0.82);
  stroke: #51ddff;
  stroke-width: 2;
}

.platform-core {
  fill: url("#authPlatformTop");
  stroke: #b8f9ff;
  stroke-width: 2;
}

.platform-core-line {
  fill: rgba(5, 31, 105, 0.72);
  stroke: #9af3ff;
  stroke-width: 1.5;
}

.visual-network {
  fill: none;
  stroke: url("#authFlowLine");
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.88;
}

.visual-tile {
  fill: none;
  stroke: #77edff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visual-tile .tile-side {
  fill: url("#authTileFill");
  stroke: #3179f5;
}

.visual-tile .tile-top {
  fill: rgba(23, 74, 174, 0.9);
  stroke: #72eaff;
}

.visual-tile-purple {
  stroke: #b79aff;
}

.capability-list {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 9px 12px 9px 10px;
  border: 1px solid rgba(166, 210, 255, 0.14);
  border-radius: 15px;
  background: rgba(6, 24, 63, 0.42);
  backdrop-filter: blur(12px);
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(120, 228, 255, 0.35);
  border-radius: 11px;
  background: rgba(40, 151, 232, 0.17);
  color: #73eaff;
}

.capability-icon-purple {
  border-color: rgba(185, 157, 255, 0.4);
  background: rgba(139, 92, 246, 0.16);
  color: #bda5ff;
}

.capability-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-index {
  display: none;
}

.capability-list li > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.capability-list strong {
  color: #f5fbff;
  font-size: 13px;
  font-weight: 720;
}

.capability-list small {
  color: #9fb5d0;
  font-size: 11.5px;
  line-height: 1.35;
}

.brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: #8fa8c6;
  font-size: 11px;
}

.brand-footer > div {
  display: grid;
  gap: 3px;
}

.brand-footer strong {
  color: #c5d8ed;
  font-size: 11px;
  font-weight: 700;
}

.brand-footer nav {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.brand-footer a {
  text-underline-offset: 3px;
  text-decoration-color: rgba(159, 199, 238, 0.34);
}

.brand-footer a:hover {
  color: #e7f8ff;
}

.access-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 32px clamp(24px, 3vw, 64px);
  overflow-y: auto;
  background: #071522;
}

.access-frame {
  width: min(100%, 536px);
  min-width: 0;
}

.access-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 660px;
  padding: 46px 48px 42px;
  border: 1px solid rgba(142, 188, 255, 0.34);
  border-radius: 32px;
  background: #101d2d;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.04);
}

.access-header,
#loginForm,
#firstLoginForm,
#registrationForm,
.security-note {
  width: min(100%, var(--auth-form-max-width));
}

.access-header {
  margin-bottom: 28px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #315e9f;
  border-radius: 999px;
  background: rgba(20, 56, 110, 0.66);
  color: #67a8ff;
}

.access-welcome {
  margin: 32px 0 0;
  color: #b8c7dc;
  font-size: 16px;
  line-height: 1.3;
}

.access-panel .DOVA_BUTTON--secondary {
  border-color: #405b82;
  background: rgba(9, 28, 62, 0.52);
  color: #e8eef8;
}

.access-panel .DOVA_BUTTON--secondary:hover {
  border-color: #6f91c0;
  background: rgba(24, 57, 104, 0.72);
  color: #ffffff;
}

.access-panel .security-note,
.access-panel .step-intro,
.access-panel .trust-device small,
.access-panel .password-requirements {
  color: #9fb0c6;
}

.access-panel .field-action { color: #91a8c6; }
.access-panel .field-action:hover { background: rgba(39, 73, 120, 0.42); color: #ffffff; }

.access-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.access-header h2 {
  margin: 5px 0 7px;
  color: #f7f9ff;
  font-size: 34px;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.038em;
}

.access-header > p:last-child {
  margin: 0;
  color: #aebed3;
  font-size: 15px;
  line-height: 1.5;
}

form {
  min-width: 0;
  margin: 0;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0 0 16px;
}

.field label,
.setup label {
  color: #e8eef8;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.input-shell {
  position: relative;
  min-width: 0;
}

.field-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #90a6c4;
  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%;
  height: var(--auth-control-height);
  min-width: 0;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #405b82;
  border-radius: var(--auth-control-radius);
  outline: 0 solid transparent;
  background: rgba(9, 28, 62, 0.72);
  color: #f2f6fc;
  font-size: var(--auth-control-font-size);
  line-height: 1.25;
  box-shadow: none;
  transition:
    border-color 140ms ease,
    outline-color 140ms ease,
    background-color 140ms ease;
}

select {
  padding-right: 34px;
  cursor: pointer;
}

.input-shell input:not([type="checkbox"]):not([type="hidden"]) {
  padding-left: 42px;
}

.input-shell input[type="password"],
.input-shell input[type="text"] {
  padding-right: 52px;
}

input::placeholder {
  color: #8295b0;
  opacity: 1;
}

input:not([type="checkbox"]):not([type="hidden"]):focus,
select:focus {
  border-color: var(--brand);
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

input[readonly] {
  background: #f4f7fb;
  color: #47566c;
}

.DOVA_BUTTON {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: var(--auth-control-height);
  min-height: var(--auth-control-height);
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--auth-control-radius);
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.DOVA_BUTTON svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.DOVA_BUTTON--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

.DOVA_BUTTON--primary:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.DOVA_BUTTON--secondary {
  border-color: #c7d3e2;
  background: #ffffff;
  color: #334157;
}

.DOVA_BUTTON--secondary:hover {
  border-color: #9fb1c7;
  background: #f4f7fb;
  color: #172033;
}

.DOVA_BUTTON:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.DOVA_BUTTON:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.auth-sign-in {
  margin-top: 2px;
}

.auth-sign-in::after {
  display: none;
  content: "";
}

.sso-divider{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:#7b8ba0;font-size:11px}.sso-divider::before,.sso-divider::after{content:"";height:1px;flex:1;background:#d8e0ea}.sso-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sso-button{min-height:42px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #c7d3e2;border-radius:6px;background:#fff;color:#25364e;font-size:12px;font-weight:650;text-decoration:none}.sso-button:hover{border-color:#8fa9ca;background:#f6f9fc}.sso-button svg{width:18px;height:18px;flex:none}

.auth-create-account,
#backToLogin,
#continueToApp,
#cancelFirstLogin,
#backToSignIn {
  margin-top: 12px;
}

.field-action {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #63738a;
}

.field-action:hover {
  background: #edf3fa;
  color: #26364d;
}

.field-action .eye-closed {
  display: none;
}

.field-action[aria-pressed="true"] .eye-open {
  display: none;
}

.field-action[aria-pressed="true"] .eye-closed {
  display: inline;
}

.message {
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid #d2deeb;
  border-radius: 10px;
  background: #f5f8fc;
  color: #44536a;
  font-size: 14px;
  line-height: 1.4;
}

.message:empty {
  display: none;
}

.message.error {
  border-color: #f0b9b4;
  background: #fff3f2;
  color: var(--danger);
}

.message.success {
  border-color: #a9dcc4;
  background: #effaf4;
  color: var(--success);
}

.step-intro {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.setup {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
  background: #f7f9fc;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 15px;
}

.step-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e8f0ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.step-heading > div {
  display: grid;
  gap: 3px;
}

.step-heading strong {
  color: #27354b;
  font-size: 13px;
}

.step-heading small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.verification-heading {
  margin-top: 2px;
}

.mfa-qr {
  width: 190px;
  height: 190px;
  margin: 14px auto 16px;
  border: 10px solid #ffffff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #d6e1ed;
}

details {
  color: var(--text-soft);
  font-size: 13px;
}

summary {
  margin-bottom: 12px;
  color: #34445a;
  font-weight: 680;
  cursor: pointer;
}

.secret-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 7px;
}

.compact {
  width: auto;
  height: 40px;
  min-height: 40px;
  align-self: center;
  padding-inline: 14px;
}

#mfaCode {
  text-align: center;
  letter-spacing: 0.14em;
}

.trust-device {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 0 18px;
  color: #334157;
  cursor: pointer;
}

.trust-device input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.trust-device span {
  display: grid;
  gap: 3px;
}

.trust-device strong {
  font-size: 13px;
}

.trust-device small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #d4dfec;
  border-radius: 12px;
  background: #f7f9fc;
  color: #25354c;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.password-requirements {
  margin: -3px 0 18px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.registrationTrap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e1e8f1;
  color: #66758a;
  font-size: 11px;
  line-height: 1.45;
}

.security-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-note > span {
  display: grid;
  gap: 4px;
}

.security-note small {
  color: #7f94ae;
  font-size: 10px;
  line-height: 1.4;
}

.access-footer {
  display: none;
}

@media (min-width: 1201px) and (max-height: 900px) {
  .brand-panel {
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .brand-story {
    align-content: center;
  }

  .brand-story h1 {
    font-size: clamp(42px, 3.1vw, 52px);
  }

  .brand-lead {
    margin-top: 15px;
  }

  .brand-visual {
    height: clamp(440px, 53vh, 480px);
  }

  .capability-list {
    margin-top: 14px;
  }

  .access-panel {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .access-inner {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 34px;
  }
}

@media (max-width: 1200px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 540px);
  }

  .brand-panel {
    padding: 30px;
  }

  .brand-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: center;
    max-width: 520px;
  }

  .brand-story h1 {
    font-size: clamp(34px, 4vw, 48px);
  }

  .brand-lead {
    font-size: 14px;
  }

  .brand-visual {
    display: none;
  }

  .capability-list {
    grid-column: 1;
    margin-top: 24px;
  }

  .capability-list li {
    grid-template-columns: 34px 23px minmax(0, 1fr);
    min-height: 64px;
    padding: 8px 10px;
  }

  .capability-icon {
    width: 34px;
    height: 34px;
  }

  .brand-footer {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

  .access-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    min-width: 0;
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }

  .brand-panel {
    display: block;
    min-height: 0;
    padding: 14px 20px;
  }

  .brand-panel::before,
  .brand-panel::after,
  .brand-story,
  .brand-footer {
    display: none;
  }

  .product-logo {
    width: 48px;
    height: 48px;
  }

  .product-lockup {
    gap: 11px;
  }

  .product-lockup strong {
    font-size: 18px;
  }

  .product-lockup small {
    font-size: 9px;
  }

  .access-panel {
    place-items: start center;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    padding: 18px 10px 28px;
    overflow: visible;
  }

  .access-frame {
    width: min(100%, 540px);
  }

  .access-inner {
    min-height: 0;
    padding: 34px 36px;
    border-color: #dce5f1;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(42, 66, 104, 0.12);
  }

  .access-panel {
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
  }

  .access-header h2,
  .field label,
  .setup label,
  .step-heading strong,
  .trust-device,
  summary {
    color: #172033;
  }

  .access-header > p:last-child,
  .access-welcome,
  .security-note,
  .step-intro,
  .trust-device small,
  .password-requirements {
    color: #66758a;
  }

  input:not([type="checkbox"]):not([type="hidden"]),
  select {
    border-color: #c7d3e3;
    background: #ffffff;
    color: #172033;
  }
}

@media (max-width: 520px) {
  .brand-panel {
    padding: 13px 16px;
  }

  .product-logo {
    width: 46px;
    height: 46px;
  }

  .access-panel {
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    padding: 10px 10px 24px;
  }

  .access-frame {
    width: 100%;
    max-width: none;
  }

  .access-inner {
    width: 100%;
    padding: 28px 20px 26px;
    border-radius: 24px;
  }

  .access-header {
    margin-bottom: 24px;
  }

  .access-header h2 {
    font-size: 28px;
  }

  .access-header > p:last-child {
    font-size: 14px;
  }

  .registration-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .compact {
    height: 44px;
    min-height: 44px;
  }

  .recovery-codes {
    font-size: 11px;
  }
}

@media (prefers-color-scheme: dark) {
  .sso-divider{color:#8fa1b7}.sso-divider::before,.sso-divider::after{background:#2c3e52}.sso-button{border-color:#40536b;background:#122238;color:#e8eef7}.sso-button:hover{border-color:#6682a4;background:#182d48}
  html:root {
    color-scheme: dark;
  }

  html {
    color-scheme: dark;
    background: #07111d;
  }

  body {
    background: #07111d;
    color: #dce5f1;
  }

  .access-panel {
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 107, 222, 0.15), transparent 36%),
      #091421;
  }

  .access-inner {
    border-color: #26384d;
    background: #111d2c;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  }

  .access-badge {
    border-color: #304863;
    background: #15263a;
    color: #80b0ff;
  }

  .access-header h2 {
    color: #f1f5fb;
  }

  .access-header > p:last-child,
  .step-intro,
  .trust-device small,
  .password-requirements {
    color: #a9b8ca;
  }

  .field label,
  .setup label,
  .step-heading strong,
  .trust-device,
  summary {
    color: #dce5f1;
  }

  input:not([type="checkbox"]):not([type="hidden"]),
  select {
    border-color: #40546c;
    background: #0b1624;
    color: #edf3fa;
  }

  input[readonly] {
    background: #101e2d;
    color: #becbdd;
  }

  input::placeholder {
    color: #78899e;
  }

  .field-icon,
  .field-action {
    color: #91a2b8;
  }

  .field-action:hover {
    background: #192a3e;
    color: #e3ebf5;
  }

  .DOVA_BUTTON--secondary {
    border-color: #3b4f67;
    background: #152334;
    color: #dce5f1;
  }

  .DOVA_BUTTON--secondary:hover {
    border-color: #58708b;
    background: #1a2c42;
    color: #ffffff;
  }

  .setup,
  .recovery-codes {
    border-color: #32465e;
    background: #0d1927;
    color: #dce5f1;
  }

  .step-heading > span {
    background: #172b47;
    color: #86b2ff;
  }

  .step-heading small,
  details {
    color: #a5b4c6;
  }

  .message {
    border-color: #34485e;
    background: #132235;
    color: #c6d2e1;
  }

  .message.error {
    border-color: #70423f;
    background: #2d1b1c;
    color: #ffb4ad;
  }

  .message.success {
    border-color: #2d5c4a;
    background: #10271f;
    color: #8ce0b7;
  }

  .security-note {
    border-color: #2c3e52;
    color: #96a7ba;
  }
}

/* Enterprise split-login layout. The authentication logic remains unchanged. */
@media (min-width: 901px) {
  .auth-shell {
    grid-template-columns: minmax(720px, 54fr) minmax(560px, 46fr);
  }

  .brand-panel {
    gap: 16px;
    padding: 30px clamp(38px, 3.2vw, 62px) 22px;
    background:
      radial-gradient(circle at 80% 48%, rgba(27, 111, 255, 0.3), transparent 28%),
      radial-gradient(circle at 24% 12%, rgba(23, 79, 205, 0.28), transparent 34%),
      linear-gradient(145deg, #061748 0%, #062774 52%, #041d58 100%);
  }

  .brand-story {
    grid-template-columns: minmax(340px, 0.92fr) minmax(320px, 1.08fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    column-gap: 18px;
    align-content: center;
  }

  .brand-story h1 {
    max-width: 520px;
    font-size: clamp(34px, 2.55vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .brand-lead {
    max-width: 500px;
    margin-top: 17px;
    font-size: 14px;
  }

  .brand-visual {
    align-self: center;
    height: clamp(430px, 55vh, 560px);
  }

  .capability-list {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    align-self: center;
    gap: 8px;
    margin-top: 22px;
  }

  .capability-list li {
    min-height: 54px;
    padding: 7px 10px;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    backdrop-filter: none;
  }

  .capability-list li:hover {
    border-color: rgba(132, 204, 255, 0.18);
    background: rgba(17, 65, 151, 0.34);
  }

  .capability-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(30, 130, 255, 0.48), rgba(13, 68, 184, 0.38));
  }

  .brand-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(135, 191, 255, 0.14);
  }

  .access-panel {
    padding: 28px clamp(28px, 4vw, 76px);
    background:
      radial-gradient(circle at 100% 100%, rgba(66, 119, 255, 0.1), transparent 32%),
      linear-gradient(145deg, #f8fbff, #edf3fb);
  }

  .access-frame {
    width: min(100%, 608px);
  }

  .access-inner {
    min-height: 0;
    padding: 42px 44px 34px;
    border-color: #dce5f1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 58px rgba(42, 66, 104, 0.15);
  }

  .access-header {
    margin-bottom: 22px;
    text-align: center;
  }

  .access-badge {
    border-color: #bdd2f4;
    background: #f2f7ff;
    color: #1d5fd1;
  }

  .access-welcome {
    margin-top: 22px;
    color: #60708a;
  }

  .access-header h2 {
    color: #101a35;
  }

  .access-header > p:last-child,
  .access-panel .step-intro,
  .access-panel .trust-device small,
  .access-panel .password-requirements {
    color: #67758d;
  }

  .access-panel .field label,
  .access-panel .setup label,
  .access-panel .step-heading strong,
  .access-panel .trust-device,
  .access-panel summary {
    color: #18233d;
  }

  .access-panel input:not([type="checkbox"]):not([type="hidden"]),
  .access-panel select {
    border-color: #c7d3e3;
    background: #ffffff;
    color: #172033;
  }

  .access-panel input::placeholder {
    color: #8995a8;
  }

  .access-panel input:-webkit-autofill,
  .access-panel input:-webkit-autofill:hover,
  .access-panel input:-webkit-autofill:focus {
    -webkit-text-fill-color: #172033;
    caret-color: #172033;
    box-shadow: 0 0 0 1000px #ffffff inset;
  }

  .access-panel input:not([type="checkbox"]):not([type="hidden"]):focus,
  .access-panel select:focus {
    border-color: var(--brand);
  }

  .access-panel .field-icon,
  .access-panel .field-action {
    color: #718099;
  }

  .access-panel .field-action:hover {
    background: #edf3fb;
    color: #1d4ed8;
  }

  .sso-divider {
    margin-top: 0;
    color: #6d7890;
  }

  .sso-divider::before,
  .sso-divider::after {
    background: #dbe3ee;
  }

  .sso-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sso-button {
    border-color: #cbd6e5;
    background: #ffffff;
    color: #172033;
  }

  .sso-button:hover {
    border-color: #82a9e8;
    background: #f4f8ff;
  }

  .access-panel .DOVA_BUTTON--secondary {
    border-color: #9fb2cb;
    background: #ffffff;
    color: #172033;
  }

  .access-panel .DOVA_BUTTON--secondary:hover {
    border-color: #5e83bb;
    background: #f3f7fc;
    color: #0f2550;
  }

  .access-panel .security-note {
    border-color: #dbe3ee;
    color: #53647c;
  }

  .access-panel .security-note small {
    color: #6e7f96;
  }
}

@media (min-width: 1201px) and (max-height: 900px) {
  .brand-story h1 {
    font-size: clamp(32px, 2.35vw, 42px);
  }

  .brand-visual {
    height: clamp(390px, 47vh, 430px);
  }

  .capability-list {
    gap: 3px;
    margin-top: 10px;
  }

  .capability-list li {
    min-height: 48px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .access-inner {
    padding-top: 30px;
    padding-bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
