/* Valley Central Maps account/sync UI — layered on top of the map app dark theme. */

#vcm-auth {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(47, 125, 255, 0.25), transparent 60%),
    #0d1117;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#vcm-auth[hidden] { display: none; }

.vcm-auth-card {
  width: min(420px, 100%);
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.vcm-auth-brand {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #58a6ff;
  border: 1px solid #2f7dff;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.vcm-auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.vcm-auth-sub {
  margin: 0 0 18px;
  color: #8b949e;
  font-size: 13px;
  line-height: 1.45;
}

.vcm-tabs {
  display: flex;
  gap: 4px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 16px;
}

.vcm-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.vcm-tab.active { background: #21262d; color: #e8e8e8; }

.vcm-form { display: flex; flex-direction: column; gap: 12px; }
.vcm-form[hidden] { display: none; }
.vcm-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #c9d1d9;
}

.vcm-form input {
  width: 100%;
  box-sizing: border-box;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
}

.vcm-form input:focus { border-color: #2f7dff; box-shadow: 0 0 0 3px rgba(47, 125, 255, 0.18); }

.vcm-optional { font-weight: 400; color: #8b949e; }

.vcm-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #2f7dff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
}

.vcm-submit:hover { background: #1f6bef; }
.vcm-submit:disabled { opacity: 0.6; cursor: default; }

.vcm-error {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.5);
  color: #ff7b72;
  border-radius: 8px;
  font-size: 12.5px;
  padding: 8px 10px;
}

.vcm-auth-foot {
  margin: 16px 0 0;
  color: #6e7681;
  font-size: 11.5px;
  line-height: 1.4;
}

/* Sync status chip */
#vcm-sync {
  position: fixed;
  left: 10px;
  bottom: 68px;
  z-index: 1150;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  padding: 4px 9px;
  color: #9aa4b2;
  font-size: 11px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 45%);
  pointer-events: none;
}

#vcm-sync[hidden] { display: none; }
#vcm-sync.saving { color: #d6b25e; }
#vcm-sync.error { color: #ff7b72; border-color: #7a2f2f; }

/* Account dialog bits reuse the app's #modal, but give the rows breathing room. */
.vcm-account-row { margin: 10px 0; font-size: 13px; line-height: 1.5; }
.vcm-account-row strong { color: #58a6ff; }

body.light-theme #vcm-sync { background: #ffffff; border-color: #c3cdd9; color: #5b6b7c; }
body.light-theme #vcm-sync.saving { color: #8a6410; }
body.light-theme #vcm-sync.error { color: #b3261e; border-color: #e0b4b0; }


/* Territory style controls (feature popup + Style dialog) */
.popup input[type=range] { width: 100%; margin-top: 4px; accent-color: #2f7dff; }
.popup-opacity-val { float: right; opacity: .8; font-variant-numeric: tabular-nums; }
.modal-field { display: block; margin: 12px 0; font-size: 13px; }
.modal-field input[type=color] { margin-left: 8px; vertical-align: middle; }
.modal-field input[type=range] { display: block; width: 100%; margin-top: 8px; accent-color: #2f7dff; }

/* Overlapping-shape picker */
.shape-pick { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.shape-pick button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.shape-swatch { width: 14px; height: 14px; border-radius: 3px; border: 2px solid #000; flex: none; }
