/* Login page for the NearbyOne documentation portal. Brand blue (#2a3b87),
   quiet card on a soft ground, theme-aware. Utilitarian, not flashy. */
:root {
  --bg: #eef1f8;
  --card: #ffffff;
  --text: #1c2330;
  --muted: #5b6472;
  --primary: #2a3b87;
  --primary-hover: #34479f;
  --btn-text: #ffffff;
  --ring: rgba(42, 59, 135, 0.25);
  --border: #dfe3ec;
  --error-bg: #fdecec;
  --error-fg: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --card: #161c2b;
    --text: #e7ebf5;
    --muted: #9aa4b8;
    --primary: #9caef5;
    --primary-hover: #b3c1ff;
    --btn-text: #0f1420;
    --ring: rgba(156, 174, 245, 0.30);
    --border: #26304a;
    --error-bg: #3a1d1d;
    --error-fg: #ff9b93;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 50% -14%, rgba(42, 59, 135, 0.12), transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(1100px 520px at 50% -14%, rgba(156, 174, 245, 0.10), transparent 60%),
      var(--bg);
  }
}

.wrap {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px 24px;
  box-shadow: 0 14px 44px rgba(20, 28, 50, 0.13);
  display: flex;
  flex-direction: column;
}

.logo {
  width: 190px;
  max-width: 72%;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.sub {
  margin: 0.3rem 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.5rem 0 0.3rem;
}
input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

button {
  margin-top: 1.15rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--btn-text);
  background: var(--primary);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.04s ease;
}
button:hover { background: var(--primary-hover); }
button:active { transform: translateY(1px); }
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.error {
  background: var(--error-bg);
  color: var(--error-fg);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.foot {
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
