.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: #e8eef2;
}

.auth-bg,
.auth-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-bg {
  z-index: 0;
  background-image: url("../assets/images/login-airport-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: blur(1.2px);
}

.auth-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.36) 42%, rgba(255, 255, 255, 0.5) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(196, 164, 74, 0.12), transparent 55%);
}

.auth-overlay::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  bottom: 7%;
  height: 3px;
  border-radius: 99px;
  background: repeating-linear-gradient(
    90deg,
    rgba(138, 109, 31, 0.15) 0 10px,
    rgba(196, 164, 74, 0.55) 10px 16px,
    transparent 16px 28px
  );
  filter: blur(0.4px);
  animation: runway-glow 3.8s ease-in-out infinite;
}

.auth-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.auth-top .home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-top .brand-mark {
  width: 40px;
  height: 40px;
}

.auth-top .brand-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.flight-anim {
  position: absolute;
  inset-inline: 0;
  top: 64px;
  width: min(920px, 92%);
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.72;
}

.flight-anim-svg {
  width: 100%;
  height: 110px;
  overflow: visible;
}

.flight-curve {
  stroke: var(--gold-dark);
  stroke-width: 1.4;
  stroke-dasharray: 5 8;
  opacity: 0.55;
  animation: route-dash 18s linear infinite;
}

.flight-dot {
  fill: var(--gold-dark);
}

.flight-plane {
  fill: var(--emerald-deep);
  offset-path: path("M40 118 C 180 28, 310 150, 470 72 S 760 20, 960 88");
  -webkit-offset-path: path("M40 118 C 180 28, 310 150, 470 72 S 760 20, 960 88");
  offset-rotate: auto;
  -webkit-offset-rotate: auto;
  animation: fly-route 16s linear infinite;
}

.flight-plane path {
  transform: translate(-10px, -11px);
}

@keyframes fly-route {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes runway-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.8;
  }
}

.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 22px;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 18px 44px rgba(6, 78, 59, 0.12);
  padding: 32px 28px;
}

.auth-card .kicker {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin: 8px 0 6px;
  color: var(--emerald-dark);
}

.auth-card .lead {
  color: var(--muted);
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald-dark);
}

.field input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  color: var(--emerald-dark);
  width: 100%;
  max-width: 100%;
}

.field input:focus {
  outline: 2px solid rgba(138, 109, 31, 0.28);
  border-color: var(--gold-dark);
}

.auth-card .btn-primary {
  width: 100%;
  margin-top: 6px;
}

.auth-card .btn-primary:hover {
  box-shadow: 0 8px 20px rgba(11, 143, 104, 0.28), 0 0 0 1px var(--gold-dark);
}

.form-error {
  background: #fdecec;
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.demo-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.demo-box h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--emerald-dark);
}

.demo-box p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-checking .auth-page,
.auth-checking .app-shell,
.auth-checking.booking-types-page .app-shell {
  visibility: hidden;
}

.auth-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
}

.auth-loading[hidden] {
  display: none;
}

.auth-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--emerald-dark);
  font-weight: 700;
}

.auth-loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(11, 143, 104, 0.18);
  border-top-color: var(--emerald-deep);
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-loading-spinner {
    animation: none;
  }
}

@media (max-width: 767px) {
  .auth-top,
  .auth-panel {
    padding-inline: 16px;
  }

  .auth-panel {
    padding-top: 12px;
    padding-bottom: 28px;
    align-items: center;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .flight-anim {
    top: 56px;
    opacity: 0.45;
  }

  .flight-anim-svg {
    height: 64px;
  }

  .auth-overlay::after {
    inset-inline: 8%;
    bottom: 5%;
  }

  .demo-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flight-plane,
  .flight-curve,
  .auth-overlay::after {
    animation: none;
  }
}
