/* SOLUSIFT Login — compact zoom-aware version 5.
   Matches the approved compact centered mockup. One stylesheet, no CSS zoom,
   no transform scale, and no layout overrides from previous iterations. */
:root {
  --sl-ink: #111420;
  --sl-muted: #66748a;
  --sl-green: #658800;
  --sl-lime: #d3ff00;
  --sl-border: #e4e9ef;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body.sl-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--sl-ink);
  background: white;
  font: 15px/1.48 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.sl-page a { color: inherit; text-decoration: none; }
body.sl-page input, body.sl-page button { font: inherit; }
body.sl-page button { cursor: pointer; }
.sl-skip { position: absolute; left: 10px; top: -100px; z-index: 5; padding: 10px 12px; border-radius: 8px; background: var(--sl-lime); }
.sl-skip:focus { top: 10px; }
.sl-main-form-only {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px 18px;
  overflow: hidden;
  background: radial-gradient(ellipse 33% 48% at 97% 92%, #faffed, transparent 76%), #fff;
}
.sl-main-form-only::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -210px;
  width: min(700px, 56vw);
  aspect-ratio: 1;
  border: clamp(68px, 8vw, 115px) solid #f2ffd1;
  border-radius: 50%;
  opacity: .68;
  z-index: -1;
  pointer-events: none;
}
.sl-login-shell {
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform: translateY(-10px);
}
.sl-login-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}
.sl-login-brand img { display: block; width: 39px; height: 47px; object-fit: contain; }
.sl-login-card {
  width: 100%;
  padding: 28px 30px 26px;
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: 21px;
  box-shadow: 0 20px 55px rgba(20, 35, 51, .085);
}
.sl-form-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--sl-green); font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.sl-form-kicker > span { color: #a7d000; font-size: 17px; line-height: 1; }
.sl-login-card h1 { margin: 0 0 12px; font-size: 37px; line-height: 1.08; letter-spacing: -.052em; font-weight: 900; }
.sl-period { color: #a1d300; }
.sl-form-intro { margin: 0 0 24px; color: var(--sl-muted); font-size: 14px; line-height: 1.5; }
.sl-field { margin-bottom: 18px; }
.sl-field label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.sl-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sl-label-row a { margin-bottom: 8px; color: var(--sl-green) !important; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sl-label-row a:hover { text-decoration: underline; }
.sl-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  background: white;
  border: 1px solid #dce3eb;
  border-radius: 11px;
  transition: box-shadow .15s, border-color .15s;
}
.sl-input-wrap:focus-within { border-color: #aed200; box-shadow: 0 0 0 3px rgba(211,255,0,.18); }
.sl-input-wrap > svg { position: absolute; left: 14px; color: #8b9caf; pointer-events: none; }
.sl-input-wrap input { width: 100%; height: 100%; min-width: 0; padding: 0 51px 0 45px; border: 0; outline: none; background: transparent; color: var(--sl-ink); font-size: 15px; }
.sl-input-wrap input::placeholder { color: #8b98ab; }
.sl-toggle { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; display: grid; place-items: center; background: #f4f6f8; border: 0; border-radius: 8px; color: #607085; }
.sl-toggle:hover { background: #ebf5cf; }
.sl-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 55px;
  gap: 12px;
  padding: 8px 9px 8px 20px;
  border: 0;
  border-radius: 11px;
  color: #0d1520;
  background: var(--sl-lime);
  font-size: 16px;
  font-weight: 850;
}
.sl-submit:hover { filter: brightness(.97); }
.sl-submit-arrow { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; color: white; background: #111625; font-size: 20px; }
.sl-trust { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: #778599; font-size: 12px; text-align: center; }
.sl-trust svg { flex-shrink: 0; color: #78a900; }
.sl-error { display: flex; align-items: flex-start; gap: 9px; padding: 11px; margin-bottom: 14px; border: 1px solid #f4c1b8; background: #fff1ef; color: #8f302a; border-radius: 11px; font-size: 13px; }
.sl-error svg { flex-shrink: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #6a8c00; outline-offset: 3px; }
/* Prevent scrolling only when sufficient room exists; on small screens keep
   content and error messages reachable rather than clipping them. */
@media (min-width: 800px) and (min-height: 700px) {
  html, body.sl-page { height: 100%; overflow: hidden; }
  .sl-main-form-only { height: 100dvh; min-height: 0; }
}
@media (max-width: 599px) {
  .sl-main-form-only { padding: 22px 15px; }
  .sl-main-form-only::before { top: 8%; width: 78vw; right: -43vw; border-width: 12vw; }
  .sl-login-shell { gap: 18px; transform: none; }
  .sl-login-brand { font-size: 23px; }
  .sl-login-brand img { width: 35px; height: 43px; }
  .sl-login-card { padding: 26px 22px 24px; border-radius: 19px; }
  .sl-login-card h1 { font-size: 36px; }
  .sl-form-intro { font-size: 14px; }
  .sl-input-wrap input { font-size: 16px; }
  .sl-trust { font-size: 11.5px; }
}
@media (max-width: 360px) {
  .sl-login-card { padding: 22px 17px; }
  .sl-login-card h1 { font-size: 32px; }
  .sl-label-row a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* v5: Fit compact login at browser zoom >100% or short desktop viewports.
   Chrome page zoom reduces CSS viewport height and formerly caused clipping.
   Default desktop dimensions are unchanged at 100% browser zoom. */
@media (min-width: 800px) and (max-height: 719px) {
  html, body.sl-page { height: 100%; overflow: hidden; }
  .sl-main-form-only { height: 100dvh; min-height: 0; padding: 10px 14px; }
  .sl-login-shell { zoom: .80; transform: none; }
}
@media (min-width: 800px) and (max-height: 570px) {
  .sl-login-shell { zoom: .70; }
}
@media (min-width: 800px) and (max-height: 440px) {
  html, body.sl-page { height: auto; overflow-y: auto; }
  .sl-main-form-only { height: auto; min-height: 100dvh; }
  .sl-login-shell { zoom: .64; }
}
