/* Sign-in and invitations share the same quiet, centered form treatment. */
.auth-body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  justify-content: normal;
  gap: 0;
  padding: 0;
  background: var(--surface-soft);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 2rem 2.5rem;
}

.auth-home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
  text-decoration: none;
}

.auth-home .wordmark {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.auth-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--text-strong);
}

.auth-header .theme-control { margin: 0; }

.auth-shell {
  width: min(540px, calc(100% - 3rem));
  margin: auto;
  padding: 2rem 0 4rem;
}

.auth-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 2.75rem 3rem 2.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
}

.auth-eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auth-card h1 {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: 1.6rem;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.auth-intro {
  margin: 0 0 2rem;
  text-align: left;
  font-size: 0.93rem;
  line-height: 1.6;
}

.auth-card label {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 450;
}

.auth-card input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 1.2rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font-size: 0.95rem;
  box-shadow: none;
}

.auth-card input:focus { border-color: var(--accent); }
.auth-card input::placeholder { color: var(--subtle); }
.auth-card .password-field input { padding-right: 4.25rem; }
.auth-card .password-field button { top: 0.55rem; font-weight: 450; }
.auth-card .auth-text-button { color: var(--accent-strong); font-size: 0.8rem; font-weight: 450; }
.auth-card .auth-text-button:hover { color: var(--accent-strong); }
.auth-card .field-help { margin-top: -0.25rem; line-height: 1.6; }
.auth-card .code-input { font-size: 1.3rem; letter-spacing: 0.4em; }

.auth-card .button {
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
}

.auth-card .button-primary { margin-top: 0.4rem; }
.auth-card .button-quiet { margin-top: 0.5rem; }
.auth-card .button-block { width: 100%; }

.auth-provider-label { margin: 0 0 0.8rem; color: var(--text-strong); font-size: 0.84rem; font-weight: 600; }
.microsoft-sign-in { margin-bottom: 1.7rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.auth-card .microsoft-button { display: flex; align-items: center; justify-content: center; gap: 0.75rem; border: 1px solid #8c8c8c; border-radius: 4px; background: #fff; color: #5e5e5e; font-weight: 600; }
.microsoft-button img { flex: none; width: 21px; height: 21px; }
.auth-card .microsoft-button:hover:not(:disabled) { background: #f4f4f4; border-color: #5e5e5e; }
.auth-card .microsoft-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.auth-card .microsoft-button:disabled { opacity: 0.6; cursor: wait; }
.microsoft-sign-in .field-help { margin: 0.65rem 0 0; }

.auth-footer {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.auth-footnote { text-align: left; color: var(--muted); font-size: 0.77rem; line-height: 1.65; }
.auth-partners { margin: 1.5rem 0 0; text-align: center; font-size: 0.76rem; line-height: 1.7; color: var(--muted); }
.auth-partners strong { color: var(--text); font-weight: 500; }
.auth-body .site-footer { padding: 1.25rem 1.5rem; color: var(--muted); font-size: 0.7rem; }

@media (max-width: 600px) {
  .auth-header { padding: 1.25rem; gap: 1rem; }
  .auth-home { gap: 0.55rem; }
  .auth-header .theme-control { gap: 0.4rem; font-size: 0.73rem; }
  .auth-header .theme-control select { max-width: 6rem; }
  .auth-shell { width: min(440px, calc(100% - 2rem)); padding: 1.5rem 0 2rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .auth-card h1 { font-size: 1.45rem; }
}
