body.login-page {
  min-height: 100vh;
  background: #e9efe7;
}

body.login-page .login-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #dbe7d8;
}

.auth-slides {
  position: absolute;
  inset: 0;
}

.auth-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.02) brightness(0.9);
  opacity: 0;
  transform: scale(1.03);
  animation: authSlide 24s linear infinite;
}

.auth-slide-1 {
  background-image: url("/uploads/img/mbes.jpg");
  animation-delay: 0s;
}

.auth-slide-2 {
  background-image: url("/uploads/img/wing/shark.jpg");
  animation-delay: 6s;
}

.auth-slide-3 {
  background-image: url("/uploads/img/reb.jpg");
  animation-delay: 12s;
}

.auth-slide-4 {
  background-image: url("/uploads/img/fox_2_0.png");
  animation-delay: 18s;
}

@keyframes authSlide {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  5% {
    opacity: 1;
  }
  22% {
    opacity: 1;
  }
  27% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 620px at 85% 100%, rgba(93, 139, 70, 0.2), transparent 64%),
    radial-gradient(760px 460px at 0% 0%, rgba(62, 91, 44, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(247, 251, 246, 0.3) 0%, rgba(242, 248, 241, 0.52) 100%);
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 114, 58, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 114, 58, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 24%, rgba(0, 0, 0, 1) 100%);
}

.auth-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}

.auth-glow-1 {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 20%;
  background: rgba(108, 167, 75, 0.16);
}

.auth-glow-2 {
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: -30px;
  background: rgba(84, 133, 62, 0.15);
}

.auth-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 540px);
  border: 1px solid rgba(107, 139, 92, 0.42);
  background: linear-gradient(180deg, rgba(250, 252, 249, 0.92) 0%, rgba(241, 247, 239, 0.9) 100%);
  box-shadow: 0 26px 90px rgba(29, 46, 32, 0.26);
  backdrop-filter: blur(6px);
  color: #182017;
}

.auth-title-wrap {
  margin-bottom: 8px;
}

.auth-title {
  margin-bottom: 4px;
}

.auth-subtitle {
  line-height: 1.45;
  color: #40543e;
}

.auth-form input {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(117, 151, 100, 0.38);
  color: #1f2a1d;
}

.auth-form input:focus {
  border-color: rgba(162, 214, 124, 0.6);
  box-shadow: 0 0 0 3px rgba(125, 190, 86, 0.2);
}

.auth-passwordless-hint {
  padding: 8px 10px;
  border: 1px dashed rgba(178, 220, 149, 0.38);
  border-radius: 8px;
  background: rgba(201, 226, 185, 0.36);
  color: #253324;
  font-size: 13px;
}

.auth-submit {
  margin-top: 4px;
  min-height: 44px;
}

.auth-error {
  margin-top: 12px;
  border: 1px solid rgba(255, 126, 126, 0.55);
  background: rgba(155, 20, 20, 0.24);
  color: #572222;
  border-radius: 8px;
  padding: 10px 12px;
}

.auth-card .muted {
  color: #40543e;
}

@media (max-width: 720px) {
  .auth-content {
    padding: 16px;
  }

  .auth-card {
    border-radius: 12px;
  }

  .auth-subtitle {
    font-size: 13px;
  }
}
