
/* UI_SCALE_80: Joey — 100% zoom ≈ prior 80% Chrome zoom */
html {
  font-size: 80%;
}
/* State Data Hub — shared visual polish (free product; no paid-plan chrome) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --cyan: #06bcc1;
  --cyan-dark: #0d9eab;
  --bg: #0a0e1a;
  --card: #1a1d29;
  --card2: #141720;
  --text: #e9ecef;
  --muted: #adb5bd;
  --danger: #dc3545;
  --success: #198754;
  --warn: #ff9800;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--bg);
}
.pw-mismatch { color: #ff9b8a; } /* #1090: the live mismatch hint */
.pw-mismatch:empty { display: none; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: .95rem;
  display: inline-flex; align-items: center; min-height: 44px; } /* #1090: 44 px tap height */
.nav a:hover { color: var(--cyan); }
/* #1102: the shared phone header (menu button), the footer and 44 px targets on the account pages */
.nav { flex-wrap: wrap; gap: .5rem 1rem; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
  padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; }
  .nav-links.is-open { display: flex; }
  .nav-links a { margin-left: 0; }
}
.hub-footer { padding: 1.25rem; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.1); }
.hub-footer a { color: var(--cyan); text-decoration: none; margin: 0 .5rem; display: inline-flex; align-items: center; min-height: 44px; }
.hub-footer p { margin: .35rem 0 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
.card input[type="email"], .card input[type="password"], .card input[type="text"] { min-height: 44px; }
.brand {
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: 0 !important;
  font-size: 1.15rem;
}
.brand img, .brand svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  margin: 0;
  padding: 2rem 1rem;
  width: 100%;
}
.wrap > .card { width: 100%; max-width: 520px; }

.card {
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
  border: 1px solid rgba(6,188,193,.22);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.brand-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.brand-header img, .brand-header svg {
  width: 48px;
  height: 48px;
  margin: 0 auto .75rem;
  display: block;
}
.brand-header h1, h1 {
  margin: 0 0 .35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p.lead {
  color: var(--muted);
  margin: 0 0 1.35rem;
  font-size: .95rem;
  line-height: 1.45;
}

label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin: .85rem 0 .4rem;
  color: var(--text);
  text-align: center;
}

input, select {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus {
  outline: none;
  background: rgba(255,255,255,.08);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,188,193,.15);
  color: #fff;
}
input::placeholder { color: rgba(255,255,255,.3); }

.pw-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.pw-group input {
  border-radius: 10px 0 0 10px;
  border-right: none;
  flex: 1;
  min-width: 0;
}
.pw-group .btn-toggle-password {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-left: none;
  color: var(--muted);
  border-radius: 0 10px 10px 0;
  padding: 0 1rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pw-group .btn-toggle-password:hover { color: var(--cyan); }
.pw-group input:focus + .btn-toggle-password { border-color: var(--cyan); }

.strength-meter { margin-top: .55rem; text-align: left; }
.strength-bar-bg {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .25s, background .25s;
  background: transparent;
}
.strength-bar-fill.weak { width: 25%; background: var(--danger); }
.strength-bar-fill.fair { width: 50%; background: var(--warn); }
.strength-bar-fill.strong { width: 75%; background: var(--success); }
.strength-bar-fill.very-strong { width: 100%; background: var(--cyan); }
.strength-label {
  font-size: .75rem;
  margin-top: .3rem;
  color: var(--muted);
  min-height: 1em;
}
.strength-label.weak { color: var(--danger); }
.strength-label.fair { color: var(--warn); }
.strength-label.strong { color: var(--success); }
.strength-label.very-strong { color: var(--cyan); }
.pw-hint {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .35rem;
  text-align: left;
}

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 1.1rem;
  padding: .9rem 1rem;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #000;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(6,188,193,.35);
  color: #000;
}
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(6,188,193,.4);
  color: var(--cyan);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(6,188,193,.08);
  color: var(--cyan);
  box-shadow: none;
}

.msg { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.msg.err { color: var(--danger); }
.msg.ok { color: #7dcea0; }

.links {
  text-align: center;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: .9rem;
}
.links a { color: var(--cyan); text-decoration: none; }
.links a:hover { text-decoration: underline; }

.turnstile-slot { margin-top: 1rem; min-height: 0; }
.hidden { display: none !important; }

/* SDH_CENTER */
.card { text-align: center; }
.card label { display: block; text-align: center; }
.card input, .card select { text-align: center; }
.turnstile-slot { display: flex; justify-content: center; }
.pw-group input { text-align: center; }
/* /SDH_CENTER */

@media (max-width: 576px) {
  .card { padding: 1.75rem 1.25rem; border-radius: 16px; }
  h1, .brand-header h1 { font-size: 1.25rem; }
}
