body.is-auth-locked {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(195, 225, 242, 0.55), transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(236, 102, 92, 0.08), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(33, 19, 61, 0.05), transparent 45%),
    var(--mobile-page-bg, #f4f3f8);
  color: var(--mobile-purple, #21133d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  box-sizing: border-box;
}

.auth-card {
  width: min(100%, 390px);
  border: 1px solid rgba(155, 199, 223, 0.55);
  background: var(--theme-panel, #ffffff);
  border-radius: 24px;
  box-shadow:
    0 16px 40px -10px color-mix(in srgb, var(--theme-text, #21133d) 12%, transparent),
    0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  padding: 34px 24px 26px;
  box-sizing: border-box;
  text-align: center;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--theme-panel, #ffffff), #eaf3fa);
  border: 1px solid rgba(155, 199, 223, 0.7);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-text, #21133d) 6%, transparent);
}

.auth-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(236, 102, 92, 0.12);
  border: 1px solid rgba(236, 102, 92, 0.35);
  color: var(--mobile-coral, #ec665c);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.auth-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--mobile-purple, #21133d);
  line-height: 1.15;
}

.auth-subtitle-wrap {
  margin: 6px 0 20px;
}

.auth-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(33, 19, 61, 0.06);
  color: var(--mobile-purple, #21133d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-copy {
  margin: 0 0 16px;
  color: var(--theme-quiet, #64748b);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-helper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 12px;
  background: var(--theme-panel, #f8fafc);
  color: var(--theme-quiet, #64748b);
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-helper-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--theme-quiet, #64748b);
}

.auth-password-rules {
  margin: -2px 0 0;
  color: var(--theme-quiet, #64748b);
  font-size: 0.86rem;
  line-height: 1.4;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-google-signin {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 4px 0 6px;
  color: #8b8599;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--mobile-grid-line, #d7d9de);
}

.auth-divider span {
  padding: 0 10px;
}

.auth-secure-panel {
  display: grid;
  justify-items: stretch;
  gap: 8px;
  padding: 0;
}

.auth-secure-panel[hidden] {
  display: none !important;
}

.auth-passkey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  color: var(--mobile-purple, #21133d);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  transition: all 0.15s ease;
}

.auth-passkey-btn:hover {
  background: #fbfbfe;
  border-color: var(--mobile-card-border, #9bc7df);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--theme-text, #21133d) 8%, transparent);
  transform: translateY(-1px);
}

.auth-passkey-btn:active {
  background: var(--theme-panel, #f1f4f8);
  transform: translateY(0);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--theme-text, #21133d) 8%, transparent);
}

.auth-btn-icon {
  width: 20px;
  height: 20px;
  color: var(--mobile-coral, #ec665c);
  flex-shrink: 0;
}

.auth-passkey-prompt {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 19, 61, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-passkey-prompt[hidden] {
  display: none !important;
}

.auth-passkey-card {
  width: min(100%, 380px);
  padding: 24px;
  border: 1px solid rgba(155, 199, 223, 0.6);
  border-radius: 20px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--theme-text, #21133d) 25%, transparent);
  text-align: left;
}

.auth-passkey-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-passkey-modal-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--mobile-coral, #ec665c);
}

.auth-passkey-card h2 {
  margin: 0;
  color: var(--mobile-purple, #21133d);
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-passkey-card p {
  margin: 0 0 16px;
  color: var(--theme-quiet, #64748b);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-passkey-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.86rem;
}

.auth-passkey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-primary-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--mobile-coral, #ec665c);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-accent, #ec665c) 28%, transparent);
  transition: all 0.15s ease;
}

.auth-primary-btn:hover {
  background: #d8574d;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-accent, #ec665c) 36%, transparent);
  transform: translateY(-1px);
}

.auth-secondary-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  color: var(--mobile-purple, #21133d);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.auth-secondary-btn:hover {
  background: var(--theme-panel, #f8fafc);
  border-color: #b0b7c3;
}

.auth-footnote {
  margin: 0;
  color: var(--theme-quiet, #64748b);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-footnote[hidden] {
  display: none !important;
}

.auth-aux-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.auth-subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6a637d;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.auth-subtle-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
  flex-shrink: 0;
}

.auth-subtle-link:hover,
.auth-subtle-link:focus-visible {
  color: var(--mobile-coral, #ec665c);
  background: rgba(236, 102, 92, 0.08);
}

.auth-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(215, 217, 222, 0.6);
  color: #8b8599;
  font-size: 0.76rem;
  font-weight: 500;
}

.auth-footer-note svg {
  width: 12px;
  height: 12px;
  color: #8b8599;
  flex-shrink: 0;
}

.auth-developer-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--mobile-card-border, #9bc7df);
  border-radius: 16px;
  background: rgba(195, 225, 242, 0.18);
  text-align: left;
}

.auth-developer-copy {
  margin: 0;
  color: var(--theme-quiet, #475569);
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  color: var(--mobile-purple, #21133d);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 10px;
  background: var(--theme-panel, #ffffff);
  color: var(--mobile-purple, #21133d);
  font: inherit;
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #ec665c) 18%, transparent);
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 102, 92, 0.35);
  background: #fff5f5;
  color: #b91c1c;
  font-size: 0.86rem;
  text-align: left;
  line-height: 1.45;
}

.window-session {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  position: relative;
}

.account-menu-button {
  gap: 6px;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.account-menu-button.is-open,
.account-menu-button:hover,
.account-menu-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 150;
  display: grid;
  min-width: 188px;
  padding: 5px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-text, #21133d) 20%, transparent);
}

.account-menu[hidden] {
  display: none !important;
}

.account-menu-item {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--theme-text, #21133d);
  font-weight: 600;
  text-align: left;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: #edf5fc;
  color: var(--theme-text, #21133d);
}

.session-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 113, 138, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #29425b;
  font-size: 0.78rem;
  font-weight: 700;
}

.session-role-badge.is-owner {
  background: rgba(255, 224, 159, 0.88);
  border-color: rgba(214, 148, 56, 0.5);
}

.session-role-badge.is-developer-access {
  background: rgba(243, 236, 215, 0.92);
  border-color: rgba(184, 151, 89, 0.48);
}

.session-email {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #36516b;
  font-size: 0.9rem;
}


/* Email + Password + 6-Digit OTP Commercial Sign-In */
.auth-tagline {
  margin: 8px 0 18px;
  color: #6b647a;
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-invite-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #9bc7df;
  background: rgba(195, 225, 242, 0.28);
  color: #21133d;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.auth-email-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.auth-otp-code-group {
  display: grid;
  gap: 12px;
}

.auth-submit-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
}

.auth-mode-switch-row {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: var(--mobile-purple, #21133d);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: var(--mobile-coral, #ec665c);
}

.auth-force-change-copy {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(236, 102, 92, 0.08);
  border: 1px solid rgba(236, 102, 92, 0.25);
  color: #21133d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-force-change-copy p {
  margin: 4px 0 0;
  color: #5b546b;
}

.auth-client-booking-link {
  margin-top: 12px;
  font-size: 0.82rem;
}

.auth-client-booking-link a {
  color: #6b647a;
  text-decoration: none;
}

.auth-client-booking-link a:hover {
  color: var(--mobile-coral, #ec665c);
}
