:root {
  --auth-bg: #0b0f14;
  --auth-surface: rgba(16, 22, 30, 0.92);
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-text: #e8eef7;
  --auth-muted: #8fa0b6;
  --auth-accent: #38bdf8;
  --auth-accent-strong: #0ea5e9;
  --auth-map-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cg fill='%230f172a'%3E%3Cpath d='M70 210l70-55 90-25 110 20 60 60-10 70-100 50-90 0-70-45-60-75z'/%3E%3Cpath d='M250 330l70 20 40 60-10 80-40 60-50 30-40-40-20-70 10-70z'/%3E%3Cpath d='M410 180l70-30 80-5 60 30-20 50-70 20-50-10-40-35z'/%3E%3Cpath d='M450 240l80 10 60 60-10 90-50 70-70 30-70-50-10-80 20-80z'/%3E%3Cpath d='M600 170l130-40 140 10 100 60-20 70-100 40-120 10-90-40-70-60z'/%3E%3Cpath d='M760 260l90 20 60 50-20 70-80 20-70-20-40-50 10-70z'/%3E%3Cpath d='M860 360l80 10 70 50-10 70-80 40-90-30-20-70 50-70z'/%3E%3Cpath d='M1000 480l90 20 50 40-20 40-100 10-80-30 60-80z'/%3E%3Cpath d='M210 520l200-10 180 10 200-10 200 10 200-10 0 70H210z'/%3E%3C/g%3E%3C/svg%3E");
}

html,
body {
  height: 100%;
}

body.auth-body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
}

.auth-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #050910 0%, #0a111b 45%, #050810 100%);
  z-index: 0;
}

.auth-maplibre {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.82;
}

.auth-maplibre::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 9, 16, 0.48) 0%, rgba(5, 11, 18, 0.24) 34%, rgba(4, 9, 16, 0.54) 100%),
    linear-gradient(120deg, rgba(8, 38, 62, 0.2), rgba(2, 10, 18, 0.08) 45%, rgba(6, 22, 36, 0.26));
  z-index: 1;
}

.auth-maplibre::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--daylight-x, 60%) 40%, rgba(110, 200, 255, 0.18) 0%, rgba(30, 90, 140, 0.12) 25%, rgba(8, 16, 24, 0) 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.auth-map {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 60% 35%, rgba(25, 211, 255, 0.12), transparent 40%),
                    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5) 70%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.18;
}

.auth-maplibre .maplibregl-canvas {
  filter: saturate(0.78) contrast(0.92) brightness(0.72) sepia(0.08);
}

.auth-maplibre .leaflet-tile-pane {
  filter: saturate(0.76) contrast(0.9) brightness(0.68) sepia(0.08);
}

.flight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.auth-flight-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
}

body.auth-map-unlocked .auth-flight-layer {
  pointer-events: none;
}

.auth-flight-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  color: rgba(110, 228, 255, 0.98);
  font-size: 16px;
  pointer-events: auto;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  will-change: transform, opacity;
}

.auth-flight-icon-fallback {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  font-style: normal;
  pointer-events: none;
  overflow: hidden;
}

.auth-flight-icon-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(15, 23, 42, 0.65)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.25));
}

.auth-flight-icon-fallback img {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  margin: -4px;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  clip-path: inset(4px);
  filter: none;
}

.auth-flight-marker.is-muted {
  opacity: 0.3;
  filter: none;
}

.auth-flight-marker.is-active {
  opacity: 1;
  filter: none;
}

.auth-flight-marker.auth-flight-raster {
  color: transparent;
}

.auth-flight-marker.auth-flight-heli {
  color: rgba(125, 211, 252, 0.9);
}

.auth-flight-marker.auth-flight-heavy {
  color: rgba(96, 165, 250, 0.94);
}

.auth-flight-marker.auth-flight-biz {
  color: rgba(167, 205, 255, 0.95);
}

.auth-flight-marker.auth-flight-jet {
  color: rgba(59, 130, 246, 0.95);
}

.auth-flight-marker.auth-flight-prop {
  color: rgba(148, 212, 255, 0.92);
}

.auth-flight-tooltip {
  position: absolute;
  padding: 6px 10px;
  background: rgba(5, 10, 18, 0.85);
  border: 1px solid rgba(25, 211, 255, 0.3);
  border-radius: 6px;
  color: #e8eef7;
  font-size: 12px;
  white-space: pre-line;
  line-height: 1.35;
  max-width: 240px;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.auth-airport-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  pointer-events: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 10, 16, 0.7);
  color: rgba(232, 238, 247, 0.85);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-airport-marker.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

.auth-airport-marker:not(.is-hidden) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.auth-airport-marker.auth-airport-origin {
  border-color: rgba(56, 189, 248, 0.6);
  color: rgba(56, 189, 248, 0.95);
}

.auth-airport-marker.auth-airport-destination {
  border-color: rgba(248, 113, 113, 0.6);
  color: rgba(248, 113, 113, 0.95);
}

.flight-icon {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  font-size: var(--size, 14px);
  color: rgba(56, 189, 248, 0.85);
  animation: drift var(--d) linear infinite;
  animation-delay: var(--delay);
  transform: rotate(var(--rot));
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate3d(-30px, 10px, 0) rotate(var(--rot));
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(160px, -20px, 0) rotate(var(--rot));
  }
}

.auth-shell {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 148px 20px 32px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 64px);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  padding: 36px 36px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  pointer-events: auto;
}

.auth-card-signup {
  background:
    linear-gradient(180deg, rgba(17, 24, 34, 0.96), rgba(11, 16, 24, 0.95)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 38%);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--auth-text);
}

.auth-title {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 600;
}

.auth-subtitle {
  margin-top: 6px;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-patch-hero {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 4;
  pointer-events: none;
}

.auth-patch-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 88% 16%, rgba(250, 204, 21, 0.2), transparent 24%),
    radial-gradient(circle at 10% 100%, rgba(249, 115, 22, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(21, 29, 40, 0.96), rgba(11, 17, 25, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 58px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.auth-patch-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.auth-patch-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 79, 0.28);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.18), rgba(249, 115, 22, 0.12));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 230, 186, 0.86);
}

.auth-patch-badge i {
  font-size: 13px;
  color: rgba(255, 216, 122, 0.96);
}

.auth-patch-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.auth-patch-title {
  position: relative;
  z-index: 1;
  margin-top: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff7e9;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.auth-patch-note {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(223, 230, 241, 0.76);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-patch-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: rgba(245, 248, 252, 0.9);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.auth-form {
  margin-top: 24px;
}

.auth-status.ui-messages {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-status.ui-messages > div {
  position: relative;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 14px 44px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(12, 20, 29, 0.92), rgba(9, 16, 24, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 42%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  list-style: none;
  overflow: hidden;
}

.auth-status.ui-messages > div:last-child {
  margin-bottom: 0;
}

.auth-status.ui-messages > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: rgba(148, 163, 184, 0.7);
}

.auth-status.ui-messages > .ui-messages-info {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(180deg, rgba(9, 22, 32, 0.97), rgba(7, 17, 26, 0.98)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 38%);
}

.auth-status.ui-messages > .ui-messages-info::before {
  background: linear-gradient(180deg, #67e8f9, #38bdf8);
}

.auth-status.ui-messages > .ui-messages-warn {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    linear-gradient(180deg, rgba(30, 24, 10, 0.97), rgba(24, 18, 7, 0.98)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 38%);
}

.auth-status.ui-messages > .ui-messages-warn::before {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

.auth-status.ui-messages > .ui-messages-error,
.auth-status.ui-messages > .ui-messages-fatal {
  border-color: rgba(248, 113, 113, 0.24);
  background:
    linear-gradient(180deg, rgba(32, 13, 16, 0.97), rgba(24, 9, 12, 0.98)),
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.14), transparent 38%);
}

.auth-status.ui-messages > .ui-messages-error::before,
.auth-status.ui-messages > .ui-messages-fatal::before {
  background: linear-gradient(180deg, #fda4af, #ef4444);
}

.auth-status.ui-messages ul {
  margin: 0;
  padding: 0 !important;
  list-style: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0;
  grid-column: 2;
}

.auth-status.ui-messages li {
  margin: 0;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}

.auth-status.ui-messages li + li {
  margin-top: 8px;
}

.auth-status .ui-messages-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding-top: 2px;
  color: rgba(230, 244, 255, 0.92);
  font-size: 17px;
  line-height: 1;
  grid-column: 1;
}

.auth-status .ui-messages-info-icon {
  color: #67e8f9;
}

.auth-status .ui-messages-warn-icon {
  color: #fcd34d;
}

.auth-status .ui-messages-error-icon,
.auth-status .ui-messages-fatal-icon {
  color: #fda4af;
}

.auth-status .ui-messages-summary {
  display: block;
  margin: 0;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  color: #f8fbff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-status .ui-messages-detail {
  display: block;
  margin-top: 6px;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  color: rgba(191, 207, 222, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-status .ui-messages-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.88);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  z-index: 1;
}

.auth-status .ui-messages-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.auth-status .ui-messages-close .ui-icon-close {
  margin: 0;
}

.auth-status.ui-messages > div > ul,
.auth-status.ui-messages > div > ul > li,
.auth-status.ui-messages > div > ul > li > span {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
}

.auth-form .ui-outputlabel,
.auth-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-captcha-label {
  margin-bottom: 8px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-form .ui-inputfield,
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 12px;
  background: rgba(10, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--auth-text);
  box-sizing: border-box;
}

.auth-form .ui-inputfield:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.auth-row {
  margin-bottom: 18px;
}

.auth-row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-row-inline .ui-outputlabel,
.auth-row-inline label {
  margin: 0;
  font-size: 13px;
  color: var(--auth-muted);
}

.auth-row-inline .ui-chkbox {
  margin-top: 2px;
}

.auth-session-choice {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(9, 15, 22, 0.7);
}

.auth-session-choice .ui-chkbox {
  margin-top: 0;
}

.auth-session-choice .ui-chkbox-box {
  background: rgba(10, 18, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-session-choice .ui-chkbox-box.ui-state-active {
  border-color: var(--auth-accent);
  background: var(--auth-accent);
}

.auth-session-choice .ui-outputlabel,
.auth-session-choice label {
  margin: 0;
  color: var(--auth-text);
  font-size: 13px;
  font-weight: 600;
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.auth-actions .ui-button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 25, 36, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.auth-actions .ui-button .ui-button-text {
  color: var(--auth-text);
  font-weight: 600;
}

.auth-actions .ui-button:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(25, 36, 50, 0.95);
}

.auth-actions .primary {
  background: var(--auth-accent) !important;
  border: none !important;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.35);
}

.auth-actions .primary:hover {
  background: var(--auth-accent-strong) !important;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-links .ui-button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.auth-links .ui-button .ui-button-text {
  padding: 0 !important;
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-links .ui-button:hover .ui-button-text {
  color: var(--auth-accent);
}

.auth-help-cta {
  margin-top: 20px;
}

.auth-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(88, 101, 242, 0.42);
  background:
    linear-gradient(180deg, rgba(95, 111, 255, 0.24), rgba(67, 81, 201, 0.24)),
    rgba(14, 20, 32, 0.96);
  box-shadow: 0 14px 30px rgba(48, 65, 156, 0.22);
  color: #eef2ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-help-button:hover {
  border-color: rgba(129, 140, 248, 0.62);
  background:
    linear-gradient(180deg, rgba(111, 127, 255, 0.3), rgba(78, 92, 220, 0.28)),
    rgba(16, 22, 36, 0.98);
  box-shadow: 0 16px 34px rgba(54, 72, 170, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-help-button i {
  font-size: 16px;
}

.auth-footer {
  margin-top: 22px;
  font-size: 12px;
  color: var(--auth-muted);
  text-align: center;
}

.auth-legal {
  position: fixed;
  bottom: 18px;
  left: 22px;
  display: flex;
  gap: 12px;
  font-size: 12px;
  z-index: 3;
  pointer-events: auto;
}

.auth-legal a {
  color: rgba(232, 238, 247, 0.65);
  text-decoration: none;
}

.auth-legal a:hover {
  color: var(--auth-accent);
}

.auth-utc-clock {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 4;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(232, 238, 247, 0.6);
  background: rgba(6, 10, 16, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  pointer-events: none;
}

.auth-map-toggle {
  position: fixed;
  left: 18px;
  bottom: 56px;
  z-index: 4;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: rgba(232, 238, 247, 0.75);
  background: rgba(6, 10, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-map-toggle:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: rgba(232, 238, 247, 0.95);
}

.auth-map-toggle.is-active {
  border-color: rgba(56, 189, 248, 0.6);
  color: rgba(56, 189, 248, 0.9);
}

.maplibregl-ctrl-attrib {
  background: rgba(5, 9, 16, 0.5) !important;
  color: rgba(232, 238, 247, 0.7) !important;
  font-size: 11px;
  border-radius: 6px;
  margin: 0 12px 12px 0 !important;
}

.maplibregl-ctrl-attrib a {
  color: rgba(232, 238, 247, 0.8) !important;
  text-decoration: none;
}

.maplibregl-ctrl-attrib a:hover {
  color: var(--auth-accent) !important;
}

@media (max-width: 720px) {
  .auth-globe {
    width: 150vmin;
    height: 150vmin;
  }

  .auth-patch-hero {
    top: 52px;
    left: 16px;
    right: 16px;
  }

  .auth-patch-hero-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 18px;
  }

  .auth-patch-mark {
    min-width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 18px;
  }

  .auth-legal {
    left: 16px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 22px 22px;
  }

  .auth-brand {
    font-size: 18px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-patch-hero-inner {
    padding: 14px 16px 15px;
  }

  .auth-patch-title {
    font-size: 26px;
  }

  .auth-patch-note {
    font-size: 12px;
  }
}

@media (max-height: 720px) {
  .auth-shell {
    padding: 124px 16px 24px;
  }

  .auth-card {
    padding: 26px 22px 20px;
  }

  .auth-status.ui-messages > div {
    padding: 14px 44px 14px 48px;
  }

  .auth-status .ui-messages-icon {
    top: 16px;
    left: 15px;
  }

  .auth-status .ui-messages-close {
    top: 10px;
    right: 10px;
  }

  .auth-row {
    margin-bottom: 14px;
  }

  .auth-title {
    margin-top: 14px;
  }
}
