body[data-app="logisto-auth"] {
  min-height: 100dvh;
  overflow: hidden;
  background: #edf2f8;
}

.auth-shell {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 500px);
  align-items: center;
  padding: clamp(24px, 5vw, 68px);
  color: var(--ink);
}

.auth-bg-image {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247,250,253,.05) 0%, rgba(239,244,250,.18) 45%, rgba(232,239,247,.76) 100%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(224,233,243,.18) 100%);
}

.auth-panel {
  display: grid;
  grid-column: 2;
  justify-items: center;
}

.auth-card {
  width: 100%;
  max-width: 398px;
  border: 1px solid rgba(188,198,212,.86);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 76px rgba(42,54,70,.14), inset 0 1px 0 rgba(255,255,255,.95);
  padding: 32px;
  backdrop-filter: blur(12px);
}

.auth-card-logo {
  display: block;
  width: 112px;
  max-height: 46px;
  object-fit: contain;
  margin: 0 0 22px;
}

.auth-card h2 {
  margin: 0 0 22px;
  font: 700 32px/1.04 var(--font-display);
  letter-spacing: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.auth-field label {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-forgot {
  color: #375a88;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover {
  color: #1e3f6d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-field .up-input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  font-family: var(--font-sans);
  font-size: 15px;
}

.auth-field .up-input:focus {
  border-color: rgba(39,102,196,.48);
  box-shadow: 0 0 0 4px rgba(39,102,196,.10);
}

.auth-error {
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid var(--danger-line);
  border-radius: 12px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: var(--fs-sm);
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  margin-top: 4px;
  padding-inline: 16px;
  border-radius: 12px;
  transition: transform .14s cubic-bezier(.16,1,.3,1);
}

.auth-submit:active {
  transform: translateY(1px) scale(.99);
}

.auth-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1120px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  }
}

@media (max-width: 860px) {
  body[data-app="logisto-auth"] {
    overflow: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px;
  }

  .auth-shell::after {
    background: linear-gradient(180deg, rgba(238,244,250,.82) 0%, rgba(238,244,250,.28) 48%, rgba(238,244,250,.10) 100%);
  }

  .auth-bg-image {
    object-position: center bottom;
  }

  .auth-panel {
    grid-column: 1;
    width: 100%;
  }

  .auth-card {
    max-width: none;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit {
    transition: none;
  }
}
