/* Login + shared auth chrome — "Chalk & Turf" aesthetic (see style.css tokens). */

body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--rail);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  z-index: 2;
}

.auth-brand { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.auth-brand h1 {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: .04em; line-height: .9; color: var(--chalk);
}
.auth-brand h1 span { color: var(--amber); }

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: .08em; color: var(--chalk);
  margin-bottom: 18px;
}

.auth-field { display: block; margin-bottom: 14px; }
.auth-field span {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .14em; color: var(--chalk-dim);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  color: var(--chalk);
  background: var(--board-2);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.auth-field input:focus { outline: none; border-color: var(--amber); }

#auth-submit { margin-top: 8px; }

#auth-msg { margin-top: 12px; font-size: 13px; min-height: 18px; color: var(--chalk-dim); }
#auth-msg.err { color: var(--red); }
#auth-msg.ok { color: var(--turf); }

.auth-switch { margin-top: 18px; font-size: 13px; color: var(--chalk-dim); text-align: center; }
.link-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--amber); font-family: var(--font-body); font-size: 13px; text-decoration: underline;
}
#auth-unconfigured {
  margin-top: 18px; font-size: 12px; color: var(--chalk-dim);
  border-top: 1px dashed var(--line); padding-top: 14px;
}
#auth-unconfigured code { color: var(--amber); }

/* ---- account chip reused in the desktop top bar ---- */
.account-area { display: flex; align-items: center; gap: 8px; }
.account-email { font-size: 12px; color: var(--chalk-dim); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
