:root {
  --sf-navy: #0f2236;
  --sf-blue: #1f5d7a;
  --sf-green: #2f7d63;
  --sf-card: rgba(255, 255, 255, 0.94);
}
body.sabatelli-auth-lock {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(47, 125, 99, 0.28), transparent 34%),
              linear-gradient(135deg, #071523 0%, #102a43 48%, #244b57 100%);
}
body.sabatelli-auth-lock #root {
  display: none !important;
}
.sf-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142033;
  overflow: hidden;
}
.sf-auth-screen::before,
.sf-auth-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .55;
}
.sf-auth-screen::before {
  width: 520px;
  height: 520px;
  left: -180px;
  top: -210px;
  background: rgba(53, 157, 118, .34);
}
.sf-auth-screen::after {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -180px;
  background: rgba(33, 95, 125, .42);
}
.sf-auth-card {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 440px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--sf-card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
  border: 1px solid rgba(255,255,255,.5);
  position: relative;
}
.sf-auth-brand {
  padding: 46px;
  color: #fff;
  background: linear-gradient(145deg, rgba(15,34,54,.96), rgba(32,93,122,.94)),
              linear-gradient(135deg, rgba(52,135,104,.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.sf-auth-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sf-auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.sf-auth-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}
.sf-auth-company {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
}
.sf-auth-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 850;
}
.sf-auth-subtitle {
  margin: 18px 0 0;
  max-width: 390px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.65;
}
.sf-auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sf-auth-pill {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 700;
}
.sf-auth-panel {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
}
.sf-auth-panel h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.03em;
  color: #0f2236;
}
.sf-auth-panel p {
  margin: 10px 0 28px;
  color: #64748b;
  line-height: 1.55;
}
.sf-auth-form {
  display: grid;
  gap: 16px;
}
.sf-auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #24364a;
}
.sf-auth-input {
  width: 100%;
  height: 50px;
  border: 1px solid #d8e0ea;
  border-radius: 15px;
  padding: 0 15px;
  background: #fff;
  color: #0f2236;
  font-size: 15px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sf-auth-input:focus {
  border-color: #2f7d63;
  box-shadow: 0 0 0 4px rgba(47, 125, 99, .14);
}
.sf-auth-submit {
  margin-top: 8px;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f7d63, #1f5d7a);
  color: #fff;
  font-weight: 850;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(31, 93, 122, .25);
  transition: transform .18s ease, filter .18s ease;
}
.sf-auth-submit:hover { transform: translateY(-1px); filter: brightness(1.03); }
.sf-auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.sf-auth-error {
  display: none;
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-size: 13px;
  font-weight: 700;
}
.sf-auth-error.is-visible { display: block; }
.sf-auth-wait {
  color: rgba(255,255,255,.88);
  font-weight: 700;
  text-align: center;
}
.sf-auth-logout {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(15, 34, 54, .12);
  background: rgba(255, 255, 255, .92);
  color: #0f2236;
  border-radius: 999px;
  padding: 10px 15px;
  font: 800 13px Inter, system-ui, sans-serif;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.sf-auth-logout:hover { background: #fff; }
@media (max-width: 860px) {
  .sf-auth-card { grid-template-columns: 1fr; min-height: auto; }
  .sf-auth-brand { padding: 34px; }
  .sf-auth-panel { padding: 34px; }
  .sf-auth-pills { display: none; }
}
@media (max-width: 520px) {
  .sf-auth-screen { padding: 14px; }
  .sf-auth-card { border-radius: 24px; }
  .sf-auth-brand { padding: 26px; }
  .sf-auth-panel { padding: 26px; }
  .sf-auth-title { font-size: 34px; }
}