:root {
  --territorios-ink: #26232a;
  --territorios-muted: #77727c;
  --territorios-line: rgba(48, 42, 55, 0.13);
  --territorios-paper: #fbfaf7;
  --territorios-canvas: #efefec;
  --territorios-violet: #655772;
  --territorios-violet-dark: #4d4257;
}

.territory-landing,
.admin-access {
  background: var(--territorios-canvas);
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 36px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}

.territory-landing-shell {
  width: min(1120px, 100%);
  min-height: min(700px, calc(100dvh - 72px));
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  background: var(--territorios-paper);
  border: 1px solid var(--territorios-line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(38, 33, 43, 0.10);
}

.territory-landing-shell::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 17px;
  left: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d76b62;
  box-shadow: 16px 0 #d6a84f, 32px 0 #62a96b;
}

.territory-landing-copy {
  padding: clamp(72px, 8vw, 110px) clamp(42px, 7vw, 86px) 58px;
  align-content: center;
}

.territory-landing-symbol,
.admin-access-brand {
  width: 44px;
  height: 44px;
  margin: 0 0 46px;
  border-radius: 13px;
  background: var(--territorios-violet);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 8px 18px rgba(64,52,73,.16);
  transform: none;
}

.territory-landing-symbol::before,
.admin-access-brand::before {
  content: "T";
  color: #fff;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.06em;
}

.territory-landing-symbol i,
.admin-access-brand i {
  display: none !important;
}

.territory-landing-kicker,
.admin-access-copy > p {
  color: var(--territorios-violet) !important;
  letter-spacing: .15em;
  font-size: 10px !important;
  font-weight: 700;
}

.territory-landing-copy h1 {
  color: var(--territorios-ink);
  font-size: clamp(52px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 570;
}

.territory-landing-intro {
  max-width: 360px;
  margin: 28px 0 18px;
  color: #625e66;
  font-size: 15px;
  line-height: 1.65;
}

.territory-landing-copy small {
  max-width: 350px;
  padding-top: 18px;
  border-top: 1px solid var(--territorios-line);
  color: #908b92;
}

.territory-landing-copy a {
  margin-top: 38px;
  padding: 11px 0 8px;
  color: var(--territorios-ink);
  border-bottom-color: rgba(38,35,42,.38);
  font-size: 12px;
}

.territory-landing-map {
  min-height: 600px;
  border: 0;
  background: #dddcd8;
}

.territory-landing-map::before,
.territory-landing-map::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255,255,255,.47);
  border-radius: 47% 53% 55% 45% / 42% 46% 54% 58%;
  transform: rotate(-8deg);
}

.territory-landing-map::after {
  inset: 18%;
  border-color: rgba(255,255,255,.62);
  border-radius: 54% 46% 39% 61% / 47% 58% 42% 53%;
  transform: rotate(13deg);
}

.map-piece { opacity: .92; filter: saturate(.72); }
.map-piece-a, .map-piece-c, .map-piece-e { background: #f5f4f0 !important; }
.map-piece-b, .map-piece-d, .map-piece-f { background: var(--territorios-violet) !important; }
.territory-landing-qr { display: none; }

.admin-access { place-items: center; }
.admin-access-shell {
  width: min(430px, 100%);
  padding: 34px 38px 38px;
  background: var(--territorios-paper);
  border: 1px solid var(--territorios-line);
  border-radius: 20px;
  box-shadow: 0 22px 62px rgba(38,33,43,.11);
}

.admin-access-shell::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d76b62;
  box-shadow: 14px 0 #d6a84f, 28px 0 #62a96b;
}

.admin-access-shell::after { display: none; }
.admin-access-back { margin-top: 22px; color: var(--territorios-muted); font-weight: 600; }
.admin-access-brand { margin-top: 38px; margin-bottom: 30px; }
.admin-access-brand::after {
  content: "Territórios";
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  color: var(--territorios-ink);
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.025em;
}

.admin-access-copy h1 {
  color: var(--territorios-ink);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 600;
}

.admin-access-copy > span { color: var(--territorios-muted); margin-top: 12px; }
.admin-access-form { gap: 15px; margin-top: 28px; }
.admin-access-form input {
  height: 46px;
  border-radius: 9px;
  border-color: #d5d2d5;
  box-shadow: inset 0 1px 2px rgba(38,35,42,.025);
}

.admin-access-form input:focus {
  border-color: var(--territorios-violet);
  box-shadow: 0 0 0 3px rgba(101,87,114,.13);
}

.admin-access-form button { height: 46px; border-radius: 9px; background: var(--territorios-violet); }
.admin-access-form button:hover:not(:disabled) { background: var(--territorios-violet-dark); }
.admin-access-shell > small { margin-top: 20px; color: #99949b; }

@media (max-width: 760px) {
  .territory-landing { padding: 10px; }
  .territory-landing-shell {
    min-height: calc(100dvh - 20px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(240px, 36vh);
    border-radius: 18px;
  }
  .territory-landing-copy { padding: 74px 28px 38px; }
  .territory-landing-symbol { margin-bottom: 34px; }
  .territory-landing-copy h1 { font-size: clamp(46px, 15vw, 64px); }
  .territory-landing-map { min-height: 240px; border-top: 1px solid var(--territorios-line); }
  .admin-access { padding: 10px; }
  .admin-access-shell { padding: 30px 25px 32px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
