body:not(.saas-authenticated) > .app-shell,
body:not(.saas-authenticated) > .toast-region,
body:not(.saas-authenticated) > dialog { display: none; }
body.saas-authenticated > .auth-root { display: none; }
.auth-root { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; background: #FFF9F5; }
.auth-card { min-width: 0; width: min(100%, 430px); padding: 36px; border: 1px solid #E7DEDA; border-radius: 22px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(26,27,63,.08), 0 8px 24px rgba(26,27,63,.10); }
.auth-card h1 { margin: 8px 0; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 32px; letter-spacing: -0.02em; color: #1A1B3F; }
.auth-kicker { margin: 0; color: #A3175A; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-copy, .auth-message { color: #56587A; font-size: 15px; line-height: 1.55; }
.auth-message { min-height: 20px; margin: 12px 0 0; }
.auth-message.error { color: #B3261E; }
.auth-message.success { color: #1F7A5A; }
.auth-form { display: grid; gap: 13px; margin-top: 24px; }
.auth-form label { display: grid; gap: 6px; color: #1A1B3F; font-size: 14px; font-weight: 600; }
.auth-form input { height: 46px; border: 1.5px solid #56587A; border-radius: 14px; padding: 0 14px; font-size: 16px; }
.auth-form input:focus { outline: none; border-color: #C81E6E; box-shadow: 0 0 0 4px #F9D9E6; }
.auth-action { min-height: 46px; border: 0; border-radius: 999px; background: #C81E6E; color: #fff; font-weight: 750; box-shadow: none; }
.auth-action:hover { background: #A3175A; }
.auth-action.secondary { border: 1.5px solid #56587A; background: #fff; color: #1A1B3F; box-shadow: none; }
.auth-action.secondary:hover { background: #FAF9FD; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-google svg { width: 18px; height: 18px; flex: 0 0 18px; }
.auth-link { border: 0; background: transparent; color: #C81E6E; font-size: 12px; font-weight: 700; }
.auth-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #676B7B; font-size: 11px; }
.auth-divider[hidden], .auth-google[hidden] { display: none; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: #E7DEDA; flex: 1; }

.auth-logo { width: 120px; height: auto; display: block; margin-bottom: 24px; }

.is-loading {
  position: relative;
  pointer-events: none;
}
.is-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
.auth-google.is-loading svg { display: none; }
@keyframes button-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .is-loading::before {
    animation: none;
  }
}
