/*
 * Yail.Identity - auth.css
 *
 * The sign-in pages that use _AuthLayout (sign-up, password reset, email confirmation, invitations,
 * organisation choice, consent, refusal): what they add to auth-base.css (linked before this, after
 * yail-tokens.css). They do not load yail-app-shell.css.
 */

.auth-shell {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 24px 96px; gap: 36px;
}

.auth-card {
  background: var(--yail-surface);
  border: 1px solid var(--yail-border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 38px 40px 32px;
  width: 100%;
  max-width: 480px;
}
.auth-card .header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; gap: 16px; }
.auth-card h1, .auth-card h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -.02em; color: var(--yail-text); line-height: 1.15; }
.auth-card h1 em, .auth-card h2 em { font-style: italic; font-weight: 400; color: var(--yail-text-strong); }
.auth-card .step { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yail-accent); font-weight: 600; white-space: nowrap; }
.auth-card .lede { margin: 0 0 22px; color: var(--yail-text-muted); font-size: 14.5px; line-height: 1.55; }
.auth-card p { margin: 0 0 14px; color: var(--yail-text-muted); font-size: 14.5px; line-height: 1.55; }
.auth-card p strong { color: var(--yail-text); font-weight: 600; }
.auth-card p:last-child { margin-bottom: 0; }
.auth-card a { color: var(--yail-text-strong); font-weight: 500; }
.auth-card a:hover { text-decoration: underline; }

/* A link drawn as a button keeps the button's look; .auth-card a would otherwise colour and underline it. */
.auth-card a.btn-block, .auth-card a.btn-block:hover { text-decoration: none; }
.auth-card a.btn-coffee { color: var(--yail-text-on-inverse); }

.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--yail-border); font-size: 12.5px; color: var(--yail-text-muted); display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.auth-foot .sep { color: var(--yail-text-faint); }

.auth-meta { display: flex; justify-content: center; gap: 18px; font-size: 11.5px; color: var(--yail-text-muted); letter-spacing: .04em; padding: 0 24px 24px; flex-wrap: wrap; }

.pill-result { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.pill-result .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { color: var(--yail-good); background: var(--yail-good-tint); }
.pill-warn { color: var(--yail-danger); background: var(--yail-danger-tint); }
.pill-info { color: var(--yail-accent); background: var(--yail-accent-tint); }

.org-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.org-row {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 14px 16px;
  background: var(--yail-fill-subtle);
  border: 1px solid var(--yail-border);
  border-radius: 12px;
  transition: border-color .15s, background .15s, transform .15s;
  font: inherit; color: var(--yail-text);
}
.org-row:hover { border-color: var(--yail-border-strong); background: var(--yail-surface); transform: translateY(-1px); }
.org-row .name { font-weight: 600; font-size: 15px; }
.org-row .slug { font-size: 12px; color: var(--yail-text-muted); letter-spacing: .04em; grid-column: 1; }
.org-row .roles { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--yail-accent); font-weight: 600; align-self: center; grid-row: 1 / span 2; }
/* .org-row's look for a row that isn't a button (the refusal page lists organisations; only a link in one acts). */
.org-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px;
  background: var(--yail-fill-subtle);
  border: 1px solid var(--yail-border);
  border-radius: 12px;
  color: var(--yail-text);
}
.org-item .name { font-weight: 600; font-size: 15px; }
.org-item a { color: var(--yail-text-strong); font-weight: 500; font-size: 13px; text-decoration: underline; }
