/* SAMAMI v102 password-only layout contract. Intentionally scoped: no login, ERP or public pages are changed. */
html body #root .sam-password-page {
  --password-surface: #ffffff;
  --password-input: #f5f8fc;
  --password-ink: #17283e;
  --password-muted: #475569;
  --password-border: #b6c8d8;
  --password-focus: #a87621;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:calc(100svh - 90px)!important;
  padding:clamp(16px,3vw,48px)!important;
  background:#edf2f7!important;
  color:var(--password-ink)!important;
  direction:inherit!important;
  overflow:visible!important;
}
html[data-theme="dark"] body #root .sam-password-page,
html.dark body #root .sam-password-page,
#root [data-theme="dark"] .sam-password-page,
#root [data-theme="dark"].sam-password-page {
  --password-surface:#122137;
  --password-input:#0b1c31;
  --password-ink:#f4f7fc;
  --password-muted:#c7d4e5;
  --password-border:#56718b;
  --password-focus:#e7bc65;
  background:#081421!important;
  color:var(--password-ink)!important;
}
html body #root .sam-password-page .sam-auth-editorial {
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)!important;
  gap:clamp(14px,2.4vw,36px)!important;
  width:min(1220px,100%)!important;
  max-width:1220px!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0!important;
  align-items:stretch!important;
  border:0!important;
  border-radius:20px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body #root .sam-password-page .sam-auth-visual {
  position:relative!important;
  min-width:0!important;
  min-height:520px!important;
  height:auto!important;
  padding:0!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background:#172a3d!important;
  color:#fff!important;
  box-shadow:0 12px 30px #00000025!important;
}
html body #root .sam-password-page .sam-auth-visual > img {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center!important;
  opacity:.88!important;
}
html body #root .sam-password-page .sam-auth-visual::after {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:linear-gradient(180deg,rgba(0,12,25,.15),rgba(4,17,32,.95))!important;
  pointer-events:none!important;
}
html body #root .sam-password-page .sam-auth-visual-copy {
  position:absolute!important;
  z-index:2!important;
  inset:auto clamp(20px,3vw,42px) clamp(24px,4vw,48px)!important;
  width:auto!important;
  max-width:calc(100% - 40px)!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  text-align:start!important;
  background:transparent!important;
}
html body #root .sam-password-page .sam-auth-visual-copy :is(h1,p,div) {
  color:#f8fafc!important;
  text-shadow:0 1px 5px #0009!important;
}
html body #root .sam-password-page .sam-auth-visual-copy h1 {
  margin:12px 0!important;
  font-size:clamp(24px,2.6vw,36px)!important;
  line-height:1.55!important;
}
html body #root .sam-password-page .sam-auth-panel {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:520px!important;
  margin:0!important;
  padding:clamp(20px,3vw,46px)!important;
  border:1px solid var(--password-border)!important;
  border-radius:20px!important;
  background:var(--password-surface)!important;
  color:var(--password-ink)!important;
  box-shadow:0 14px 36px #071a281c!important;
  direction:inherit!important;
  text-align:start!important;
}
html body #root .sam-password-page .sam-auth-panel > div {
  width:100%!important;
  max-width:480px!important;
  min-width:0!important;
  margin-inline:auto!important;
  color:var(--password-ink)!important;
}
html body #root .sam-password-page .sam-auth-panel h2 {
  color:var(--password-ink)!important;
  font-size:clamp(24px,2vw,30px)!important;
  line-height:1.5!important;
  margin:10px 0!important;
  text-align:start!important;
}
html body #root .sam-password-page .sam-auth-panel p:not(.sam-page-eyebrow) {
  color:var(--password-muted)!important;
  line-height:1.9!important;
  text-align:start!important;
}
html body #root .sam-password-page .sam-auth-panel .sam-page-eyebrow {
  color:var(--password-focus)!important;
  font-weight:800!important;
  text-align:start!important;
}
html body #root .sam-password-page .sam-auth-form {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  gap:16px!important;
  margin-top:22px!important;
  text-align:start!important;
}
html body #root .sam-password-page .sam-auth-form :is(.sam-public-field, label) {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  color:var(--password-ink)!important;
  text-align:start!important;
}
html body #root .sam-password-page .sam-auth-form :is(.sam-public-field, label) > :is(span,strong) {
  color:var(--password-ink)!important;
  text-align:start!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.75!important;
}
html body #root .sam-password-page .sam-auth-field-with-icon {
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  display:block!important;
}
html body #root .sam-password-page .sam-auth-field-icon {
  position:absolute!important;
  inset:auto auto auto 15px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:var(--password-muted)!important;
  pointer-events:none!important;
  z-index:2!important;
}
html body #root .sam-password-page .sam-auth-field-with-icon > input.sam-public-input {
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:54px!important;
  min-height:54px!important;
  margin:0!important;
  padding:12px 50px!important;
  box-sizing:border-box!important;
  border:1.5px solid var(--password-border)!important;
  border-radius:12px!important;
  background:var(--password-input)!important;
  color:var(--password-ink)!important;
  -webkit-text-fill-color:var(--password-ink)!important;
  caret-color:var(--password-focus)!important;
  font-family:inherit!important;
  text-align:center!important;
  text-align-last:center!important;
  direction:ltr!important;
  outline-offset:3px!important;
  box-shadow:none!important;
}
html body #root .sam-password-page .sam-auth-field-with-icon > input.sam-public-input:focus-visible {
  outline:2px solid var(--password-focus)!important;
  border-color:var(--password-focus)!important;
}
html body #root .sam-password-page .sam-auth-field-with-icon > input.sam-public-input:is(:-webkit-autofill,:autofill) {
  -webkit-box-shadow:0 0 0 1000px var(--password-input) inset!important;
  -webkit-text-fill-color:var(--password-ink)!important;
}
html body #root .sam-password-page .sam-form-submit {
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  min-height:52px!important;
  margin-top:8px!important;
  padding:12px 18px!important;
  border:0!important;
  border-radius:12px!important;
  background:#c99943!important;
  color:#102031!important;
  font-weight:800!important;
  line-height:1.6!important;
  cursor:pointer!important;
}
html body #root .sam-password-page .sam-form-submit:disabled {
  opacity:.65!important;
  cursor:not-allowed!important;
}
html body #root .sam-password-page .sam-form-message {
  border:1px solid #bc5b5b!important;
  border-radius:10px!important;
  padding:12px!important;
  background:#feecec!important;
  color:#872626!important;
  text-align:start!important;
}
@media (max-width:820px) {
  html body #root .sam-password-page {padding:12px!important;}
  html body #root .sam-password-page .sam-auth-editorial {
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
  }
  html body #root .sam-password-page .sam-auth-panel {
    order:0!important;
    min-height:0!important;
    padding:clamp(20px,5vw,32px)!important;
  }
  html body #root .sam-password-page .sam-auth-visual {
    order:1!important;
    min-height:285px!important;
    height:285px!important;
  }
  html body #root .sam-password-page .sam-auth-visual-copy h1 {font-size:23px!important;}
  html body #root .sam-password-page .sam-auth-visual-copy {inset:auto 18px 22px!important;}
}
