:root {
  color-scheme: dark;
  font-family: var(--sans);
  color: #f0ecfa;
  background: #0b1020;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(110deg, #0b102020, #0b102087), url("./dream-sky.svg") center / cover; opacity: .8; }
a { color: #d9c9ff; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #d9c9ff; outline-offset: 5px; }
.skip-link { position: fixed; left: 24px; top: -80px; padding: 12px 20px; background: #19253c; border-radius: 8px; z-index: 5; }
.skip-link:focus { top: 16px; }
.auth-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px clamp(24px, 5vw, 80px); border-bottom: 1px solid #c6b5db1c; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #f0ecfa; text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: .18em; }
.brand svg { color: #cebdff; flex: none; }
.header-note { color: #b5b1cc; font-size: 13px; }
.auth-layout { flex: 1; width: min(1180px, 100%); margin: auto; padding: 56px 40px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(40px, 7vw, 110px); }
.invitation { position: relative; }
.eyebrow { margin: 0 0 24px; font-size: 10px; font-weight: 650; letter-spacing: .22em; color: #cebdff; }
h1 { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 62px); line-height: 1.06; font-weight: 400; letter-spacing: -.045em; margin: 0 0 22px; }
.invitation-copy { font-size: 16px; line-height: 1.8; color: #c2bfd7; margin: 0; }
.portal { display: block; width: min(330px, 85%); height: auto; margin: 22px auto 8px; filter: drop-shadow(0 0 36px #c3a5ff20); }
.story-note { color: #e2dbf0; font-size: 13px; line-height: 1.8; margin: 0; }
.story-note span { color: #b5b1cc; font-size: 12px; }
.auth-panel { width: 100%; max-width: 450px; justify-self: end; background: #121b2eeb; border: 1px solid #9b86c04a; border-radius: 22px; box-shadow: 0 24px 80px #05091466, inset 0 1px 0 #ffffff08; overflow: hidden; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; margin: 16px 18px 0; border: 1px solid #c6b5db1c; background: #0b10206b; border-radius: 12px; gap: 4px; }
.auth-tabs a { text-align: center; text-decoration: none; color: #bab4cc; padding: 11px 6px; font-size: 13px; border-radius: 7px; transition: background .15s; }
.auth-tabs a:hover { background: #c6b5db12; color: #f0ecfa; }
.auth-tabs a[aria-current="page"] { color: #f0ecfa; background: #a98cdc30; box-shadow: inset 0 0 0 1px #cebdff30; }
.auth-form { padding: 28px 28px 0; min-height: 260px; }
.auth-loading { padding: 48px 0; text-align: center; color: #c2bfd7; font-size: 14px; line-height: 1.7; }
.loading-ring { display: inline-block; width: 26px; height: 26px; border: 2px solid #cebdff22; border-top-color: #cebdff; border-radius: 50%; animation: auth-spin 1s linear infinite; }
.auth-loading[data-error] .loading-ring { display: none; }
.auth-loading[data-error] { padding: 30px 0; }
#auth-retry { background: #cebdff; color: #201830; border: 0; border-radius: 8px; padding: 12px 24px; font: inherit; font-weight: 650; cursor: pointer; }
.account-note { margin: 0; padding: 22px 20px; border-top: 1px solid #c6b5db1c; text-align: center; color: #b5b1cc; font-size: 12px; }
.auth-noscript { color: #f0ecfa; line-height: 1.6; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 clamp(24px, 5vw, 80px); padding: 22px 0; border-top: 1px solid #c6b5db1c; font-size: 11px; color: #aaa5c0; }
.auth-footer span:last-child { letter-spacing: .18em; font-size: 10px; }
/* Classes are passed through Clerk's supported appearance API, not generated selectors. */
#auth-widget .auth-clerk-root, #auth-widget .auth-clerk-box { width: 100%; box-shadow: none; border: 0; border-radius: 0; background: transparent; }
#auth-widget .auth-clerk-card { background: transparent; box-shadow: none; border: 0; padding: 8px 0 24px; }
#auth-widget .auth-clerk-title { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.025em; }
#auth-widget .auth-clerk-subtitle { line-height: 1.7; margin-top: 8px; }
#auth-widget .auth-clerk-input { min-height: 46px; border: 1px solid #65718d; box-shadow: none; }
#auth-widget .auth-clerk-input:focus { border-color: #d9c9ff; outline: 2px solid #d9c9ff; outline-offset: -2px; }
#auth-widget .auth-clerk-submit { min-height: 46px; font-size: 14px; box-shadow: none; text-transform: none; }
#auth-widget .auth-clerk-footer { background: transparent; padding: 0 0 20px; }
body[data-auth-mode="sign-in"] #auth-widget .auth-clerk-footer-action { display: none; }
[hidden] { display: none !important; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (min-width: 1400px) { .auth-layout { padding-top: 72px; padding-bottom: 72px; } }
@media (max-width: 800px) {
  .auth-layout { grid-template-columns: 1fr; gap: 30px; padding: 38px 24px; max-width: 540px; }
  .invitation { text-align: center; }
  .eyebrow { margin-bottom: 16px; font-size: 9px; }
  h1 { font-size: 42px; margin-bottom: 14px; }
  .invitation-copy { font-size: 14px; }
  .portal, .story-note { display: none; }
  .auth-panel { justify-self: center; }
  .header-note { display: none; }
  .auth-header { padding: 20px 24px; }
  .auth-form { padding: 24px 24px 0; }
}
@media (max-width: 380px) { .auth-layout { padding: 30px 16px; } .auth-form { padding: 22px 18px 0; } h1 { font-size: 37px; } .wide-break { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
