body.auth-page {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(134, 199, 255, 0.1), transparent 32%),
    #06080d;
}

.auth-preview {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text);
}

.auth-preview::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 24px;
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 23, 31, 0.98), rgba(9, 12, 18, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.auth-logo-frame {
  width: clamp(150px, 36vw, 210px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(134, 199, 255, 0.32);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.34),
    0 0 0 10px rgba(47, 125, 255, 0.04);
}

.auth-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card h1 {
  margin: -4px 0 0;
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.55rem);
  line-height: 1;
}

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

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

.auth-field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  transition: 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(156, 168, 184, 0.72);
}

.auth-field input:focus {
  border-color: rgba(47, 125, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.12);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.auth-message {
  min-height: 18px;
  margin: -4px 0 0;
  color: #ff9a9a;
  font-size: 0.8rem;
  line-height: 1.35;
}

.auth-message:empty {
  display: none;
}

.auth-submit {
  min-height: 48px;
  margin-top: 2px;
  border-radius: 14px;
  color: #031225;
  font-size: 0.96rem;
}

@media (max-width: 640px) {
  .auth-preview {
    padding: 12px;
  }

  .auth-card {
    gap: 20px;
    border-radius: 18px;
    padding: 24px 20px;
  }

  .auth-logo-frame {
    width: 150px;
    border-radius: 22px;
  }
}
