/*
  AMMOR auth polish layer.
  Visual only: does not change Supabase, credentials, session, redirects, or role logic.
*/

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(212,175,55,0.16), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(96,165,250,0.08), transparent 30%),
    linear-gradient(180deg, #05070d 0%, #0b0f19 52%, #05070d 100%) !important;
}

body::before {
  opacity: 0.95;
}

body::after {
  opacity: 0.42 !important;
  background-size: 44px 44px !important;
}

.card {
  position: relative;
  max-width: 484px !important;
  padding: 42px 38px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025) 46%, rgba(212,175,55,0.055)),
    rgba(11,15,25,0.94) !important;
  box-shadow:
    0 28px 90px rgba(0,0,0,0.48),
    0 0 0 1px rgba(212,175,55,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(245,208,111,0.11) 48%, transparent 62%),
    radial-gradient(circle at 50% 0%, rgba(212,175,55,0.14), transparent 34%);
  transform: translateX(-74%);
  animation: ammor-auth-sweep 7s ease-in-out infinite;
}

.card > * {
  position: relative;
  z-index: 1;
}

.logo {
  margin-bottom: 30px !important;
}

.brand-auth-logo {
  width: 78px !important;
  height: 78px !important;
  padding: 4px;
  border-radius: 18px !important;
  background: rgba(5,7,13,0.92) !important;
}

.logo-name {
  color: #f8fafc;
  font-family: var(--am-font, Inter, sans-serif) !important;
  font-size: 15px !important;
  letter-spacing: 0.16em !important;
}

.logo-sub {
  color: #94a3b8 !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

.title {
  color: #f8fafc !important;
  font-family: var(--am-font, Inter, sans-serif) !important;
  font-size: 28px !important;
  font-weight: 780 !important;
  line-height: 1.16 !important;
}

.subtitle {
  color: #cbd5e1 !important;
  font-size: 15px !important;
}

.portal-switch {
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.portal-link {
  min-height: 46px !important;
  border-radius: 9px !important;
}

.portal-link.active {
  color: #05070d !important;
  background: #d4af37 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 12px 30px rgba(212,175,55,0.20) !important;
}

.field label {
  color: #94a3b8 !important;
}

.field input {
  min-height: 48px;
  background: rgba(5,7,13,0.54) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: #f8fafc !important;
}

.field input:focus {
  border-color: rgba(245,208,111,0.72) !important;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18) !important;
}

.btn {
  min-height: 48px !important;
  border-radius: 10px !important;
  background: #d4af37 !important;
  color: #05070d !important;
  box-shadow: 0 16px 42px rgba(212,175,55,0.18);
}

.btn:hover {
  background: #f5d06f !important;
}

.security {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035) !important;
  color: #94a3b8 !important;
}

@keyframes ammor-auth-sweep {
  0%, 42%, 100% { transform: translateX(-76%); opacity: 0.38; }
  58% { transform: translateX(74%); opacity: 0.74; }
}

@media (max-width: 420px) {
  .card {
    padding: 34px 22px !important;
    border-radius: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card::before {
    animation: none !important;
  }
}

/* Premium portal access environment. Visual-only: auth IDs and logic stay unchanged. */
body.ammor-auth-shell {
  --auth-accent: #d4af37;
  --auth-accent-2: #f5d06f;
  --auth-blue: #5ed6ff;
  --auth-surface: rgba(11, 15, 25, .72);
  display: grid !important;
  grid-template-columns: minmax(320px, 560px) minmax(360px, 500px);
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(28px, 6vw, 88px);
  min-height: 100dvh !important;
  padding: clamp(22px, 5vw, 64px) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 72% 12%, rgba(212,175,55,.14), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(94,214,255,.10), transparent 30%),
    linear-gradient(135deg, #05070d 0%, #07111f 45%, #05070d 100%) !important;
}

body.ammor-auth-shell[data-portal="government"] {
  --auth-accent: #d4af37;
  --auth-accent-2: #f7d879;
  --auth-blue: #7dd3fc;
}

body.ammor-auth-shell[data-portal="insurance"] {
  --auth-accent: #d4af37;
  --auth-accent-2: #f5d06f;
  --auth-blue: #38bdf8;
}

body.ammor-auth-shell::before {
  opacity: .42 !important;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) !important;
  background-size: 54px 54px !important;
  mask-image: radial-gradient(circle at 50% 42%, #000 0 38%, transparent 76%) !important;
}

body.ammor-auth-shell::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  opacity: .58 !important;
  background:
    conic-gradient(from 230deg at 28% 44%, transparent 0 58deg, rgba(212,175,55,.18) 74deg, transparent 92deg 360deg),
    linear-gradient(108deg, transparent 0 38%, rgba(94,214,255,.055) 48%, rgba(212,175,55,.11) 53%, transparent 65%) !important;
  animation: auth-field-drift 16s ease-in-out infinite alternate;
}

.auth-scene {
  position: relative;
  z-index: 1;
  width: min(560px, 42vw);
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 42%, rgba(212,175,55,.23), transparent 27%),
    radial-gradient(circle at 70% 58%, rgba(94,214,255,.13), transparent 34%),
    linear-gradient(145deg, rgba(17,24,39,.64), rgba(5,7,13,.36));
  box-shadow:
    0 34px 120px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.auth-scene::before,
.auth-scene::after,
.auth-data-mesh::before,
.auth-data-mesh::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-scene::before {
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 52%, #000 0 48%, transparent 78%);
}

.auth-scene::after {
  width: 64%;
  aspect-ratio: 1;
  left: 17%;
  top: 12%;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 58px rgba(212,175,55,.16);
  animation: auth-orbit-breathe 9s ease-in-out infinite;
}

.auth-data-mesh {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 44%, var(--auth-accent-2) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 35%, var(--auth-blue) 0 5px, transparent 6px),
    radial-gradient(circle at 54% 76%, var(--auth-accent) 0 4px, transparent 5px);
  filter: drop-shadow(0 0 20px rgba(245,208,111,.38));
  animation: auth-mesh-float 12s ease-in-out infinite;
}

.auth-data-mesh::before {
  inset: 4% 9% 20% 11%;
  border: 1px solid rgba(245,208,111,.22);
  border-left-color: transparent;
  border-bottom-color: rgba(94,214,255,.18);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.auth-data-mesh::after {
  inset: 26% 10% 28% 12%;
  background:
    linear-gradient(18deg, transparent 0 33%, rgba(245,208,111,.45) 34% 35%, transparent 36%),
    linear-gradient(142deg, transparent 0 45%, rgba(94,214,255,.34) 46% 47%, transparent 48%),
    linear-gradient(88deg, transparent 0 55%, rgba(255,255,255,.26) 56% 57%, transparent 58%);
  opacity: .75;
}

.auth-signal {
  position: absolute;
  width: 140px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--auth-accent-2), transparent);
  opacity: .72;
  filter: drop-shadow(0 0 16px rgba(245,208,111,.48));
  animation: auth-signal-pass 6s ease-in-out infinite;
}

.auth-signal-one {
  left: 8%;
  top: 31%;
}

.auth-signal-two {
  right: 8%;
  bottom: 32%;
  animation-delay: -2.4s;
}

.auth-command-preview {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(5,7,13,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0,0,0,.30);
}

.auth-command-preview span {
  display: block;
  margin-bottom: 6px;
  color: var(--auth-accent-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.auth-command-preview strong {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.3;
}

body.ammor-auth-shell .card {
  z-index: 2;
  width: min(500px, 100%) !important;
  max-width: 500px !important;
  padding: clamp(30px, 4vw, 44px) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(248,250,252,.11), rgba(248,250,252,.035) 42%, rgba(212,175,55,.065)),
    rgba(11,15,25,.84) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow:
    0 34px 120px rgba(0,0,0,.50),
    0 0 0 1px rgba(212,175,55,.08),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter: blur(26px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.22) !important;
}

body.ammor-auth-shell .card::before {
  background:
    linear-gradient(118deg, transparent 0 36%, rgba(245,208,111,.14) 47%, transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(245,208,111,.15), transparent 32%);
}

body.ammor-auth-shell .portal-switch {
  gap: 6px;
  padding: 6px;
  background: rgba(5,7,13,.46);
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

body.ammor-auth-shell .portal-link {
  min-height: 48px !important;
  color: #d7dee9 !important;
  background: rgba(255,255,255,.035) !important;
}

body.ammor-auth-shell .portal-link:hover,
body.ammor-auth-shell .portal-link:focus-visible {
  color: #f8fafc !important;
  border-color: rgba(245,208,111,.52) !important;
  background: rgba(212,175,55,.10) !important;
  outline: none;
}

body.ammor-auth-shell .portal-link.active {
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2)) !important;
  color: #05070d !important;
}

body.ammor-auth-shell .field input,
body.ammor-auth-shell .btn,
body.ammor-auth-shell .security {
  border-radius: 14px !important;
}

body.ammor-auth-shell .field input {
  min-height: 52px;
  background: rgba(5,7,13,.62) !important;
  border-color: rgba(255,255,255,.17) !important;
}

body.ammor-auth-shell .btn {
  min-height: 52px !important;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2)) !important;
  box-shadow: 0 18px 44px rgba(212,175,55,.22), inset 0 1px 0 rgba(255,255,255,.25) !important;
}

body.ammor-auth-shell .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(212,175,55,.28), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

@keyframes auth-field-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.035); }
}

@keyframes auth-orbit-breathe {
  0%, 100% { transform: scale(.98) rotate(-8deg); opacity: .74; }
  50% { transform: scale(1.04) rotate(8deg); opacity: 1; }
}

@keyframes auth-mesh-float {
  0%, 100% { transform: translate3d(-3px, 5px, 0) rotate(-3deg); }
  50% { transform: translate3d(5px, -6px, 0) rotate(3deg); }
}

@keyframes auth-signal-pass {
  0%, 100% { transform: translateX(-18px); opacity: .28; }
  50% { transform: translateX(18px); opacity: .82; }
}

@media (max-width: 980px) {
  body.ammor-auth-shell {
    grid-template-columns: 1fr;
    place-items: center;
    overflow-y: auto !important;
  }

  .auth-scene {
    position: absolute;
    inset: 16px;
    width: auto;
    min-height: auto;
    opacity: .50;
  }

  .auth-command-preview {
    display: none;
  }
}

@media (max-width: 560px) {
  body.ammor-auth-shell {
    padding: 16px !important;
  }

  body.ammor-auth-shell .card {
    padding: 30px 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ammor-auth-shell::after,
  .auth-scene::after,
  .auth-data-mesh,
  .auth-signal {
    animation: none !important;
  }
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px !important;
}

.password-toggle {
  position: absolute;
  right: 16px;
  bottom: 50%;
  transform: translateY(50%);
  min-width: 44px;
  min-height: 36px;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(248,250,252,.52);
  font: 800 11px/1 var(--am-font, Inter, sans-serif);
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .18s ease, opacity .18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: rgba(245,208,111,.86);
  background: transparent;
  outline: none;
  text-decoration: underline;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 18px;
  color: #cbd5e1;
  font-size: 13px;
}

.remember-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-control input {
  width: 16px;
  height: 16px;
  accent-color: #d4af37;
}

.auth-options a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #d4af37;
  font-weight: 800;
  text-decoration: none;
}

.auth-options a:hover,
.auth-options a:focus-visible {
  color: #f5d06f;
  outline: none;
}

.insurance-auth-hero,
.government-auth-hero {
  display: none;
}

body.ammor-auth-shell[data-portal="insurance"] {
  --auth-accent: #d4af37;
  --auth-accent-2: #f5d06f;
  --auth-blue: #7dd3fc;
  grid-template-columns: minmax(520px, 780px) minmax(390px, 520px);
  gap: clamp(30px, 5vw, 74px);
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.16), transparent 33%),
    radial-gradient(circle at 78% 12%, rgba(212,175,55,.13), transparent 30%),
    radial-gradient(circle at 62% 76%, rgba(56,189,248,.10), transparent 34%),
    linear-gradient(135deg, #04070b 0%, #09111a 46%, #05070d 100%) !important;
}

body.ammor-auth-shell[data-portal="insurance"]::before {
  background:
    linear-gradient(rgba(245,208,111,.040) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,208,111,.030) 1px, transparent 1px) !important;
  background-size: 58px 58px !important;
}

body.ammor-auth-shell[data-portal="insurance"]::after {
  background:
    linear-gradient(110deg, transparent 0 33%, rgba(212,175,55,.10) 43%, rgba(245,208,111,.10) 51%, transparent 64%),
    conic-gradient(from 228deg at 28% 46%, transparent 0 54deg, rgba(212,175,55,.18) 72deg, transparent 94deg 360deg) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
  width: min(780px, 54vw);
  min-height: 680px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(13,8,26,.20), rgba(4,4,11,.70)),
    radial-gradient(circle at 22% 18%, rgba(212,175,55,.18), transparent 32%),
    radial-gradient(circle at 76% 20%, rgba(245,208,111,.18), transparent 30%),
    linear-gradient(145deg, rgba(17,24,39,.70), rgba(5,7,13,.42));
  border-color: rgba(245,208,111,.16);
}

body.ammor-auth-shell[data-portal="insurance"] .auth-data-mesh,
body.ammor-auth-shell[data-portal="insurance"] .auth-command-preview {
  display: none;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene::after {
  width: 44%;
  left: 54%;
  top: 7%;
  border-color: rgba(245,208,111,.24);
  box-shadow: 0 0 80px rgba(212,175,55,.16);
}

body.ammor-auth-shell[data-portal="insurance"] .auth-signal {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.78), rgba(245,208,111,.72), transparent);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
}

.insurance-skyline {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to top, rgba(4,4,11,.98) 0 18%, rgba(4,4,11,.50) 46%, transparent 72%),
    radial-gradient(circle at 62% 24%, rgba(212,175,55,.14), transparent 28%),
    radial-gradient(circle at 82% 17%, rgba(245,208,111,.14), transparent 20%);
}

.insurance-skyline::before,
.insurance-skyline::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background:
    linear-gradient(to top, rgba(6,8,18,.96), rgba(6,8,18,.30)),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.11) 0 2px,
      transparent 2px 28px);
  clip-path: polygon(0 100%,0 64%,5% 64%,5% 42%,10% 42%,10% 72%,15% 72%,15% 30%,20% 30%,20% 70%,25% 70%,25% 50%,31% 50%,31% 18%,38% 18%,38% 58%,44% 58%,44% 34%,50% 34%,50% 66%,57% 66%,57% 25%,64% 25%,64% 72%,70% 72%,70% 46%,76% 46%,76% 12%,82% 12%,82% 62%,88% 62%,88% 36%,94% 36%,94% 68%,100% 68%,100% 100%);
  opacity: .54;
}

.insurance-skyline::after {
  height: 56%;
  filter: blur(22px);
  opacity: .20;
}

.insurance-skyline span {
  position: absolute;
  bottom: 24%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f5d06f;
  box-shadow: 0 0 22px rgba(245,208,111,.75);
  animation: insuranceParticle 7s ease-in-out infinite;
}

.insurance-skyline span:nth-child(1) { left: 14%; animation-delay: -1s; }
.insurance-skyline span:nth-child(2) { left: 33%; bottom: 38%; background: #f5d06f; animation-delay: -2.4s; }
.insurance-skyline span:nth-child(3) { left: 55%; bottom: 30%; background: #7dd3fc; animation-delay: -3.8s; }
.insurance-skyline span:nth-child(4) { left: 73%; bottom: 45%; animation-delay: -5s; }
.insurance-skyline span:nth-child(5) { left: 88%; bottom: 29%; background: #d4af37; animation-delay: -6.2s; }

.insurance-shield {
  position: absolute;
  right: 7%;
  top: 10%;
  z-index: 2;
  width: clamp(96px, 11vw, 154px);
  color: rgba(245,208,111,.88);
  filter: drop-shadow(0 0 28px rgba(212,175,55,.30));
  animation: insuranceShieldPulse 5s ease-in-out infinite;
}

.insurance-shield svg {
  width: 100%;
  height: auto;
}

.insurance-copy,
.insurance-preview-grid,
.insurance-feature-row {
  position: relative;
  z-index: 4;
}

.insurance-copy {
  max-width: 610px;
  margin-bottom: 24px;
}

.insurance-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f5d06f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.insurance-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34,197,94,.12), 0 0 22px rgba(34,197,94,.70);
}

.insurance-copy h1 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
}

.insurance-copy p {
  max-width: 600px;
  margin: 0;
  color: #d7dee9;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

.insurance-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.insurance-preview-grid article {
  position: relative;
  min-height: 118px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    rgba(7,9,22,.64);
  box-shadow: 0 18px 44px rgba(0,0,0,.26);
  backdrop-filter: blur(16px);
  transition: transform .18s ease, border-color .18s ease;
}

.insurance-preview-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(245,208,111,.34);
}

.insurance-preview-grid span {
  display: block;
  min-height: 30px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.insurance-preview-grid strong {
  display: block;
  margin-top: 7px;
  color: #f8fafc;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}

.insurance-preview-grid i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(212,175,55,.12), rgba(245,208,111,.70), rgba(245,208,111,.60), rgba(212,175,55,.16));
  transform-origin: left center;
  animation: insuranceMeter 4.8s ease-in-out infinite;
}

.insurance-preview-grid article:nth-child(2) i { animation-delay: -.8s; }
.insurance-preview-grid article:nth-child(3) i { animation-delay: -1.6s; }
.insurance-preview-grid article:nth-child(4) i { animation-delay: -2.4s; }

.insurance-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.insurance-feature-row span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(5,7,13,.58);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

body.ammor-auth-shell[data-portal="insurance"] .card {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  border-radius: 30px !important;
  border-color: rgba(245,208,111,.22) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.040) 42%, rgba(212,175,55,.070)),
    rgba(10,9,22,.86) !important;
  box-shadow:
    0 36px 130px rgba(0,0,0,.58),
    0 0 0 1px rgba(245,208,111,.08),
    inset 0 1px 0 rgba(255,255,255,.11) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card::before {
  background:
    linear-gradient(118deg, transparent 0 36%, rgba(245,208,111,.12) 47%, transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.14), transparent 31%);
}

body.ammor-auth-shell[data-portal="insurance"] .logo {
  margin-bottom: 24px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .title {
  font-size: 34px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .title em {
  color: #f5d06f !important;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle {
  color: #d7dee9 !important;
  font-size: 15px !important;
  margin-bottom: 22px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link.active {
  background: linear-gradient(135deg, #d4af37, #f5d06f) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 40px rgba(212,175,55,.22) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field label {
  color: #f5d06f !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field input:focus {
  border-color: rgba(245,208,111,.72) !important;
  box-shadow: 0 0 0 4px rgba(212,175,55,.18) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn {
  background: linear-gradient(135deg, #d4af37, #f5d06f 44%, #fff1a8) !important;
  color: #fff !important;
  box-shadow: 0 20px 54px rgba(212,175,55,.25), inset 0 1px 0 rgba(255,255,255,.24) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn:hover {
  box-shadow: 0 26px 66px rgba(212,175,55,.32), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security {
  border-color: rgba(245,208,111,.18);
  background: rgba(212,175,55,.08) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security svg {
  color: #f5d06f;
  animation: insuranceSecurityPulse 2.8s ease-in-out infinite;
}

@keyframes insuranceParticle {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .35; }
  50% { transform: translate3d(16px, -22px, 0); opacity: 1; }
}

@keyframes insuranceShieldPulse {
  0%, 100% { transform: translateY(0) scale(.98); opacity: .78; }
  50% { transform: translateY(-8px) scale(1.02); opacity: 1; }
}

@keyframes insuranceMeter {
  0%, 100% { transform: scaleX(.42); opacity: .58; }
  50% { transform: scaleX(.88); opacity: .92; }
}

@keyframes insuranceSecurityPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(245,208,111,0)); opacity: .84; }
  50% { filter: drop-shadow(0 0 12px rgba(245,208,111,.70)); opacity: 1; }
}

@media (max-width: 1180px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    grid-template-columns: 1fr;
    overflow-y: auto !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    position: relative;
    inset: auto;
    width: min(100%, 760px);
    min-height: 560px;
    order: 1;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    order: 2;
  }
}

@media (max-width: 760px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    padding: 14px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    min-height: 500px;
    opacity: 1;
  }

  .insurance-auth-hero {
    padding: 24px;
  }

  .insurance-copy h1 {
    font-size: 40px;
  }

  .insurance-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insurance-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    min-height: 660px;
    border-radius: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene::after,
  body.ammor-auth-shell[data-portal="insurance"] .auth-signal,
  .insurance-shield {
    display: none;
  }

  .insurance-copy {
    margin-bottom: 14px;
  }

  .insurance-copy h1 {
    font-size: 32px;
    line-height: 1;
  }

  .insurance-copy p {
    font-size: 14px;
  }

  .insurance-preview-grid article {
    min-height: 88px;
    padding: 12px;
  }

  .insurance-preview-grid strong {
    font-size: 22px;
  }

  .insurance-feature-row span {
    font-size: 10px;
    min-height: 44px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insurance-skyline span,
  .insurance-shield,
  .insurance-preview-grid i,
  body.ammor-auth-shell[data-portal="insurance"] .security svg {
    animation: none !important;
  }
}

/* Insurance Portal V2 enterprise entrance */
body.ammor-auth-shell[data-portal="insurance"] {
  grid-template-columns: minmax(660px, 900px) minmax(430px, 560px);
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.18), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(245,208,111,.12), transparent 31%),
    radial-gradient(circle at 62% 78%, rgba(56,189,248,.10), transparent 38%),
    linear-gradient(135deg, #05080f 0%, #09111a 46%, #05080f 100%) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
  width: min(900px, 58vw);
  min-height: 990px;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene::after {
  width: 40%;
  left: 57%;
  top: 6%;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero {
  align-content: start;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield {
  right: 8%;
  top: 8%;
  width: clamp(142px, 13vw, 210px);
}

.insurance-shield span {
  position: absolute;
  min-width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(245,208,111,.26);
  border-radius: 999px;
  background: rgba(5,8,15,.64);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  animation: insuranceNodePulse 4.8s ease-in-out infinite;
}

.insurance-shield span::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,208,111,.70), transparent);
  transform: translateY(-50%);
}

.insurance-shield span:nth-of-type(1) { right: 86%; top: 4%; animation-delay: -.2s; }
.insurance-shield span:nth-of-type(1)::before,
.insurance-shield span:nth-of-type(2)::before,
.insurance-shield span:nth-of-type(3)::before,
.insurance-shield span:nth-of-type(4)::before { left: 100%; }
.insurance-shield span:nth-of-type(2) { right: 104%; top: 24%; animation-delay: -.6s; }
.insurance-shield span:nth-of-type(3) { right: 96%; top: 47%; animation-delay: -1s; }
.insurance-shield span:nth-of-type(4) { right: 84%; top: 70%; animation-delay: -1.4s; }
.insurance-shield span:nth-of-type(5) { left: 84%; top: 2%; animation-delay: -1.8s; }
.insurance-shield span:nth-of-type(6) { left: 103%; top: 22%; animation-delay: -2.2s; }
.insurance-shield span:nth-of-type(7) { left: 97%; top: 44%; animation-delay: -2.6s; }
.insurance-shield span:nth-of-type(8) { left: 84%; top: 67%; animation-delay: -3s; }
.insurance-shield span:nth-of-type(5)::before,
.insurance-shield span:nth-of-type(6)::before,
.insurance-shield span:nth-of-type(7)::before,
.insurance-shield span:nth-of-type(8)::before { right: 100%; transform: translateY(-50%) rotate(180deg); }
.insurance-shield span:nth-of-type(9) { right: 20%; top: 96%; animation-delay: -3.4s; }
.insurance-shield span:nth-of-type(10) { left: 16%; top: 112%; animation-delay: -3.8s; }
.insurance-shield span:nth-of-type(9)::before,
.insurance-shield span:nth-of-type(10)::before { display: none; }

.insurance-copy {
  max-width: 650px;
  margin-bottom: 18px;
}

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

.insurance-preview-grid article {
  min-height: 106px;
  padding: 15px;
}

.insurance-feature-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.insurance-feature-row span {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px 1fr;
  justify-content: stretch;
  gap: 8px;
  padding: 9px 10px;
  font-size: 10px;
  letter-spacing: .055em;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.insurance-feature-row span:hover {
  transform: translateY(-2px);
  border-color: rgba(245,208,111,.40);
  background: rgba(212,175,55,.10);
}

.insurance-feature-row b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(212,175,55,.86), rgba(245,208,111,.48));
  color: #fff;
  font-size: 9px;
}

.insurance-claims-table {
  position: relative;
  z-index: 4;
  min-height: 204px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(5,8,15,.66);
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
}

.insurance-table-title {
  padding: 12px 14px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.insurance-table-row {
  display: grid;
  grid-template-columns: .9fr 1.15fr .7fr .9fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #d7dee9;
  font-size: 12px;
}

.insurance-table-row:last-child {
  border-bottom: 0;
}

.insurance-table-head {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.insurance-table-row.high span:nth-child(3),
.insurance-table-row.high span:nth-child(4) { color: #fecaca; }
.insurance-table-row.medium span:nth-child(3),
.insurance-table-row.medium span:nth-child(4) { color: #fde68a; }
.insurance-table-row.low span:nth-child(3),
.insurance-table-row.low span:nth-child(4) { color: #bbf7d0; }

body.ammor-auth-shell[data-portal="insurance"] .card {
  width: min(560px, 100%) !important;
  max-width: 560px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .title {
  font-size: 38px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle {
  font-size: 16px !important;
}

.insurance-security-tags {
  display: none;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-security-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.insurance-security-tags span {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(245,208,111,.17);
  border-radius: 12px;
  background: rgba(212,175,55,.08);
  color: #d7dee9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

@keyframes insuranceNodePulse {
  0%, 100% { opacity: .64; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 1180px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    grid-template-columns: 1fr;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    width: min(100%, 900px);
    min-height: 990px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero {
    align-content: start;
  }
}

@media (max-width: 760px) {
  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    min-height: 1040px;
  }

  .insurance-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insurance-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insurance-claims-table {
    display: none;
  }
}

@media (max-width: 560px) {
  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    min-height: 1120px;
  }

  .insurance-feature-row span {
    grid-template-columns: 24px 1fr;
  }

  .insurance-feature-row b {
    width: 24px;
    height: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-security-tags {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insurance-shield span {
    animation: none !important;
  }
}

/* Insurance Portal V3 minimal executive lobby */
body.ammor-auth-shell[data-portal="insurance"] {
  --auth-accent: #d4af37;
  --auth-accent-2: #f5d06f;
  --auth-blue: #9fc7f5;
  grid-template-columns: minmax(520px, 1fr) minmax(430px, 560px);
  gap: clamp(28px, 5vw, 84px);
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.18), transparent 31%),
    radial-gradient(circle at 84% 16%, rgba(125,211,252,.10), transparent 28%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #07101c 48%, #05070d 100%) !important;
  background-size: auto, auto, 72px 72px, 72px 72px, auto !important;
  background-attachment: fixed !important;
}

body.ammor-auth-shell[data-portal="insurance"]::before {
  content: "";
  position: fixed;
  inset: -1.5%;
  z-index: -2;
  opacity: .74;
  background:
    radial-gradient(circle at 22% 34%, rgba(245,208,111,.20), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(159,199,245,.16), transparent 24%),
    linear-gradient(135deg, rgba(3,7,13,.08), rgba(3,7,13,.18)) !important;
  filter: none;
  transform: scale(1.02);
  animation: insuranceCityDrift 22s ease-in-out infinite alternate;
}

body.ammor-auth-shell[data-portal="insurance"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .62;
  background:
    radial-gradient(circle at 22% 42%, rgba(212,175,55,.20), transparent 22%),
    radial-gradient(circle at 78% 22%, rgba(125,211,252,.10), transparent 24%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(105deg, transparent 0 42%, rgba(245,208,111,.09) 50%, transparent 58%) !important;
  background-size: auto, auto, 72px 72px, 72px 72px, auto !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.74), rgba(0,0,0,.46) 62%, rgba(0,0,0,.82));
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
  width: min(760px, 52vw);
  min-height: min(760px, 78dvh);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene::after,
body.ammor-auth-shell[data-portal="insurance"] .auth-data-mesh,
body.ammor-auth-shell[data-portal="insurance"] .auth-command-preview,
body.ammor-auth-shell[data-portal="insurance"] .insurance-skyline {
  display: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-signal {
  height: 1px;
  opacity: .52;
  background: linear-gradient(90deg, transparent, rgba(245,208,111,.70), rgba(159,199,245,.42), transparent);
  filter: drop-shadow(0 0 14px rgba(245,208,111,.34));
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero {
  position: relative;
  inset: auto;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  overflow: visible;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
  max-width: 640px;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(3,7,13,.58), rgba(3,7,13,.22));
  box-shadow: 0 36px 100px rgba(0,0,0,.34);
  backdrop-filter: blur(14px) saturate(1.05);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-eyebrow {
  color: #f5d06f;
  font-size: 12px;
  letter-spacing: .20em;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-eyebrow::before {
  background: #f5d06f;
  box-shadow: 0 0 0 7px rgba(245,208,111,.12), 0 0 22px rgba(245,208,111,.58);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #f8fafc;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: .93;
  letter-spacing: -.065em;
  text-wrap: balance;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy p {
  max-width: 520px;
  color: rgba(248,250,252,.78);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.58;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield {
  left: auto;
  right: clamp(8px, 5vw, 46px);
  top: clamp(18px, 8vh, 88px);
  width: clamp(118px, 12vw, 172px);
  color: rgba(245,208,111,.88);
  filter: drop-shadow(0 0 30px rgba(245,208,111,.34));
  animation: insuranceShieldPulse 5.5s ease-in-out infinite;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield::before,
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield::after {
  content: "";
  position: absolute;
  inset: -32px;
  border: 1px solid rgba(245,208,111,.20);
  border-radius: 999px;
  animation: insuranceOrbit 12s linear infinite;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield::after {
  inset: -52px;
  border-color: rgba(159,199,245,.15);
  animation-duration: 18s;
  animation-direction: reverse;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span {
  min-width: max-content;
  padding: 8px 10px;
  border-color: rgba(245,208,111,.24);
  background: rgba(3,7,13,.64);
  color: #f8fafc;
  font-size: 10px;
  letter-spacing: .10em;
  box-shadow: 0 14px 36px rgba(0,0,0,.30);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span::before {
  width: 42px;
  background: linear-gradient(90deg, rgba(245,208,111,.72), transparent);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(1) { right: 88%; top: 2%; }
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(2) { right: 104%; top: 31%; }
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(3) { right: 90%; top: 64%; }
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(4) { left: 88%; top: 5%; }
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(5) { left: 104%; top: 37%; }
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(6) { left: 82%; top: 73%; }
body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span:nth-of-type(n+7) { display: none; }

body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit {
  position: absolute;
  right: clamp(16px, 10vw, 150px);
  bottom: clamp(38px, 11vh, 118px);
  z-index: 4;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #f8fafc;
  background:
    radial-gradient(circle, rgba(5,8,15,.90) 0 48%, rgba(5,8,15,.30) 49% 100%),
    conic-gradient(from -40deg, rgba(34,197,94,.86), rgba(245,158,11,.78), rgba(239,68,68,.72), rgba(245,208,111,.82), rgba(34,197,94,.86));
  box-shadow: 0 0 44px rgba(245,208,111,.26), inset 0 0 0 1px rgba(255,255,255,.18);
  animation: insuranceFloat 7s ease-in-out infinite;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit strong {
  font-size: 34px;
  line-height: .9;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit span {
  position: absolute;
  bottom: 28px;
  color: rgba(248,250,252,.64);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.ammor-auth-shell[data-portal="insurance"] .card {
  width: min(580px, 100%) !important;
  max-width: 580px !important;
  padding: clamp(38px, 4vw, 58px) clamp(32px, 4vw, 54px);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.055)),
    rgba(3,7,13,.68) !important;
  box-shadow: 0 42px 120px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(1.18);
}

body.ammor-auth-shell[data-portal="insurance"] .logo {
  margin-bottom: 34px;
}

body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 34px rgba(245,208,111,.18);
}

body.ammor-auth-shell[data-portal="insurance"] .title {
  color: #f8fafc;
  font-size: clamp(38px, 3vw, 48px) !important;
  letter-spacing: -.045em;
}

body.ammor-auth-shell[data-portal="insurance"] .title em {
  color: #f5d06f !important;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle {
  max-width: 430px;
  margin-inline: auto;
  color: rgba(248,250,252,.70);
  font-size: 17px !important;
  line-height: 1.58;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(3,7,13,.46);
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link {
  min-height: 56px;
  border-radius: 13px;
  color: rgba(248,250,252,.66);
  font-size: 11px;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link.active,
body.ammor-auth-shell[data-portal="insurance"] .portal-link:hover {
  border-color: rgba(245,208,111,.64) !important;
  background: linear-gradient(135deg, rgba(212,175,55,.98), rgba(245,208,111,.88)) !important;
  color: #08111f !important;
  box-shadow: 0 18px 44px rgba(245,208,111,.22) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field label,
body.ammor-auth-shell[data-portal="insurance"] .remember-control span {
  color: rgba(245,208,111,.78) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field input {
  min-height: 58px;
  border-color: rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(3,7,13,.58);
  font-size: 16px;
}

body.ammor-auth-shell[data-portal="insurance"] .field input:focus {
  border-color: rgba(245,208,111,.68) !important;
  box-shadow: 0 0 0 4px rgba(245,208,111,.13) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .password-toggle {
  border: 0;
  background: transparent;
  color: rgba(248,250,252,.54);
}

body.ammor-auth-shell[data-portal="insurance"] .btn {
  min-height: 62px;
  border-radius: 17px;
  background: linear-gradient(135deg, #d4af37, #f5d06f) !important;
  color: #07101d !important;
  font-size: 14px;
  box-shadow: 0 20px 54px rgba(245,208,111,.28);
}

body.ammor-auth-shell[data-portal="insurance"] .btn:hover {
  box-shadow: 0 24px 68px rgba(245,208,111,.34);
}

body.ammor-auth-shell[data-portal="insurance"] .auth-options a,
body.ammor-auth-shell[data-portal="insurance"] .forgot a {
  color: #f5d06f;
}

body.ammor-auth-shell[data-portal="insurance"] .security {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(3,7,13,.34);
  color: rgba(248,250,252,.54);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-preview-grid,
body.ammor-auth-shell[data-portal="insurance"] .insurance-feature-row,
body.ammor-auth-shell[data-portal="insurance"] .insurance-claims-table,
body.ammor-auth-shell[data-portal="insurance"] .insurance-security-tags {
  display: none !important;
}

@keyframes insuranceCityDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-12px, -8px, 0); }
}

@keyframes insuranceOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    width: min(100%, 780px);
    min-height: 560px;
    overflow: hidden;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
    max-width: 100%;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span {
    display: none;
  }
}

@media (max-width: 760px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    padding: 14px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    min-height: 460px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
    padding: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-shield {
    width: 96px;
    right: 20px;
    top: 22px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-shield span {
    display: none;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit {
    width: 94px;
    height: 94px;
    right: 28px;
    bottom: 18px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit strong {
    font-size: 25px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit span {
    bottom: 19px;
    font-size: 8px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    padding: 32px 20px;
    border-radius: 28px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ammor-auth-shell[data-portal="insurance"]::before,
  body.ammor-auth-shell[data-portal="insurance"] .insurance-shield,
  body.ammor-auth-shell[data-portal="insurance"] .insurance-shield::before,
  body.ammor-auth-shell[data-portal="insurance"] .insurance-shield::after,
  body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit {
    animation: none !important;
  }
}

/* Insurance Portal V4 executive lobby cleanup */
body.ammor-auth-shell[data-portal="insurance"] {
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 520px);
  align-items: center;
  gap: clamp(36px, 7vw, 112px);
  padding: clamp(24px, 4vw, 52px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.18), transparent 31%),
    radial-gradient(circle at 84% 16%, rgba(125,211,252,.10), transparent 28%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #07101c 48%, #05070d 100%) !important;
  background-size: auto, auto, 72px 72px, 72px 72px, auto !important;
  background-attachment: fixed !important;
}

body.ammor-auth-shell[data-portal="insurance"]::before {
  z-index: -1;
  opacity: .24;
  background:
    linear-gradient(rgba(245,208,111,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px) !important;
  background-size: 92px 92px !important;
  filter: none;
  transform: none;
  animation: none;
  pointer-events: none;
}

body.ammor-auth-shell[data-portal="insurance"]::after {
  z-index: -1;
  opacity: .46;
  background:
    radial-gradient(circle at 24% 30%, rgba(245,208,111,.16), transparent 25%),
    radial-gradient(circle at 76% 14%, rgba(255,255,255,.075), transparent 26%),
    linear-gradient(120deg, transparent 0 40%, rgba(245,208,111,.055) 48%, transparent 61%) !important;
  mask-image: none;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
  width: min(720px, 50vw);
  min-height: min(600px, calc(100dvh - 80px));
  display: flex;
  align-items: flex-end;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero {
  position: static;
  min-height: auto;
  display: block;
  padding: 0;
  overflow: visible;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
  width: min(640px, 100%);
  max-width: 640px;
  margin: 0 0 clamp(24px, 6vh, 68px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-eyebrow {
  margin-bottom: 16px;
  color: #f5d06f;
  font-size: 11px;
  letter-spacing: .20em;
  text-shadow: 0 2px 18px rgba(0,0,0,.70);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
  max-width: 640px;
  color: #f8fafc;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .96;
  letter-spacing: -.055em;
  text-shadow: 0 16px 60px rgba(0,0,0,.78);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy p {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(248,250,252,.78);
  font-size: clamp(16px, 1.28vw, 19px);
  line-height: 1.62;
  text-shadow: 0 8px 30px rgba(0,0,0,.72);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-shield,
body.ammor-auth-shell[data-portal="insurance"] .insurance-risk-orbit,
body.ammor-auth-shell[data-portal="insurance"] .auth-signal,
body.ammor-auth-shell[data-portal="insurance"] .insurance-skyline {
  display: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card {
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  min-height: auto;
  padding: clamp(34px, 3.4vw, 48px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.050)),
    rgba(4,9,17,.80) !important;
  box-shadow:
    0 40px 110px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(28px) saturate(1.08);
}

body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
  width: 70px;
  height: 70px;
}

body.ammor-auth-shell[data-portal="insurance"] .logo {
  margin-bottom: 24px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo-name {
  font-size: 14px !important;
  letter-spacing: .18em !important;
}

body.ammor-auth-shell[data-portal="insurance"] .title {
  font-size: clamp(34px, 3vw, 42px) !important;
  line-height: 1.08;
  margin-bottom: 10px;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle {
  max-width: 410px;
  margin: 0 auto 26px;
  font-size: 15px !important;
  line-height: 1.62;
  color: rgba(248,250,252,.76);
}

body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
  background: rgba(3,7,13,.58);
  border-color: rgba(255,255,255,.12);
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link {
  min-height: 48px;
  font-size: 10px;
  letter-spacing: .06em;
}

body.ammor-auth-shell[data-portal="insurance"] .field {
  margin-bottom: 18px;
}

body.ammor-auth-shell[data-portal="insurance"] .field label {
  color: rgba(245,208,111,.84) !important;
  font-size: 10px;
  letter-spacing: .14em;
}

body.ammor-auth-shell[data-portal="insurance"] .field input {
  min-height: 56px;
  border-radius: 14px;
  background: rgba(3,7,13,.70) !important;
  border-color: rgba(255,255,255,.16) !important;
  font-size: 15px;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-options {
  margin: 2px 0 20px;
  color: rgba(248,250,252,.70);
}

body.ammor-auth-shell[data-portal="insurance"] .password-toggle {
  min-height: 44px;
  min-width: 44px;
  border-radius: 0;
}

body.ammor-auth-shell[data-portal="insurance"] .btn {
  min-height: 56px !important;
  border-radius: 15px !important;
  font-size: 12px;
  letter-spacing: .15em;
  color: #05070d !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  border-color: rgba(255,255,255,.12);
  background: rgba(3,7,13,.42);
  line-height: 1.5;
}

/* Final AMMOR gold guard for the Insurance portal. */
body.ammor-auth-shell[data-portal="insurance"] .card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.048)),
    rgba(5,10,14,.82) !important;
  box-shadow:
    0 42px 112px rgba(0,0,0,.60),
    0 0 0 1px rgba(245,208,111,.055),
    inset 0 1px 0 rgba(255,255,255,.12) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card::before,
body.ammor-auth-shell[data-portal="insurance"] .card::after {
  background: none !important;
  opacity: 0 !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security {
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(5,10,14,.58) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .password-toggle {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248,250,252,.54) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .password-toggle:hover,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:focus-visible {
  color: rgba(245,208,111,.78) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security svg {
  color: #d4af37 !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn,
body.ammor-auth-shell[data-portal="insurance"] .portal-link.active,
body.ammor-auth-shell[data-portal="insurance"] .portal-link:hover {
  background: linear-gradient(135deg, #d4af37, #f5d06f) !important;
  box-shadow: 0 18px 46px rgba(212,175,55,.24) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(212,175,55,.30) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link:not(.active):hover {
  color: #05070d !important;
}

@media (max-height: 760px) and (min-width: 1181px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    min-height: calc(100dvh - 36px);
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
    font-size: clamp(44px, 5vw, 70px);
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy p {
    margin-top: 14px;
    font-size: 16px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    padding: 24px 32px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
    width: 50px;
    height: 50px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo {
    margin-bottom: 14px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo-name {
    font-size: 12px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo-sub {
    display: none;
  }

  body.ammor-auth-shell[data-portal="insurance"] .title {
    font-size: 30px !important;
    margin-bottom: 8px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .subtitle {
    max-width: 440px;
    margin-bottom: 14px;
    font-size: 14px !important;
    line-height: 1.45;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
    margin-bottom: 14px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-link {
    min-height: 40px;
    font-size: 9px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field {
    margin-bottom: 12px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field input,
  body.ammor-auth-shell[data-portal="insurance"] .btn {
    min-height: 46px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field label {
    margin-bottom: 6px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-options {
    min-height: 34px;
    margin-bottom: 12px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .forgot {
    margin-top: 10px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .forgot a,
  body.ammor-auth-shell[data-portal="insurance"] .back a {
    min-height: 34px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .security {
    min-height: 42px;
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 10px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .back {
    margin-top: 8px;
  }
}

@media (max-width: 1180px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    grid-template-columns: 1fr;
    gap: 24px;
    background-attachment: scroll !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    order: 2;
    width: min(100%, 760px);
    min-height: auto;
    margin-inline: auto;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
    margin: 34px auto 10px;
    text-align: center;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy p {
    margin-inline: auto;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    order: 1;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    padding: 14px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
    margin-top: 18px;
    text-align: left;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
    font-size: clamp(38px, 11vw, 50px);
    letter-spacing: -.04em;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy p {
    margin-inline: 0;
    font-size: 15px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    padding: 28px 18px;
    border-radius: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
    width: 64px;
    height: 64px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .title {
    font-size: 32px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .subtitle {
    font-size: 14px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field input {
    min-height: 52px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-link {
    min-height: 46px;
    padding: 8px 6px;
    font-size: 8px;
    line-height: 1.25;
    letter-spacing: .03em;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-options {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-options a,
  body.ammor-auth-shell[data-portal="insurance"] .remember-control {
    min-height: 38px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .btn {
    min-height: 54px !important;
  }
}

/* Insurance Portal enterprise polish audit: preserve AMMOR identity, refine execution. */
body.ammor-auth-shell[data-portal="insurance"] {
  min-height: 100dvh;
  grid-template-columns: minmax(440px, 1fr) minmax(400px, 500px);
  gap: clamp(42px, 7vw, 118px);
  align-items: center;
  padding: clamp(18px, 3.2vw, 42px) clamp(28px, 4.4vw, 64px);
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.18), transparent 31%),
    radial-gradient(circle at 84% 16%, rgba(125,211,252,.10), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(212,175,55,.08), transparent 34%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #07101c 48%, #05070d 100%) !important;
  background-size: auto, auto, auto, 72px 72px, 72px 72px, auto !important;
  background-attachment: fixed !important;
}

body.ammor-auth-shell[data-portal="insurance"]::before {
  opacity: .18;
  background:
    linear-gradient(rgba(245,208,111,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) !important;
  background-size: 86px 86px !important;
}

body.ammor-auth-shell[data-portal="insurance"]::after {
  opacity: .44;
  background:
    radial-gradient(circle at 20% 18%, rgba(245,208,111,.18), transparent 20%),
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.06), transparent 24%),
    linear-gradient(115deg, transparent 0 43%, rgba(245,208,111,.052) 50%, transparent 62%) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
  width: min(700px, 49vw);
  min-height: calc(100dvh - clamp(36px, 6.4vw, 84px));
  align-items: center;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
  width: min(620px, 100%);
  margin: 0;
  transform: translateY(8px);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #f5d06f;
  font-size: 11px;
  letter-spacing: .22em;
  line-height: 1;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d4af37;
  box-shadow: 0 0 20px rgba(245,208,111,.72);
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
  font-size: clamp(52px, 5.6vw, 82px);
  letter-spacing: -.052em;
  line-height: .98;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-copy p {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(248,250,252,.80);
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.68;
}

body.ammor-auth-shell[data-portal="insurance"] .card {
  width: min(500px, 100%) !important;
  max-width: 500px !important;
  padding: clamp(22px, 2.8vh, 32px) clamp(28px, 2.8vw, 40px) !important;
  border-radius: 26px;
  border-color: rgba(255,255,255,.15);
  background:
    linear-gradient(148deg, rgba(255,255,255,.125), rgba(255,255,255,.050) 52%, rgba(212,175,55,.045)),
    rgba(5,10,14,.84) !important;
  box-shadow:
    0 34px 96px rgba(0,0,0,.58),
    0 0 0 1px rgba(245,208,111,.055),
    inset 0 1px 0 rgba(255,255,255,.13) !important;
}

body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  filter: drop-shadow(0 14px 28px rgba(212,175,55,.26));
}

body.ammor-auth-shell[data-portal="insurance"] .logo {
  margin-bottom: 14px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo-name {
  font-size: 12px !important;
  letter-spacing: .20em !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo-sub {
  margin-top: 5px;
  font-size: 7px;
  letter-spacing: .18em;
  color: rgba(248,250,252,.48);
}

body.ammor-auth-shell[data-portal="insurance"] .title {
  max-width: 380px;
  margin-inline: auto;
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.12;
  letter-spacing: -.032em;
  white-space: nowrap;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle {
  max-width: 390px;
  margin: 8px auto 16px;
  font-size: 13px !important;
  line-height: 1.45;
  color: rgba(248,250,252,.74);
}

body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 15px;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link {
  min-height: 40px;
  border-radius: 11px;
  font-size: 9px;
  letter-spacing: .055em;
}

body.ammor-auth-shell[data-portal="insurance"] .field {
  margin-bottom: 10px;
}

body.ammor-auth-shell[data-portal="insurance"] .field label {
  margin-bottom: 7px;
}

body.ammor-auth-shell[data-portal="insurance"] .field input {
  min-height: 46px;
  border-radius: 13px;
  padding: 14px 16px;
}

body.ammor-auth-shell[data-portal="insurance"] .password-field input {
  padding-right: 58px;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-options {
  min-height: 34px;
  margin: 0 0 10px;
  font-size: 11px;
}

body.ammor-auth-shell[data-portal="insurance"] .remember-control {
  gap: 8px;
  letter-spacing: .08em;
}

body.ammor-auth-shell[data-portal="insurance"] .btn {
  min-height: 48px !important;
  border-radius: 14px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .forgot {
  margin-top: 8px;
  min-height: 34px;
}

body.ammor-auth-shell[data-portal="insurance"] .forgot a {
  min-height: 34px;
}

body.ammor-auth-shell[data-portal="insurance"] .security {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 10px;
}

body.ammor-auth-shell[data-portal="insurance"] .back {
  margin-top: 4px;
}

body.ammor-auth-shell[data-portal="insurance"] .back a {
  min-height: 34px;
}

body.ammor-auth-shell[data-portal="insurance"] .password-toggle {
  color: rgba(248,250,252,.50) !important;
  font-size: 11px;
  letter-spacing: .06em;
}

@media (min-width: 1181px) and (max-height: 780px) {
  body.ammor-auth-shell[data-portal="insurance"] .card {
    padding: 22px 34px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
    width: 46px;
    height: 46px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo {
    margin-bottom: 12px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo-sub {
    display: none;
  }

  body.ammor-auth-shell[data-portal="insurance"] .title {
    font-size: 29px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .subtitle {
    margin-bottom: 14px;
    font-size: 13px !important;
    line-height: 1.4;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
    margin-bottom: 12px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-link {
    min-height: 38px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field {
    margin-bottom: 10px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field input,
  body.ammor-auth-shell[data-portal="insurance"] .btn {
    min-height: 44px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-options {
    margin-bottom: 10px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy h1 {
    font-size: clamp(44px, 4.9vw, 66px);
  }
}

@media (max-width: 1180px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    grid-template-columns: 1fr;
    align-items: start !important;
    align-content: start !important;
    padding: clamp(18px, 4vw, 34px);
    background-position: center top !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene {
    width: min(100%, 760px);
    min-height: auto;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
    margin: 22px auto 0;
    text-align: center;
    transform: none;
  }
}

@media (max-width: 760px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    padding: 12px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    padding: 24px 16px !important;
    border-radius: 22px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .title {
    max-width: 100%;
    font-size: 27px !important;
    white-space: normal;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-link {
    min-height: 38px;
    font-size: 10px;
    letter-spacing: .02em;
    line-height: 1.15;
  }

  body.ammor-auth-shell[data-portal="insurance"] .insurance-copy {
    text-align: left;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  body.ammor-auth-shell[data-portal="insurance"] {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card {
    padding: 16px 32px !important;
    border-radius: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo {
    margin-bottom: 10px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo-name {
    font-size: 11px !important;
    letter-spacing: .16em !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo-sub {
    display: none;
  }

  body.ammor-auth-shell[data-portal="insurance"] .title {
    font-size: 24px !important;
    line-height: 1.12;
    margin-bottom: 6px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .subtitle {
    max-width: 420px;
    margin: 6px auto 10px;
    font-size: 12px !important;
    line-height: 1.38;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch {
    margin-bottom: 10px;
    padding: 4px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-link {
    min-height: 34px;
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: .02em;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field {
    margin-bottom: 8px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field label {
    margin-bottom: 5px;
    font-size: 9px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field input,
  body.ammor-auth-shell[data-portal="insurance"] .btn {
    min-height: 42px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-options {
    min-height: 30px;
    margin-bottom: 8px;
    font-size: 10px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .forgot {
    margin-top: 4px;
    min-height: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .forgot a,
  body.ammor-auth-shell[data-portal="insurance"] .back a {
    min-height: 24px;
  }

  body.ammor-auth-shell[data-portal="insurance"] .security {
    min-height: 28px;
    margin-top: 4px;
    padding: 7px 12px;
    font-size: 9px;
    line-height: 1.25;
  }

  body.ammor-auth-shell[data-portal="insurance"] .back {
    margin-top: 2px;
  }
}

/* Keep the password Show/Hide text locked in place despite global button hover rules. */
body.ammor-auth-shell[data-portal="insurance"] .password-toggle,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:hover,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:focus,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:focus-visible,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:active {
  position: absolute !important;
  top: auto !important;
  right: 16px !important;
  bottom: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline-offset: 4px;
  transform: none !important;
  transition: color .16s ease, opacity .16s ease !important;
}

@media (max-width: 1180px) and (min-width: 761px) {
  body.ammor-auth-shell[data-portal="insurance"] .portal-link {
    font-size: 10px;
    letter-spacing: .02em;
    line-height: 1.15;
    white-space: normal;
  }
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link {
  font-size: 10px;
  letter-spacing: .02em;
  line-height: 1.15;
  white-space: normal;
}

/* Government Portal enterprise parity: same polish as Insurance, public-sector identity. */
body.ammor-auth-shell[data-portal="government"] {
  --auth-accent: #d4af37;
  --auth-accent-2: #f7d879;
  --auth-blue: #7dd3fc;
  grid-template-columns: minmax(440px, 1fr) minmax(400px, 500px) !important;
  gap: clamp(42px, 7vw, 118px);
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(18px, 3.2vw, 42px) clamp(28px, 4.4vw, 64px) !important;
  background-color: #05070d !important;
  background-image: none !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.18), transparent 31%),
    radial-gradient(circle at 84% 16%, rgba(125,211,252,.10), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(212,175,55,.08), transparent 34%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #07101c 48%, #05070d 100%) !important;
  background-size: auto, auto, auto, 72px 72px, 72px 72px, auto !important;
  background-position: center center !important;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat !important;
  background-attachment: fixed !important;
}

body.ammor-auth-shell[data-portal="government"]::before {
  opacity: .14 !important;
  background:
    linear-gradient(rgba(245,208,111,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) !important;
  background-size: 86px 86px !important;
  animation: none !important;
  mask-image: none !important;
}

body.ammor-auth-shell[data-portal="government"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .76 !important;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0 55%, rgba(0,0,0,.24) 78%, rgba(0,0,0,.52) 100%),
    radial-gradient(circle at 17% 20%, rgba(245,208,111,.10), transparent 24%),
    linear-gradient(115deg, transparent 0 42%, rgba(245,208,111,.04) 51%, transparent 64%) !important;
  animation: none !important;
}

body.ammor-auth-shell[data-portal="government"] .auth-scene {
  position: relative !important;
  inset: auto !important;
  width: min(700px, 49vw);
  min-height: calc(100dvh - clamp(36px, 6.4vw, 84px));
  display: flex !important;
  align-items: center;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.ammor-auth-shell[data-portal="government"] .auth-scene::before,
body.ammor-auth-shell[data-portal="government"] .auth-scene::after,
body.ammor-auth-shell[data-portal="government"] .auth-data-mesh,
body.ammor-auth-shell[data-portal="government"] .auth-signal,
body.ammor-auth-shell[data-portal="government"] .auth-command-preview,
body.ammor-auth-shell[data-portal="government"] .insurance-auth-hero {
  display: none !important;
}

body.ammor-auth-shell[data-portal="government"] .government-auth-hero {
  width: min(640px, 100%);
  display: block;
  margin: 0 0 clamp(24px, 6vh, 68px);
  color: #f8fafc;
  transform: translateY(8px);
}

.government-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #f7d879;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
}

.government-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d4af37;
  box-shadow: 0 0 20px rgba(245,208,111,.72);
}

.government-copy h1 {
  max-width: 640px;
  color: #f8fafc;
  font-size: clamp(52px, 5.6vw, 82px);
  line-height: .98;
  letter-spacing: -.052em;
  text-shadow: 0 16px 60px rgba(0,0,0,.82);
}

.government-copy p {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(248,250,252,.82);
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.68;
  text-shadow: 0 8px 30px rgba(0,0,0,.78);
}

.government-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.government-signal-row span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(245,208,111,.18);
  border-radius: 999px;
  background: rgba(5,7,13,.50);
  color: rgba(248,250,252,.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

body.ammor-auth-shell[data-portal="government"] .card {
  width: min(500px, 100%) !important;
  max-width: 500px !important;
  padding: clamp(22px, 2.8vh, 32px) clamp(28px, 2.8vw, 40px) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(212,175,55,.20) !important;
  background:
    linear-gradient(148deg, rgba(255,255,255,.125), rgba(255,255,255,.050) 52%, rgba(212,175,55,.045)),
    rgba(5,10,14,.84) !important;
  box-shadow:
    0 34px 96px rgba(0,0,0,.62),
    0 0 0 1px rgba(245,208,111,.055),
    inset 0 1px 0 rgba(255,255,255,.13) !important;
  backdrop-filter: blur(28px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.08) !important;
}

body.ammor-auth-shell[data-portal="government"] .card::before,
body.ammor-auth-shell[data-portal="government"] .card::after {
  background: none !important;
  opacity: 0 !important;
  animation: none !important;
}

body.ammor-auth-shell[data-portal="government"] .brand-auth-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  filter: drop-shadow(0 14px 28px rgba(212,175,55,.26));
}

body.ammor-auth-shell[data-portal="government"] .logo {
  margin-bottom: 14px !important;
}

body.ammor-auth-shell[data-portal="government"] .logo-name {
  font-size: 12px !important;
  letter-spacing: .20em !important;
}

body.ammor-auth-shell[data-portal="government"] .logo-sub {
  margin-top: 5px;
  font-size: 7px;
  letter-spacing: .18em;
  color: rgba(248,250,252,.48);
}

body.ammor-auth-shell[data-portal="government"] .title {
  max-width: 380px;
  margin-inline: auto;
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.12;
  letter-spacing: -.032em;
  white-space: nowrap;
}

body.ammor-auth-shell[data-portal="government"] .title em,
body.ammor-auth-shell[data-portal="government"] .field label,
body.ammor-auth-shell[data-portal="government"] .auth-options a,
body.ammor-auth-shell[data-portal="government"] .forgot a {
  color: #f7d879 !important;
}

body.ammor-auth-shell[data-portal="government"] .subtitle {
  max-width: 390px;
  margin: 8px auto 16px;
  font-size: 13px !important;
  line-height: 1.45;
  color: rgba(248,250,252,.76) !important;
}

body.ammor-auth-shell[data-portal="government"] .portal-switch {
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 15px;
  background: rgba(3,7,13,.58);
  border-color: rgba(255,255,255,.12);
}

body.ammor-auth-shell[data-portal="government"] .portal-link {
  min-height: 40px !important;
  border-radius: 11px !important;
  color: #d7dee9 !important;
  background: rgba(255,255,255,.035) !important;
  font-size: 9px;
  letter-spacing: .055em;
  line-height: 1.15;
  white-space: normal;
}

body.ammor-auth-shell[data-portal="government"] .portal-link.active,
body.ammor-auth-shell[data-portal="government"] .portal-link:hover {
  background: linear-gradient(135deg, #d4af37, #f7d879) !important;
  color: #05070d !important;
  border-color: rgba(247,216,121,.90) !important;
  box-shadow: 0 18px 46px rgba(212,175,55,.24) !important;
}

body.ammor-auth-shell[data-portal="government"] .field {
  margin-bottom: 10px;
}

body.ammor-auth-shell[data-portal="government"] .field label {
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: .14em;
}

body.ammor-auth-shell[data-portal="government"] .field input {
  min-height: 46px;
  border-radius: 13px;
  padding: 14px 16px;
  background: rgba(3,7,13,.70) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #f8fafc !important;
  font-size: 15px;
}

body.ammor-auth-shell[data-portal="government"] .field input:focus {
  border-color: rgba(245,208,111,.74) !important;
  box-shadow: 0 0 0 4px rgba(212,175,55,.16) !important;
}

body.ammor-auth-shell[data-portal="government"] .password-field input {
  padding-right: 58px !important;
}

body.ammor-auth-shell[data-portal="government"] .auth-options {
  min-height: 34px;
  margin: 0 0 10px;
  color: rgba(248,250,252,.70);
  font-size: 11px;
}

body.ammor-auth-shell[data-portal="government"] .remember-control {
  gap: 8px;
  letter-spacing: .08em;
}

body.ammor-auth-shell[data-portal="government"] .btn {
  min-height: 48px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #d4af37, #f7d879) !important;
  color: #05070d !important;
  font-size: 12px;
  letter-spacing: .15em;
  box-shadow: 0 18px 46px rgba(212,175,55,.24) !important;
}

body.ammor-auth-shell[data-portal="government"] .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(212,175,55,.30) !important;
}

body.ammor-auth-shell[data-portal="government"] .forgot {
  margin-top: 8px;
  min-height: 34px;
}

body.ammor-auth-shell[data-portal="government"] .forgot a,
body.ammor-auth-shell[data-portal="government"] .back a {
  min-height: 34px;
}

body.ammor-auth-shell[data-portal="government"] .security {
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(5,10,14,.58) !important;
  color: #94a3b8 !important;
  font-size: 10px;
  line-height: 1.5;
}

body.ammor-auth-shell[data-portal="government"] .security svg {
  color: #d4af37 !important;
}

body.ammor-auth-shell[data-portal="government"] .back {
  margin-top: 4px;
}

body.ammor-auth-shell[data-portal="government"] .password-toggle,
body.ammor-auth-shell[data-portal="government"] .password-toggle:hover,
body.ammor-auth-shell[data-portal="government"] .password-toggle:focus,
body.ammor-auth-shell[data-portal="government"] .password-toggle:focus-visible,
body.ammor-auth-shell[data-portal="government"] .password-toggle:active {
  position: absolute !important;
  top: auto !important;
  right: 16px !important;
  bottom: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248,250,252,.52) !important;
  font-size: 11px;
  letter-spacing: .06em;
  outline-offset: 4px;
  transform: none !important;
  transition: color .16s ease, opacity .16s ease !important;
}

body.ammor-auth-shell[data-portal="government"] .password-toggle:hover,
body.ammor-auth-shell[data-portal="government"] .password-toggle:focus-visible {
  color: rgba(245,208,111,.78) !important;
}

/* Portal login stability guard.
   Login pages must never shift, jump, or float away while the pointer moves.
   Keep hover polish limited to color, border, and glow so the forms stay locked. */
body.ammor-auth-shell .card,
body.ammor-auth-shell .portal-switch,
body.ammor-auth-shell .portal-link,
body.ammor-auth-shell .field,
body.ammor-auth-shell .field input,
body.ammor-auth-shell .btn,
body.ammor-auth-shell .auth-options,
body.ammor-auth-shell .remember-control,
body.ammor-auth-shell .security,
body.ammor-auth-shell .forgot a,
body.ammor-auth-shell .back a {
  transform: none !important;
}

body.ammor-auth-shell .portal-link:hover,
body.ammor-auth-shell .portal-link:focus-visible,
body.ammor-auth-shell .portal-link.active,
body.ammor-auth-shell .btn:hover,
body.ammor-auth-shell .btn:focus-visible,
body.ammor-auth-shell .forgot a:hover,
body.ammor-auth-shell .back a:hover {
  transform: none !important;
}

body.ammor-auth-shell .portal-link,
body.ammor-auth-shell .btn,
body.ammor-auth-shell .forgot a,
body.ammor-auth-shell .back a {
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease !important;
}

body.ammor-auth-shell .password-toggle,
body.ammor-auth-shell .password-toggle:hover,
body.ammor-auth-shell .password-toggle:focus,
body.ammor-auth-shell .password-toggle:focus-visible,
body.ammor-auth-shell .password-toggle:active {
  position: absolute !important;
  top: auto !important;
  right: 16px !important;
  bottom: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration-thickness: 1px;
}

@media (orientation: portrait) {
  body.ammor-auth-shell[data-portal="government"] {
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (max-height: 760px) and (min-width: 1181px) {
  body.ammor-auth-shell[data-portal="government"] {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body.ammor-auth-shell[data-portal="government"] .auth-scene {
    min-height: calc(100dvh - 36px);
  }

  body.ammor-auth-shell[data-portal="government"] .government-copy h1 {
    font-size: clamp(44px, 5vw, 70px);
  }

  body.ammor-auth-shell[data-portal="government"] .government-copy p {
    margin-top: 14px;
    font-size: 16px;
  }

  body.ammor-auth-shell[data-portal="government"] .government-signal-row {
    margin-top: 18px;
  }

  body.ammor-auth-shell[data-portal="government"] .card {
    padding: 16px 32px !important;
    border-radius: 24px !important;
  }

  body.ammor-auth-shell[data-portal="government"] .brand-auth-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  body.ammor-auth-shell[data-portal="government"] .logo {
    margin-bottom: 10px !important;
  }

  body.ammor-auth-shell[data-portal="government"] .logo-name {
    font-size: 11px !important;
    letter-spacing: .16em !important;
  }

  body.ammor-auth-shell[data-portal="government"] .logo-sub {
    display: none;
  }

  body.ammor-auth-shell[data-portal="government"] .title {
    font-size: 24px !important;
    margin-bottom: 6px;
  }

  body.ammor-auth-shell[data-portal="government"] .subtitle {
    max-width: 420px;
    margin: 6px auto 10px;
    font-size: 12px !important;
    line-height: 1.38;
  }

  body.ammor-auth-shell[data-portal="government"] .portal-switch {
    margin-bottom: 10px;
    padding: 4px;
  }

  body.ammor-auth-shell[data-portal="government"] .portal-link {
    min-height: 34px !important;
    font-size: 10px;
    letter-spacing: .02em;
  }

  body.ammor-auth-shell[data-portal="government"] .field {
    margin-bottom: 8px;
  }

  body.ammor-auth-shell[data-portal="government"] .field label {
    margin-bottom: 5px;
    font-size: 9px;
  }

  body.ammor-auth-shell[data-portal="government"] .field input,
  body.ammor-auth-shell[data-portal="government"] .btn {
    min-height: 42px !important;
  }

  body.ammor-auth-shell[data-portal="government"] .auth-options {
    min-height: 30px;
    margin-bottom: 8px;
    font-size: 10px;
  }

  body.ammor-auth-shell[data-portal="government"] .forgot {
    margin-top: 4px;
    min-height: 24px;
  }

  body.ammor-auth-shell[data-portal="government"] .forgot a,
  body.ammor-auth-shell[data-portal="government"] .back a {
    min-height: 24px;
  }

  body.ammor-auth-shell[data-portal="government"] .security {
    min-height: 28px;
    margin-top: 4px;
    padding: 7px 12px;
    font-size: 9px;
    line-height: 1.25;
  }

  body.ammor-auth-shell[data-portal="government"] .back {
    margin-top: 2px;
  }
}

@media (max-width: 1180px) {
  body.ammor-auth-shell[data-portal="government"] {
    grid-template-columns: 1fr !important;
    gap: 24px;
    align-items: start !important;
    align-content: start !important;
    padding: clamp(18px, 4vw, 34px) !important;
    background-attachment: scroll !important;
  }

  body.ammor-auth-shell[data-portal="government"] .auth-scene {
    position: relative !important;
    inset: auto !important;
    order: 2;
    width: min(100%, 760px) !important;
    max-width: 100%;
    min-height: auto;
    margin-inline: auto;
  }

  body.ammor-auth-shell[data-portal="government"] .government-auth-hero {
    margin: 22px auto 0;
    text-align: center;
    transform: none;
  }

  body.ammor-auth-shell[data-portal="government"] .government-copy p {
    margin-inline: auto;
  }

  body.ammor-auth-shell[data-portal="government"] .government-signal-row {
    justify-content: center;
  }

  body.ammor-auth-shell[data-portal="government"] .card {
    order: 1;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  body.ammor-auth-shell[data-portal="government"] {
    padding: 14px !important;
    overflow-y: auto !important;
  }

  body.ammor-auth-shell[data-portal="government"] .card {
    padding: 24px 16px !important;
    border-radius: 22px !important;
  }

  body.ammor-auth-shell[data-portal="government"] .government-auth-hero {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    text-align: left;
  }

  body.ammor-auth-shell[data-portal="government"] .government-copy h1 {
    font-size: clamp(38px, 11vw, 50px);
    letter-spacing: -.04em;
  }

  body.ammor-auth-shell[data-portal="government"] .government-copy p {
    margin-inline: 0;
    font-size: 15px;
  }

  body.ammor-auth-shell[data-portal="government"] .government-signal-row {
    justify-content: flex-start;
  }

  body.ammor-auth-shell[data-portal="government"] .brand-auth-logo {
    width: 64px;
    height: 64px;
  }

  body.ammor-auth-shell[data-portal="government"] .title {
    max-width: 100%;
    font-size: 32px !important;
    white-space: normal;
  }

  body.ammor-auth-shell[data-portal="government"] .subtitle {
    font-size: 14px !important;
  }

  body.ammor-auth-shell[data-portal="government"] .portal-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.ammor-auth-shell[data-portal="government"] .portal-link {
    min-height: 38px !important;
    padding: 8px 6px;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: .02em;
  }

  body.ammor-auth-shell[data-portal="government"] .field input {
    min-height: 52px;
  }

  body.ammor-auth-shell[data-portal="government"] .auth-options {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  body.ammor-auth-shell[data-portal="government"] .auth-options a,
  body.ammor-auth-shell[data-portal="government"] .remember-control {
    min-height: 38px;
  }

  body.ammor-auth-shell[data-portal="government"] .btn {
    min-height: 54px !important;
  }
}

/* Final override: all staff portals use CSS-only atmosphere, no photo artwork. */
body.ammor-auth-shell[data-portal="insurance"],
body.ammor-auth-shell[data-portal="government"] {
  background-image: none !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.18), transparent 31%),
    radial-gradient(circle at 84% 16%, rgba(125,211,252,.10), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(212,175,55,.08), transparent 34%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #07101c 48%, #05070d 100%) !important;
  background-size: auto, auto, auto, 72px 72px, 72px 72px, auto !important;
  background-position: center center !important;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat !important;
  background-attachment: fixed !important;
}

body.ammor-auth-shell[data-portal="insurance"]::before,
body.ammor-auth-shell[data-portal="government"]::before {
  opacity: .42 !important;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(245,208,111,.075) 48%, transparent 56%),
    radial-gradient(circle at 25% 35%, rgba(212,175,55,.15), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(148,163,184,.10), transparent 26%) !important;
  background-size: auto !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
  mask-image: none !important;
}

body.ammor-auth-shell[data-portal="insurance"]::after,
body.ammor-auth-shell[data-portal="government"]::after {
  opacity: .36 !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(245,208,111,.12), transparent 26%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.38)) !important;
  background-size: auto !important;
  mask-image: none !important;
}

/* 2026-07-01 portal parity and stability lock.
   Insurance and Government share one final AMMOR login structure.
   Hover states are color-only so controls do not shake, jump, or drift. */
body.ammor-auth-shell[data-portal="insurance"],
body.ammor-auth-shell[data-portal="government"] {
  --auth-parity-card: rgba(5, 10, 14, .86);
  --auth-parity-line: rgba(255, 255, 255, .14);
  --auth-parity-gold: #d4af37;
  --auth-parity-gold-2: #f5d06f;
  display: grid !important;
  grid-template-columns: minmax(420px, 660px) minmax(380px, 500px) !important;
  gap: clamp(28px, 5vw, 72px) !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100dvh !important;
  padding: clamp(20px, 4vw, 56px) !important;
}

body.ammor-auth-shell[data-portal="insurance"]::before,
body.ammor-auth-shell[data-portal="insurance"]::after,
body.ammor-auth-shell[data-portal="government"]::before,
body.ammor-auth-shell[data-portal="government"]::after {
  animation: none !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene,
body.ammor-auth-shell[data-portal="government"] .auth-scene {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(100%, 660px) !important;
  min-height: 580px !important;
  margin: 0 !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background:
    radial-gradient(circle at 32% 28%, rgba(212,175,55,.18), transparent 30%),
    radial-gradient(circle at 70% 64%, rgba(125,211,252,.10), transparent 34%),
    linear-gradient(145deg, rgba(17,24,39,.62), rgba(5,7,13,.42)) !important;
  box-shadow:
    0 34px 110px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  opacity: 1 !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene::after,
body.ammor-auth-shell[data-portal="government"] .auth-scene::after,
body.ammor-auth-shell[data-portal="insurance"] .auth-data-mesh,
body.ammor-auth-shell[data-portal="government"] .auth-data-mesh,
body.ammor-auth-shell[data-portal="insurance"] .auth-signal,
body.ammor-auth-shell[data-portal="government"] .auth-signal {
  animation: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero,
body.ammor-auth-shell[data-portal="government"] .government-auth-hero {
  display: grid !important;
}

body.ammor-auth-shell[data-portal="insurance"] .government-auth-hero,
body.ammor-auth-shell[data-portal="government"] .insurance-auth-hero {
  display: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card,
body.ammor-auth-shell[data-portal="government"] .card {
  width: min(100%, 500px) !important;
  max-width: 500px !important;
  padding: 34px !important;
  border-radius: 26px !important;
  border: 1px solid var(--auth-parity-line) !important;
  background:
    linear-gradient(145deg, rgba(248,250,252,.10), rgba(248,250,252,.035) 45%, rgba(212,175,55,.055)),
    var(--auth-parity-card) !important;
  box-shadow:
    0 34px 110px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.09) !important;
  backdrop-filter: blur(24px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.1) !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card::before,
body.ammor-auth-shell[data-portal="insurance"] .card::after,
body.ammor-auth-shell[data-portal="government"] .card::before,
body.ammor-auth-shell[data-portal="government"] .card::after {
  display: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo,
body.ammor-auth-shell[data-portal="government"] .brand-auth-logo {
  width: 68px !important;
  height: 68px !important;
  margin: 0 auto 10px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo,
body.ammor-auth-shell[data-portal="government"] .logo {
  margin-bottom: 18px !important;
  text-align: center !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo-name,
body.ammor-auth-shell[data-portal="government"] .logo-name {
  font-size: 15px !important;
  letter-spacing: .16em !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo-sub,
body.ammor-auth-shell[data-portal="government"] .logo-sub {
  display: block !important;
  font-size: 9px !important;
  letter-spacing: .16em !important;
}

body.ammor-auth-shell[data-portal="insurance"] .title,
body.ammor-auth-shell[data-portal="government"] .title {
  max-width: none !important;
  margin: 0 auto 8px !important;
  font-size: clamp(30px, 3vw, 40px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
  text-align: center !important;
  white-space: normal !important;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle,
body.ammor-auth-shell[data-portal="government"] .subtitle {
  max-width: 420px !important;
  margin: 0 auto 22px !important;
  color: rgba(248,250,252,.76) !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
  text-align: center !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-switch,
body.ammor-auth-shell[data-portal="government"] .portal-switch {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-height: 58px !important;
  margin: 0 0 20px !important;
  padding: 6px !important;
  border-radius: 15px !important;
  background: rgba(3,7,13,.58) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link,
body.ammor-auth-shell[data-portal="government"] .portal-link {
  min-height: 46px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.035) !important;
  color: rgba(248,250,252,.74) !important;
  box-shadow: none !important;
  font: 800 10px/1.2 "IBM Plex Mono", monospace !important;
  letter-spacing: .05em !important;
  text-align: center !important;
  transform: none !important;
  transition: color .12s ease, background .12s ease, border-color .12s ease !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link:hover,
body.ammor-auth-shell[data-portal="insurance"] .portal-link:focus-visible,
body.ammor-auth-shell[data-portal="government"] .portal-link:hover,
body.ammor-auth-shell[data-portal="government"] .portal-link:focus-visible {
  border-color: rgba(212,175,55,.42) !important;
  background: rgba(212,175,55,.08) !important;
  color: #f5d06f !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link.active,
body.ammor-auth-shell[data-portal="government"] .portal-link.active {
  border-color: rgba(212,175,55,.82) !important;
  background: linear-gradient(135deg, #d4af37, #f5d06f) !important;
  color: #05070d !important;
  box-shadow: none !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field,
body.ammor-auth-shell[data-portal="government"] .field {
  margin-bottom: 16px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field label,
body.ammor-auth-shell[data-portal="government"] .field label {
  margin-bottom: 8px !important;
  color: rgba(245,208,111,.84) !important;
  font: 800 10px/1 "IBM Plex Mono", monospace !important;
  letter-spacing: .14em !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field input,
body.ammor-auth-shell[data-portal="government"] .field input {
  min-height: 54px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: rgba(3,7,13,.70) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

body.ammor-auth-shell[data-portal="insurance"] .password-field input,
body.ammor-auth-shell[data-portal="government"] .password-field input {
  padding-right: 76px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .password-toggle,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:hover,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:focus,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:focus-visible,
body.ammor-auth-shell[data-portal="insurance"] .password-toggle:active,
body.ammor-auth-shell[data-portal="government"] .password-toggle,
body.ammor-auth-shell[data-portal="government"] .password-toggle:hover,
body.ammor-auth-shell[data-portal="government"] .password-toggle:focus,
body.ammor-auth-shell[data-portal="government"] .password-toggle:focus-visible,
body.ammor-auth-shell[data-portal="government"] .password-toggle:active {
  right: 18px !important;
  bottom: 5px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  color: rgba(248,250,252,.58) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color .12s ease !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn,
body.ammor-auth-shell[data-portal="government"] .btn {
  min-height: 54px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #d4af37, #f5d06f) !important;
  color: #05070d !important;
  box-shadow: 0 16px 42px rgba(212,175,55,.20) !important;
  font-size: 12px !important;
  letter-spacing: .15em !important;
  transform: none !important;
  transition: filter .12s ease, opacity .12s ease !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn:hover,
body.ammor-auth-shell[data-portal="insurance"] .btn:focus-visible,
body.ammor-auth-shell[data-portal="government"] .btn:hover,
body.ammor-auth-shell[data-portal="government"] .btn:focus-visible {
  filter: brightness(1.04) !important;
  box-shadow: 0 16px 42px rgba(212,175,55,.20) !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security,
body.ammor-auth-shell[data-portal="government"] .security {
  min-height: 44px !important;
  margin-top: 18px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.035) !important;
  color: rgba(248,250,252,.72) !important;
  font-size: 11px !important;
}

@media (max-width: 980px) {
  body.ammor-auth-shell[data-portal="insurance"],
  body.ammor-auth-shell[data-portal="government"] {
    grid-template-columns: 1fr !important;
    align-content: start !important;
    overflow-y: auto !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card,
  body.ammor-auth-shell[data-portal="government"] .card {
    order: 1 !important;
    margin-inline: auto !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .auth-scene,
  body.ammor-auth-shell[data-portal="government"] .auth-scene {
    order: 2 !important;
    width: min(100%, 660px) !important;
    min-height: 320px !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 620px) {
  body.ammor-auth-shell[data-portal="insurance"],
  body.ammor-auth-shell[data-portal="government"] {
    padding: 14px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .card,
  body.ammor-auth-shell[data-portal="government"] .card {
    padding: 26px 18px !important;
    border-radius: 22px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch,
  body.ammor-auth-shell[data-portal="government"] .portal-switch {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
}

/* 2026-07-01 final portal correction.
   The previous side-panel direction was rejected visually. This locks Insurance and
   Government into a clean, centered enterprise login card matching the Customer portal. */
body.ammor-auth-shell[data-portal="insurance"],
body.ammor-auth-shell[data-portal="government"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center !important;
  align-content: center !important;
  min-height: 100dvh !important;
  padding: clamp(16px, 4vw, 40px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.16), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(125,211,252,.08), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(212,175,55,.10), transparent 30%),
    linear-gradient(rgba(255,255,255,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(180deg, #05070d 0%, #07101c 52%, #05070d 100%) !important;
  background-size: auto, auto, auto, 64px 64px, 64px 64px, auto !important;
}

body.ammor-auth-shell[data-portal="insurance"] .auth-scene,
body.ammor-auth-shell[data-portal="government"] .auth-scene,
body.ammor-auth-shell[data-portal="insurance"] .insurance-auth-hero,
body.ammor-auth-shell[data-portal="government"] .government-auth-hero,
body.ammor-auth-shell[data-portal="insurance"] .auth-command-preview,
body.ammor-auth-shell[data-portal="government"] .auth-command-preview {
  display: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card,
body.ammor-auth-shell[data-portal="government"] .card {
  width: min(100%, 480px) !important;
  max-width: 480px !important;
  min-height: auto !important;
  margin: 0 auto !important;
  padding: clamp(24px, 3vw, 32px) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background:
    linear-gradient(145deg, rgba(248,250,252,.10), rgba(248,250,252,.035) 46%, rgba(212,175,55,.045)),
    rgba(5,10,14,.88) !important;
  box-shadow:
    0 28px 86px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.09) !important;
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo,
body.ammor-auth-shell[data-portal="government"] .brand-auth-logo {
  width: 58px !important;
  height: 58px !important;
  margin-bottom: 8px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .logo,
body.ammor-auth-shell[data-portal="government"] .logo {
  margin-bottom: 14px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .title,
body.ammor-auth-shell[data-portal="government"] .title {
  font-size: clamp(28px, 4vw, 34px) !important;
  margin-bottom: 8px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .subtitle,
body.ammor-auth-shell[data-portal="government"] .subtitle {
  margin-bottom: 18px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-switch,
body.ammor-auth-shell[data-portal="government"] .portal-switch {
  min-height: 52px !important;
  margin-bottom: 18px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .portal-link,
body.ammor-auth-shell[data-portal="government"] .portal-link {
  min-height: 40px !important;
  padding-inline: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 9px !important;
  letter-spacing: .055em !important;
  line-height: 1.1 !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field,
body.ammor-auth-shell[data-portal="government"] .field {
  margin-bottom: 13px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .field input,
body.ammor-auth-shell[data-portal="government"] .field input {
  min-height: 50px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn,
body.ammor-auth-shell[data-portal="government"] .btn {
  min-height: 50px !important;
}

body.ammor-auth-shell[data-portal="insurance"] .card:hover,
body.ammor-auth-shell[data-portal="government"] .card:hover,
body.ammor-auth-shell[data-portal="insurance"] .portal-switch:hover,
body.ammor-auth-shell[data-portal="government"] .portal-switch:hover,
body.ammor-auth-shell[data-portal="insurance"] .portal-link:hover,
body.ammor-auth-shell[data-portal="government"] .portal-link:hover,
body.ammor-auth-shell[data-portal="insurance"] .btn:hover,
body.ammor-auth-shell[data-portal="government"] .btn:hover {
  transform: none !important;
}

body.ammor-auth-shell[data-portal="insurance"] .security,
body.ammor-auth-shell[data-portal="government"] .security {
  margin-top: 14px !important;
}

@media (max-width: 620px) {
  body.ammor-auth-shell[data-portal="insurance"] .card,
  body.ammor-auth-shell[data-portal="government"] .card {
    width: min(100%, 362px) !important;
    padding: 24px 18px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .brand-auth-logo,
  body.ammor-auth-shell[data-portal="government"] .brand-auth-logo {
    width: 50px !important;
    height: 50px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .logo,
  body.ammor-auth-shell[data-portal="government"] .logo {
    margin-bottom: 10px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .title,
  body.ammor-auth-shell[data-portal="government"] .title {
    font-size: 28px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .subtitle,
  body.ammor-auth-shell[data-portal="government"] .subtitle {
    margin-bottom: 14px !important;
    font-size: 12px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-switch,
  body.ammor-auth-shell[data-portal="government"] .portal-switch {
    margin-bottom: 14px !important;
    grid-template-columns: 1fr !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .portal-link,
  body.ammor-auth-shell[data-portal="government"] .portal-link {
    white-space: normal !important;
    font-size: 10px !important;
    letter-spacing: .08em !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field,
  body.ammor-auth-shell[data-portal="government"] .field {
    margin-bottom: 10px !important;
  }

  body.ammor-auth-shell[data-portal="insurance"] .field input,
  body.ammor-auth-shell[data-portal="government"] .field input,
  body.ammor-auth-shell[data-portal="insurance"] .btn,
  body.ammor-auth-shell[data-portal="government"] .btn {
    min-height: 46px !important;
  }
}

/* Mobile app readiness guardrail for Government and Insurance portal login. */
@media (max-width: 768px) {
  html,
  body.ammor-auth-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body.ammor-auth-shell .auth-scene {
    width: 100% !important;
    min-height: 100dvh !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    place-items: start center !important;
    align-content: start !important;
    padding: 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.ammor-auth-shell .insurance-auth-hero,
  body.ammor-auth-shell .government-auth-hero,
  body.ammor-auth-shell .auth-command-preview {
    display: none !important;
  }

  body.ammor-auth-shell .card {
    width: min(100%, 380px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 24px 18px !important;
    border-radius: 22px !important;
    transform: none !important;
  }

  body.ammor-auth-shell .logo {
    margin-bottom: 12px !important;
  }

  body.ammor-auth-shell .brand-auth-logo {
    width: 54px !important;
    height: 54px !important;
  }

  body.ammor-auth-shell .brand-title {
    font-size: 18px !important;
    letter-spacing: .12em !important;
    line-height: 1.15 !important;
  }

  body.ammor-auth-shell .brand-subline {
    font-size: 8px !important;
    letter-spacing: .16em !important;
  }

  body.ammor-auth-shell .title {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.08 !important;
  }

  body.ammor-auth-shell .subtitle {
    font-size: 13px !important;
    line-height: 1.48 !important;
  }

  body.ammor-auth-shell .portal-switch {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    min-height: 0 !important;
    padding: 7px !important;
  }

  body.ammor-auth-shell .portal-link {
    min-height: 42px !important;
    justify-content: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    transform: none !important;
  }

  body.ammor-auth-shell .field,
  body.ammor-auth-shell .auth-options,
  body.ammor-auth-shell .security {
    width: 100% !important;
  }

  body.ammor-auth-shell .field input {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
  }

  body.ammor-auth-shell .password-wrap,
  body.ammor-auth-shell .password-field {
    position: relative !important;
  }

  body.ammor-auth-shell .show-password,
  body.ammor-auth-shell .show-pass,
  body.ammor-auth-shell [data-show-password] {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(203, 213, 225, .72) !important;
    font: 800 13px/1 Inter, system-ui, sans-serif !important;
  }

  body.ammor-auth-shell .show-password:hover,
  body.ammor-auth-shell .show-pass:hover,
  body.ammor-auth-shell [data-show-password]:hover {
    transform: translateY(-50%) !important;
    color: #f5d06f !important;
  }

  body.ammor-auth-shell .btn {
    width: 100% !important;
    min-height: 48px !important;
  }
}

@media (max-width: 420px) {
  body.ammor-auth-shell .auth-scene {
    padding: 10px !important;
  }

  body.ammor-auth-shell .card {
    width: min(100%, 366px) !important;
    padding: 22px 16px !important;
  }

  body.ammor-auth-shell .title {
    font-size: 29px !important;
  }
}

/* Portal CTA parity: one calm Sign In action across Insurance, Government, and Customer. */
body.ammor-auth-shell[data-portal="insurance"] .btn,
body.ammor-auth-shell[data-portal="government"] .btn {
  width: 100% !important;
  min-height: 44px !important;
  margin: 14px 0 0 !important;
  padding: 0 22px !important;
  border-radius: 12px !important;
  background: #d4af37 !important;
  color: #05070d !important;
  box-shadow: 0 10px 24px rgba(212,175,55,.16) !important;
  font: 750 14px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  transform: none !important;
  transition: background .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

body.ammor-auth-shell[data-portal="insurance"] .btn:hover,
body.ammor-auth-shell[data-portal="insurance"] .btn:focus-visible,
body.ammor-auth-shell[data-portal="government"] .btn:hover,
body.ammor-auth-shell[data-portal="government"] .btn:focus-visible {
  background: #f5d06f !important;
  box-shadow: 0 12px 28px rgba(212,175,55,.20) !important;
  filter: none !important;
  transform: none !important;
}

@media (max-width: 620px) {
  body.ammor-auth-shell[data-portal="insurance"] .btn,
  body.ammor-auth-shell[data-portal="government"] .btn {
    width: 100% !important;
    min-height: 44px !important;
  }
}
