.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  background: #071426;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 153, 51, 0.28), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(20, 90, 160, 0.38), transparent 34%),
    linear-gradient(135deg, #071426 0%, #0b2447 54%, #102a43 100%);
}

.auth-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: gridDrift 18s linear infinite;
}

.map-line {
  position: absolute;
  width: 42vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 51, 0.8), transparent);
  transform: rotate(-16deg);
  animation: scanLine 7s ease-in-out infinite;
}

.line-one {
  top: 28%;
  left: 11%;
}

.line-two {
  right: 7%;
  bottom: 27%;
  animation-delay: -2.5s;
}

.district-panel {
  position: absolute;
  width: 210px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 153, 51, 0.12), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 19px);
  clip-path: polygon(10% 0, 92% 8%, 100% 58%, 74% 100%, 12% 88%, 0 32%);
  animation: floatPanel 10s ease-in-out infinite;
}

.panel-one {
  top: 15%;
  left: 9%;
}

.panel-two {
  top: 19%;
  right: 10%;
  transform: rotate(14deg);
  animation-delay: -3s;
}

.panel-three {
  right: 18%;
  bottom: 13%;
  transform: rotate(-10deg);
  animation-delay: -5s;
}

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

.auth-card {
  width: min(100%, 440px);
  padding: 30px;
  background: rgba(8, 22, 40, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #071426;
  background: linear-gradient(135deg, #ff9933, #ffffff 54%, #138808);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(255, 153, 51, 0.22);
  font-size: 20px;
}

.auth-kicker {
  margin: 0 0 2px;
  color: #ffcf99;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-brand h1,
.auth-copy h2 {
  margin: 0;
  color: #fff;
}

.auth-brand h1 {
  font-size: 20px;
  font-weight: 600;
}

.auth-copy {
  margin-bottom: 22px;
}

.auth-copy h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.auth-form .form-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.auth-form .input-group-text,
.auth-form .form-control,
.password-toggle {
  min-height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.auth-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.auth-form .form-control:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: #ff9933;
  box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.18);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.forgot-link {
  color: #ffcf99;
  font-weight: 500;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  color: #071426;
  background: linear-gradient(135deg, #ff9933, #ffd29a);
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(58px, 58px, 0);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes scanLine {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-18px) rotate(-16deg);
  }

  50% {
    opacity: 0.9;
    transform: translateX(38px) rotate(-16deg);
  }
}

@media (max-width: 540px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .auth-copy h2 {
    font-size: 22px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
