.sf-auth {
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem 3.5rem;
}
.sf-auth__card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--sl-shadow);
}
.sf-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: var(--sl-sky);
  padding: 0.3rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.sf-auth__tab {
  text-align: center;
  text-decoration: none;
  color: var(--sl-muted);
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 999px;
}
.sf-auth__tab.is-active {
  background: #fff;
  color: var(--sl-ink);
  box-shadow: 0 2px 8px rgba(18, 22, 26, 0.08);
}
.sf-auth__title {
  font-family: var(--sl-display);
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}
.sf-auth__lede { color: var(--sl-muted); margin: 0 0 1.1rem; }
.sf-auth__form { display: grid; gap: 0.85rem; }
.sf-auth__field { display: grid; gap: 0.3rem; }
.sf-auth__field label { font-weight: 600; font-size: 0.9rem; }
.sf-auth__field input {
  border: 1px solid var(--sl-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.sf-auth__password-wrap { position: relative; }
.sf-auth__password-wrap input { width: 100%; padding-right: 2.6rem; }
.sf-auth__password-toggle {
  position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; color: var(--sl-muted);
  width: 34px; height: 34px; display: grid; place-items: center;
}
.sf-auth__password-toggle svg { width: 18px; height: 18px; }
.sf-auth__eye-off { display: none; }
.sf-auth__password-toggle[aria-pressed="true"] .sf-auth__eye-on { display: none; }
.sf-auth__password-toggle[aria-pressed="true"] .sf-auth__eye-off { display: block; }
.sf-auth__alert:empty { display: none; }
.sf-auth__alert {
  background: #fdecea;
  color: var(--sl-danger);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}
.sf-auth__actions { margin-top: 0.25rem; }
.sf-auth__actions .sf-btn { width: 100%; }
.sf-auth__links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Profile forms share auth field styles */
.t1-profile .sf-auth__field,
.t1-profile .t1-profile__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}
.t1-profile .sf-auth__field > input,
.t1-profile .t1-profile__field > input,
.t1-profile .sf-auth__field .sf-auth__password-wrap > input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1.5px solid var(--sl-border, #E4E9EC);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--sl-ink, #12161A);
}
.t1-profile .sf-auth__field > input:focus,
.t1-profile .t1-profile__field > input:focus {
  outline: none;
  border-color: var(--sl-accent, #F0A202);
  box-shadow: 0 0 0 4px rgba(240, 162, 2, 0.22);
}
.t1-profile .sf-auth__field > input[readonly],
.t1-profile .t1-profile__field > input[readonly] {
  background: var(--sl-sky, #F1F5F7);
  border-style: dashed;
}
.t1-profile .sf-btn.t1-profile__btn,
.t1-profile .t1-profile__btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  min-height: 48px;
  background: var(--sl-accent, #F0A202);
  color: var(--sl-ink, #12161A);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(240, 162, 2, 0.34);
}
