:root {
  --bg-1: #061124;
  --bg-2: #0d2446;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(7, 18, 39, 0.86);
  --ink: #e9f2ff;
  --muted: #9fb8d9;
  --accent: #63b5ff;
  --accent-2: #00d6c7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 14%, rgba(99, 181, 255, 0.28), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(0, 214, 199, 0.2), transparent 24%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.8rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.36);
}

.hero {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(99, 181, 255, 0.11) 0 8px, transparent 8px 16px),
    linear-gradient(120deg, rgba(0, 214, 199, 0.09), transparent 55%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
}

h1 {
  margin: 0.35rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.lead {
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 46ch;
}

.badges {
  margin-top: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

.login {
  padding: 1rem;
}

.login h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.login p {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
}

input {
  width: 100%;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 20, 40, 0.9);
  color: var(--ink);
  padding: 0.64rem 0.72rem;
  font: inherit;
}

button {
  width: 100%;
  border: 1px solid rgba(0, 214, 199, 0.44);
  border-radius: 12px;
  padding: 0.62rem 0.8rem;
  background: linear-gradient(140deg, rgba(99, 181, 255, 0.9), rgba(0, 214, 199, 0.85));
  color: #06203e;
  font: 700 0.95rem "Sora", sans-serif;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.07);
}

.error {
  min-height: 1.1rem;
  margin: 0.5rem 0 0;
  color: #ffb3b3;
  font-size: 0.8rem;
}

.helper {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.signup-link {
  display: inline-block;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
}

.signup-link:hover {
  background: rgba(99, 181, 255, 0.18);
}

.login-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.95rem 0;
}

.login h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.map-portal {
  grid-column: 1 / -1;
  padding: 0.9rem;
}

.map-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.map-head p {
  margin: 0.35rem 0 0.65rem;
  color: var(--muted);
}

.portal-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.7rem;
}

.usa-map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 20, 40, 0.84);
  min-height: 320px;
  overflow: hidden;
}

.usa-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(4, 12, 30, 0.28), rgba(8, 24, 48, 0.35));
}

.location-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 20, 40, 0.84);
  padding: 0.55rem;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.location-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem;
  cursor: pointer;
}

.location-item.active,
.location-item:hover {
  border-color: rgba(99, 181, 255, 0.6);
  background: rgba(99, 181, 255, 0.15);
}

.location-item h3 {
  margin: 0;
  font-size: 0.82rem;
}

.location-item p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.selection-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.selection-row {
  margin-top: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.map-open {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  white-space: nowrap;
}

.map-open:hover {
  background: rgba(99, 181, 255, 0.18);
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .selection-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
