/* Auth pages (signup + login) and the header auth chip. */

.auth-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
}
.auth-chip__email {
  color: var(--ink-muted, #6b7280);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-chip__form { margin: 0; }
.auth-chip__btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink, #0a5c4a);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.auth-chip__btn--ghost {
  background: transparent;
  color: var(--ink-muted, #6b7280);
  border: 1px solid var(--rule, #e5e7eb);
}
.auth-chip__btn--ghost:hover { color: var(--ink, #0a5c4a); }

.auth-card {
  background: #fff;
  border: 1px solid var(--rule, #e5e7eb);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.auth-card .kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #0a5c4a);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.auth-card .kicker .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent, #0a5c4a);
  display: inline-block;
}

.auth-card h1 {
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 400;
}
.auth-card h1 em {
  font-style: italic;
  color: var(--accent, #0a5c4a);
}

.auth-card .lede {
  margin: 0 0 24px;
  color: var(--ink-muted, #4b5563);
  line-height: 1.5;
}

.auth-banner {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-banner--err { background: #fdecec; color: #8a1f1f; }

.auth-form { margin: 0 0 20px; }
.auth-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0a5c4a);
  margin-bottom: 6px;
}
.auth-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--rule, #d1d5db);
  background: #fbfaf6;
  font: inherit;
  font-size: 16px;
  outline: 0;
  box-sizing: border-box;
}
.auth-form input[type="email"]:focus {
  border-color: var(--accent, #0a5c4a);
  background: #fff;
}
.auth-form__submit {
  margin-top: 12px;
  width: 100%;
  padding: 12px 16px;
  background: var(--accent, #0a5c4a);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.auth-form__submit:disabled { opacity: 0.6; cursor: progress; }

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted, #9ca3af);
  margin: 16px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--rule, #e5e7eb);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { background: #fff; padding: 0 10px; position: relative; }

.auth-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--rule, #d1d5db);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink, #1f2937);
}
.auth-google:hover { background: #f9fafb; }
.auth-google:disabled { opacity: 0.6; cursor: progress; }

.auth-already {
  text-align: center;
  font-size: 14px;
  margin: 20px 0 0;
  color: var(--ink-muted, #6b7280);
}
.auth-already a { color: var(--accent, #0a5c4a); font-weight: 600; }

.auth-sent {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.auth-sent h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-weight: 400;
}
.auth-sent p { margin: 0; color: #065f46; line-height: 1.5; }

.auth-err {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #8a1f1f;
  font-size: 14px;
}
