:root {
  color-scheme: dark;
  --content-max: 1120px;
  --notice-max: 560px;
  --bg: #090a0d;
  --panel: rgba(18, 19, 24, 0.94);
  --panel-strong: rgba(24, 24, 31, 0.96);
  --line: rgba(235, 237, 244, 0.12);
  --line-strong: rgba(151, 135, 222, 0.72);
  --text: #f5f5f7;
  --text-soft: rgba(225, 226, 234, 0.68);
  --accent: #aa9bea;
  --accent-warm: #ff7783;
  --danger: #ff8a97;
  --success: #82d7ae;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0 0 1.5rem;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 119, 131, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 4%, rgba(136, 115, 215, 0.11), transparent 30rem),
    linear-gradient(180deg, #0c0d11, var(--bg) 32rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.flash {
  width: min(var(--notice-max), calc(100% - 2rem));
  margin: 1rem auto 0;
}

.flash,
.identity-status {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: rgba(18, 19, 24, 0.94);
  color: var(--text-soft);
}

.flash--alert {
  border-color: rgba(255, 138, 151, 0.34);
  color: #ffc2c9;
}

.flash--notice {
  border-color: rgba(130, 215, 174, 0.3);
  color: #b8ead1;
}

.auth-shell {
  display: grid;
  gap: 1rem;
  width: min(560px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.25rem, 7vh, 5rem) 0 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.auth-brand__lockup {
  display: block;
  width: 176px;
  height: auto;
}

.auth-brand__divider {
  width: 1px;
  height: 24px;
  margin: 0 0.85rem;
  background: rgba(235, 237, 244, 0.16);
}

.auth-brand__product {
  color: rgba(245, 245, 247, 0.84);
  font-size: 0.96rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.auth-app-context {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 40px;
  color: var(--text-soft);
}

.auth-app-context__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(130, 215, 174, 0.28);
  border-radius: 50%;
  background: rgba(130, 215, 174, 0.09);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 900;
}

.auth-app-context > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
}

.auth-app-context small {
  color: var(--text-soft);
}

.auth-app-context strong {
  color: rgba(245, 245, 247, 0.9);
  font-size: 0.9rem;
}

.auth-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.35rem, 4vw, 2.1rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--panel);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.auth-card__heading {
  margin-bottom: 1.35rem;
}

.auth-eyebrow {
  margin: 0 0 0.6rem;
  color: #c0b4f5;
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card__heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.auth-card__heading > p:last-child {
  max-width: 46ch;
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-session {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(130, 215, 174, 0.2);
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  background: rgba(130, 215, 174, 0.055);
}

.auth-session.is-warning {
  border-color: rgba(255, 192, 111, 0.24);
  background: rgba(255, 192, 111, 0.055);
}

.auth-session__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(130, 215, 174, 0.13);
  color: #b8ead1;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-session__copy {
  display: grid;
  flex: 1;
  gap: 0.1rem;
  min-width: 0;
}

.auth-session__copy small,
.auth-identity small,
.auth-known-account small {
  color: var(--text-soft);
  font-size: 0.73rem;
}

.auth-session__copy strong,
.auth-identity strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-session form {
  flex: 0 0 auto;
}

.auth-text-button {
  border: 0;
  padding: 0.4rem;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}

.auth-text-button:hover {
  color: var(--text);
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-form label {
  display: grid;
  gap: 0.42rem;
  color: rgba(245, 245, 247, 0.84);
  font-size: 0.84rem;
  font-weight: 620;
}

.auth-form label small {
  color: var(--text-soft);
  font-weight: 450;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(235, 237, 244, 0.15);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(5, 6, 9, 0.52);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-form input:hover {
  border-color: rgba(235, 237, 244, 0.24);
}

.auth-form input:focus-visible {
  border-color: var(--line-strong);
  background: rgba(5, 6, 9, 0.72);
  box-shadow: 0 0 0 4px rgba(151, 135, 222, 0.13);
}

.auth-form__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.auth-form__hint {
  margin: -0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-identity {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(235, 237, 244, 0.1);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  background: rgba(5, 6, 9, 0.38);
}

.auth-primary-button {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 0.82rem 1rem;
  background: linear-gradient(110deg, #c43f58, #5944b5);
  box-shadow: 0 10px 28px rgba(89, 68, 181, 0.24);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 740;
  text-align: center;
  text-decoration: none;
  transition: filter 140ms ease, transform 140ms ease;
}

.auth-primary-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-primary-button:disabled {
  cursor: wait;
  filter: saturate(0.65);
  opacity: 0.76;
  transform: none;
}

.auth-primary-button:focus-visible,
.auth-secondary-action:focus-visible,
.auth-known-account button:focus-visible,
.auth-text-button:focus-visible,
.auth-footer a:focus-visible,
.auth-switch a:focus-visible,
.auth-help a:focus-visible {
  outline: 3px solid rgba(170, 155, 234, 0.55);
  outline-offset: 3px;
}

.auth-email-fallback {
  display: grid;
  gap: 0.65rem;
}

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

.auth-secondary-action {
  width: fit-content;
  margin: -0.2rem auto 0;
  border: 0;
  padding: 0.35rem;
  background: transparent;
  color: #c0b4f5;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-secondary-action:hover {
  color: #d5cef5;
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

.auth-switch a,
.auth-help a {
  color: #c0b4f5;
  font-weight: 700;
}

.auth-known-account {
  display: grid;
  gap: 0.4rem;
}

.auth-known-account[hidden] {
  display: none;
}

.auth-known-account button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(170, 155, 234, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: rgba(170, 155, 234, 0.065);
  color: #d5cef5;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 680;
  text-align: left;
}

.auth-status {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  border: 1px solid rgba(170, 155, 234, 0.2);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: rgba(170, 155, 234, 0.055);
  color: #d5cef5;
  font-size: 0.79rem;
  line-height: 1.42;
}

.auth-status.is-idle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.auth-status__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(170, 155, 234, 0.08);
}

.auth-status.is-error {
  border-color: rgba(255, 138, 151, 0.28);
  background: rgba(255, 138, 151, 0.06);
  color: #ffc2c9;
}

.auth-status.is-success {
  border-color: rgba(130, 215, 174, 0.26);
  background: rgba(130, 215, 174, 0.06);
  color: #b8ead1;
}

.auth-help {
  display: grid;
  gap: 0.28rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-help strong {
  color: rgba(245, 245, 247, 0.86);
  font-size: 0.82rem;
}

.auth-help a {
  width: fit-content;
  margin-top: 0.18rem;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  padding: 0.2rem 0.25rem;
  color: rgba(225, 226, 234, 0.45);
  font-size: 0.7rem;
}

.auth-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-footer a {
  color: rgba(225, 226, 234, 0.6);
}

.consent-shell {
  padding-bottom: 1rem;
}

/*
 * A form_post response submits immediately. Keep its manual fallback out of
 * the successful fast path and reveal it only when the callback takes longer
 * than expected. CSS owns the delay so the fallback still appears when
 * JavaScript is unavailable and the automatic submit cannot run.
 */
.form-post-fallback {
  animation: form-post-fallback-reveal 0s 1.2s both;
}

@keyframes form-post-fallback-reveal {
  from {
    opacity: 0;
    visibility: hidden;
  }

  to {
    opacity: 1;
    visibility: visible;
  }
}

.consent-permissions {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.consent-permissions h2 {
  margin: 0 0 0.8rem;
  color: rgba(245, 245, 247, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.consent-permissions ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.consent-permissions li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(235, 237, 244, 0.09);
  border-radius: 12px;
  padding: 0.68rem 0.75rem;
  background: rgba(5, 6, 9, 0.32);
}

.consent-permissions__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(130, 215, 174, 0.1);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 900;
}

.consent-permissions li > span:last-child {
  display: grid;
  gap: 0.12rem;
}

.consent-permissions strong {
  color: rgba(245, 245, 247, 0.9);
  font-size: 0.84rem;
}

.consent-permissions small {
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.35;
}

.consent-permissions code {
  color: #c0b4f5;
  font: inherit;
  font-weight: 680;
}

.consent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.consent-actions form,
.consent-actions input {
  width: 100%;
}

.consent-secondary-button {
  min-height: 50px;
  border: 1px solid rgba(235, 237, 244, 0.14);
  border-radius: 12px;
  padding: 0.82rem 1rem;
  background: rgba(5, 6, 9, 0.42);
  color: rgba(245, 245, 247, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 680;
}

.consent-secondary-button:hover {
  border-color: rgba(235, 237, 244, 0.25);
  background: rgba(235, 237, 244, 0.06);
}

.consent-footer form {
  margin: 0;
}

.auth-home {
  padding-top: clamp(3rem, 10vh, 7rem);
}

.auth-home__benefits {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.auth-home__benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(235, 237, 244, 0.09);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: rgba(5, 6, 9, 0.3);
}

.auth-home__benefits li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(130, 215, 174, 0.1);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-home__benefits div {
  display: grid;
  gap: 0.15rem;
}

.auth-home__benefits strong {
  font-size: 0.83rem;
}

.auth-home__benefits small {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.identity-shell {
  display: grid;
  gap: 1.25rem;
  width: min(var(--content-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 0;
}

.identity-hero {
  max-width: 760px;
  margin-bottom: 0;
}

.identity-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.identity-hero h1,
.identity-panel h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.identity-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 0.92;
}

.identity-hero p,
.identity-panel p {
  color: var(--text-soft);
  line-height: 1.65;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.identity-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.4rem;
  background: var(--panel);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.26);
}

.identity-panel--accent {
  background:
    linear-gradient(135deg, rgba(255, 122, 217, 0.11), transparent 38%),
    var(--panel-strong);
}

.identity-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.identity-form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.identity-known-account {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  border: 1px solid rgba(132, 228, 255, 0.22);
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(1, 5, 22, 0.42);
}

.identity-known-account[hidden] {
  display: none;
}

.identity-known-account span {
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-known-account button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.9rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.identity-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.identity-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(1, 5, 22, 0.62);
  color: var(--text);
  outline: none;
}

.identity-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(132, 228, 255, 0.1);
}

.identity-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #030417;
  cursor: pointer;
  font-weight: 900;
}

.identity-status {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.8rem;
}

.identity-shell > .identity-status,
.identity-shell > noscript > .identity-status {
  width: min(var(--notice-max), 100%);
  margin: 0;
}

.identity-status strong {
  flex: 0 1 15rem;
}

.identity-status span {
  flex: 1 1 24rem;
  min-width: 0;
}

.identity-status form {
  margin-left: auto;
}

.identity-status form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.95rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.identity-status.is-error {
  border-color: rgba(255, 122, 155, 0.62);
  color: var(--danger);
}

.identity-status.is-error form button {
  border-color: rgba(255, 122, 155, 0.5);
  color: var(--danger);
}

.identity-status.is-success {
  border-color: rgba(140, 255, 193, 0.62);
  color: var(--success);
}

.identity-status.is-success form button {
  border-color: rgba(140, 255, 193, 0.48);
  color: var(--success);
}

.account-shell {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.account-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.account-grid {
  align-items: stretch;
}

.account-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.account-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.account-facts div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  border: 1px solid rgba(132, 228, 255, 0.18);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(1, 5, 22, 0.36);
}

.account-facts dt,
.identifier-row p,
.identifier-muted,
.account-section-heading span {
  color: var(--text-soft);
}

.account-facts dt {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.account-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-section-heading span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
}

.identifier-list {
  display: grid;
  gap: 0.8rem;
}

.identifier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  border: 1px solid rgba(132, 228, 255, 0.2);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(1, 5, 22, 0.38);
}

.identifier-row > div {
  min-width: 0;
}

.identifier-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.identifier-row__title strong {
  overflow-wrap: anywhere;
}

.identifier-row p {
  margin: 0.35rem 0 0;
}

.identifier-badge,
.identity-secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
}

.identifier-badge {
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
}

.identifier-badge.is-primary {
  border-color: rgba(140, 255, 193, 0.48);
  color: var(--success);
}

.identity-secondary-button {
  padding: 0.72rem 0.9rem;
  background: transparent;
  cursor: pointer;
}

.identifier-muted {
  font-size: 0.86rem;
}

.passkey-guidance {
  max-width: 72ch;
  margin: 0;
  color: var(--text-soft);
}

.passkey-add-form {
  display: grid;
  align-items: end;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.passkey-add-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.passkey-add-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(1, 5, 22, 0.62);
  color: var(--text);
  outline: none;
}

.passkey-add-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(132, 228, 255, 0.1);
}

.passkey-operation-status {
  min-height: 1.4em;
  margin: -0.2rem 0 0;
}

.passkey-operation-status.is-error {
  color: var(--danger);
}

@media (max-width: 760px) {
  .flash {
    width: calc(100% - 1rem);
  }

  .auth-shell {
    gap: 0.75rem;
    width: calc(100% - 1rem);
    padding-top: 1.15rem;
  }

  .auth-brand__lockup {
    width: 150px;
  }

  .auth-brand__divider {
    margin: 0 0.68rem;
  }

  .auth-app-context {
    min-height: 32px;
  }

  .auth-card {
    border-radius: 20px;
    padding: 1.2rem;
  }

  .auth-card__heading {
    margin-bottom: 1.1rem;
  }

  .auth-card__heading > p:last-child {
    font-size: 0.88rem;
  }

  .auth-form__columns {
    grid-template-columns: 1fr;
  }

  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.2rem 0.55rem;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .identity-shell {
    gap: 1rem;
    width: calc(100% - 1rem);
    padding: 2.25rem 0 0;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-form-grid {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    padding: 1.15rem;
    border-radius: 24px;
  }

  .identity-status {
    padding: 0.9rem 1rem;
  }

  .identity-status strong,
  .identity-status span,
  .identity-status form {
    flex: 1 1 100%;
    width: 100%;
  }

  .identity-status form {
    margin-left: 0;
  }

  .identity-status form button {
    width: 100%;
  }

  .account-section-heading,
  .identifier-row {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-secondary-button {
    width: 100%;
  }

  .passkey-add-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .auth-app-context > span:last-child {
    display: grid;
    gap: 0;
  }

  .auth-session {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .auth-session form {
    margin-left: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
