/* Shared by browser and native web sign-in, account recovery, invitations and signup. */
.rsp-access { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.rsp-access-body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  padding: clamp(24px, 5vw, 72px) var(--rsp-brand-gutter);
}
.rsp-access :is(.rsp-access-card, .rsp-signup-fields) {
  width: 100%; min-width: 0; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--rsp-brand-line);
  border-radius: 24px; background: white; box-shadow: 0 8px 28px rgb(15 23 42 / .045);
}
.rsp-access .rsp-access-card { max-width: 544px; margin-inline: auto; overflow-wrap: anywhere; }
.rsp-access-intro { margin-bottom: 28px; }
.rsp-access-intro:last-child { margin-bottom: 0; }
.rsp-access h1, .rsp-signup-plans legend {
  margin: 0; color: var(--rsp-brand-ink); font: 800 clamp(1.5rem, calc(1.25rem + 2vw), 2.375rem)/1.1 var(--rsp-brand-display);
  letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere;
}
.rsp-access-description { margin-top: 14px; color: var(--rsp-brand-muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.rsp-access-eyebrow { margin-bottom: 10px; color: var(--rsp-brand-blue); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rsp-access-eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rsp-brand-indigo); }
.rsp-transaction .rsp-access-card > p { color: var(--rsp-brand-muted); font-size: .9375rem; line-height: 1.6; }
.rsp-transaction .rsp-access-card > p + :is(p, form) { margin-top: 16px; }
.rsp-access :is(label[for], .rsp-auth-field-label) { font-size: .8125rem; font-weight: 650; color: var(--rsp-brand-ink); }
.rsp-access label abbr { text-decoration: none; }
.rsp-access .rsp-auth-input, .rsp-access [data-controller="otp-input"] input:not([type="hidden"]) {
  width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; border: 1px solid var(--rsp-brand-control-line); border-radius: 10px;
  color: var(--rsp-brand-ink); background-color: white; box-shadow: none; font-size: 1rem;
}
.rsp-access .rsp-auth-input:focus, .rsp-access [data-controller="otp-input"] input:focus { border-color: var(--rsp-brand-blue); box-shadow: none; }
.rsp-access .rsp-auth-input::placeholder { color: var(--rsp-brand-muted); opacity: 1; }
.rsp-access .rsp-auth-input[readonly] { background: var(--rsp-brand-mist); }
.rsp-access :is(.rsp-auth-input[aria-invalid="true"], .field_with_errors .rsp-auth-input, .rsp-auth-input.border-red-500):not([aria-invalid="false"]),
.rsp-access [data-controller="otp-input"] input[aria-invalid="true"] { border-color: #b91c1c; }
.rsp-access p.text-red-500 { color: #9f1239; }
.rsp-access :is(.rsp-auth-primary-button, .rsp-auth-secondary-button) {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; min-height: 48px;
  border-radius: 999px; border: 1px solid transparent; padding: 10px 16px;
  font: 700 .9375rem/1.4 var(--rsp-brand-type); white-space: normal; text-align: center;
  box-shadow: none; transform: none; scale: none;
}
.rsp-access .rsp-auth-primary-button { color: white; background: var(--rsp-brand-blue); }
.rsp-access .rsp-auth-primary-button:hover { background: var(--rsp-brand-blue-hover); }
.rsp-access .rsp-auth-secondary-button { color: var(--rsp-brand-ink); border-color: var(--rsp-brand-control-line); background: white; }
.rsp-access .rsp-auth-secondary-button:hover { border-color: var(--rsp-brand-blue); background: var(--rsp-brand-mist); }
.rsp-access .rsp-auth-link { color: var(--rsp-brand-blue); display: inline-flex; align-items: center; min-height: 44px; }
.rsp-access :is(.rsp-invited-email, .rsp-password-hint, .rsp-invite-method-divider span) { color: var(--rsp-brand-muted); }
.rsp-auth-field-label { display: block; margin-bottom: 5px; line-height: 1.4; }
.rsp-connected-email { margin-bottom: 20px; }
.rsp-connected-email-heading, .rsp-auth-help-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.rsp-connected-email-heading label { margin: 0; }
.rsp-connected-email-heading button, .rsp-auth-help-actions button { min-height: 44px; font-size: 13px; }
.rsp-auth-help-actions { margin-top: 8px; }
.rsp-password-toggle { display: inline-flex; align-items: center; min-height: 44px; color: var(--rsp-brand-blue); font-size: 13px; font-weight: 600; }
.rsp-password-toggle[hidden] { display: none; }
.rsp-password-field { position: relative; }
.rsp-password-hint { margin: -10px 0 20px; color: var(--rsp-brand-muted); font-size: 13px; line-height: 1.6; }
.rsp-password-hint:empty { margin: 0; }
.rsp-invited-email { margin-bottom: 20px; color: var(--rsp-brand-muted); font-size: 14px; overflow-wrap: anywhere; }
.rsp-owner-invitation .rsp-access-intro { margin-bottom: 14px; }
.rsp-owner-invitation .rsp-access-intro h1 { margin-top: 0; }
.rsp-owner-invitation-context { display: grid; gap: 4px; margin-bottom: 20px; }
.rsp-owner-invitation-workspace { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rsp-owner-invitation-context .rsp-invited-email { margin: 0; }
.rsp-owner-invitation-context .rsp-access-description { margin: 8px 0 0; }
.rsp-owner-invitation .rsp-invite-method-divider { margin-block: 14px; }
.rsp-owner-invitation-name { column-gap: 12px; }
.rsp-access .rsp-password-field .rsp-auth-input { padding-right: 52px; }
.rsp-password-toggle-inline {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  justify-content: center;
  border-radius: 8px;
  color: var(--rsp-brand-muted);
}
.rsp-password-toggle-inline:hover { color: var(--rsp-brand-blue); background: var(--rsp-brand-mist); }
.rsp-password-toggle [data-interface-icon-part="slash"] { opacity: 0; }
.rsp-password-toggle[aria-pressed="true"] [data-interface-icon-part="slash"] { opacity: 1; }
.rsp-login-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; margin-bottom: 20px; }
.rsp-login-remember { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: .8125rem; line-height: 1.5; cursor: pointer; }
.rsp-login-remember input[type="checkbox"] { flex-shrink: 0; margin: 0; border-color: var(--rsp-brand-control-line); color: var(--rsp-brand-blue); accent-color: var(--rsp-brand-blue); }
.rsp-access .rsp-login-forgot { min-height: 44px; margin-left: auto; font-size: .8125rem; line-height: 1.5; }

.rsp-access [data-otp-input-target="enhanced"] { min-width: 0; }
.rsp-access [data-controller="otp-input"] .segmented-toggle {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border: 1px solid var(--rsp-brand-line); border-radius: 16px; background: var(--rsp-brand-mist);
}
.rsp-access [data-controller="otp-input"] .segmented-toggle-option {
  min-height: 44px; min-width: 0; padding: 6px; white-space: normal; overflow-wrap: anywhere;
  border-radius: 12px; color: var(--rsp-brand-muted); font: 650 .8125rem/1.35 var(--rsp-brand-type);
}
.rsp-access [data-controller="otp-input"] button[aria-pressed="true"] { background: var(--rsp-brand-blue); color: white; box-shadow: none; }
@media (forced-colors: active) {
  .rsp-access [data-controller="otp-input"] button[aria-pressed="true"] { border: 2px solid ButtonText; text-decoration: underline; }
}
.rsp-access [data-controller="otp-input"] input[data-otp-input-target="digit"] { width: 100%; padding-inline: 0; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.rsp-access [data-otp-input-target="backupInput"] { width: 100%; }
.rsp-access-divider, .rsp-signup-divider {
  display: flex; align-items: center; gap: 12px; margin-block: 16px;
  color: var(--rsp-brand-muted); font-size: .8125rem;
}
:is(.rsp-access-divider, .rsp-signup-divider)::before, :is(.rsp-access-divider, .rsp-signup-divider)::after { content: ""; flex: 1; border-top: 1px solid var(--rsp-brand-line); }
@media (prefers-reduced-motion: reduce) {
  .rsp-access *, .rsp-access *::before { transition: none !important; }
}
