/**
 * Automatic version:
 * Light theme by default, dark theme via prefers-color-scheme
 */

/* === Universal reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --background-body: #fff;
  --background: #efefef;
  --background-alt: #f7f7f7;
  --text-main: #363636;
  --text-muted: #70777f;
  --links: #0076d1;
  --border: #dbdbdb;
  --focus: #0096bfab;

  /* Brand */
  --brand-blue: #1e71ff;
  --brand-green: #20b66a;
  --brand-blue-shadow: 0 8px 18px rgba(30,113,255,.22);
  --brand-green-shadow: 0 8px 18px rgba(32,182,106,.24);
}

/* === Dark mode === */
@media (prefers-color-scheme: dark) {
  :root {
    --background-body: #202b38;
    --background: #161f27;
    --background-alt: #1a242f;
    --text-main: #dbdbdb;
    --text-muted: #a9b1ba;
    --links: #41adff;
    --border: #526980;
    --brand-blue-shadow: 0 8px 18px rgba(30,113,255,.15);
    --brand-green-shadow: 0 8px 18px rgba(32,182,106,.18);
  }
}

/* === Body === */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   NAV BAR (ALREADY BUTTON-BASED, ROUNDED)
   ============================================================ */

.site-nav {
  width: 100%;
  background: var(--background-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.site-nav__brand {
  display: flex;
  align-items: center;
}

.logo--nav {
  width: 80px;
  height: auto;
}

.site-nav__links {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

/* Nav links ARE pill buttons */
.site-nav__links a {
  text-decoration: none;
}

/* ============================================================
   HERO / SPLASH
   ============================================================ */

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand {
  margin: 0;
  font-size: clamp(20px, 5vw, 28px);
}

.tag {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.chooser {
  margin: 24px auto;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
}

.auth-form {
  display: grid;
  gap: 10px;
  background: var(--background-body);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.auth-form p {
  margin: 4px 0;
  line-height: 1.4;
}

/* ============================================================
   BUTTONS (ALL ROUNDED, NO SHARP EDGES)
   ============================================================ */

.pill-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  color: #fff !important;
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}

.pill-btn:active {
  transform: translateY(1px);
}

.pill-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.owner {
  background: var(--brand-blue);
  box-shadow: var(--brand-blue-shadow);
}

.sitter {
  background: var(--brand-green);
  box-shadow: var(--brand-green-shadow);
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  margin-top: auto;
  text-align: center;
  padding: 12px;
  color: var(--text-muted);
}

/* ============================================================
   MOBILE TWEAKS
   ============================================================ */

@media (max-width: 600px) {
  .logo--nav {
    width: 60px;
  }

  .site-nav__links {
    gap: 10px;
  }

  .pill-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}
