/* ============================================================
   Sign in / create account. Deliberately one narrow card on an
   empty page: there is exactly one thing to do here.
   ============================================================ */

.authBody {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
}

.authWrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.authCard {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.authBrand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}
.authName { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.authSub { font-size: 13px; color: var(--muted); }

.authTabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--line-soft);
  border-radius: 10px;
  margin-bottom: 20px;
}
.authTab {
  flex: 1;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.authTab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.authForm { display: flex; flex-direction: column; gap: 14px; }

.authField { display: flex; flex-direction: column; gap: 5px; }
.authField > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--label);
}
.authField input,
.authField select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--field);
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
}
.authField input:focus,
.authField select:focus {
  outline: 2px solid var(--accent-soft-line);
  outline-offset: 1px;
  border-color: var(--accent);
}
.authHint { font-size: 11.5px; color: var(--muted-2); }

.authSubmit { width: 100%; justify-content: center; margin-top: 4px; }

.authError {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  font-size: 13px;
}

.authFoot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* The signed-in chip in the app's top bar. */
.userChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--label);
}
.userChip .userYear { color: var(--muted-2); }
.userChip a,
.userChip button {
  padding: 4px 9px;
  border-radius: 999px;
  border: 0;
  background: var(--line-soft);
  color: var(--label);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.userChip a:hover,
.userChip button:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* On a phone the chip has to stay one line, and the year is already sitting
   in the picker directly above it. */
.userChip,
.userChip a,
.userChip button { white-space: nowrap; }

@media (max-width: 700px) {
  .userChip .userYear { display: none; }
  .userChip { padding-left: 9px; font-size: 12px; }
}
