/* Email-link sign-in block for the login page (auth tier 1).
 *
 * Shipped UPSTREAM and installed into every client, like the admin kit: a client's login.html
 * carries one empty container and this stylesheet, never a forked copy of the block.
 *
 * Patterns copied from ui-foundry — field.recessed (the default field: inset shadow, highest
 * affordance) and status.icon-led ("no container at all, lowest noise — use inside dense forms
 * where boxes would fight the layout"). Copied by hand into this file, in the host's own
 * tokens; nothing here links, imports or fetches :38420, and no foundry theme is used.
 *
 * Every colour reads a login-page token with a neutral fallback, so the block inherits the
 * client's palette where one exists and still looks deliberate where it does not.
 */

.email-link {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule, rgba(20, 16, 12, .12));
}

.email-link[hidden] { display: none; }

.email-link__kicker {
  margin: 0 0 10px;
  color: var(--ink-faint, #6d6259);
  font-size: var(--t-micro, .6875rem);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.email-link__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-link__label {
  flex: 1 1 100%;
  margin: 0 0 2px;
  color: var(--ink-soft, #6d6259);
  font-size: var(--t-xs, .75rem);
}

.email-link__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--rule-strong, rgba(20, 16, 12, .22));
  border-radius: var(--r-sm, 6px);
  background: var(--paper, #fff);
  box-shadow: inset 0 1px 2px rgba(20, 16, 12, .08);
  color: var(--ink, #1d1815);
  font: inherit;
  font-size: var(--t-sm, .8125rem);
}

.email-link__input:focus-visible {
  outline: 2px solid var(--accent, #0f766e);
  outline-offset: 1px;
  border-color: var(--accent, #0f766e);
}

.email-link__submit {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--accent, #0f766e);
  border-radius: var(--r-sm, 6px);
  background: var(--accent, #0f766e);
  color: #fff;
  font: inherit;
  font-size: var(--t-sm, .8125rem);
  font-weight: 600;
  cursor: pointer;
}

.email-link__submit:hover:not(:disabled) { background: var(--accent-deep, #115e59); }
.email-link__submit:disabled { opacity: .55; cursor: default; }

/* status.icon-led — a leading dot and a line of text, no box. */
.email-link__status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--ink-soft, #6d6259);
  font-size: var(--t-xs, .75rem);
  line-height: 1.5;
}

.email-link__status[hidden] { display: none; }

.email-link__status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: .38em;
  border-radius: 50%;
  background: var(--ink-faint, #756a62);
}

.email-link__status.is-sent::before { background: var(--accent, #0f766e); }
.email-link__status.is-error::before { background: var(--alert, #a8482c); }
.email-link__status.is-error { color: var(--alert, #a8482c); }

@media (prefers-reduced-motion: no-preference) {
  .email-link__status { transition: color .15s ease; }
}
