/* burnmanager /app/: sign in, start your camp, invitation (split screen like festival.productions), camp home and account */

/* ---------- split screen ---------- */
body.auth { min-height: 100svh; }
.auth-wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100svh; }
.auth-brand {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 36px 48px 48px; background: #12061F; color: #F2EDE3;
}
.auth-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9) brightness(.62); }
.auth-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,6,31,.55) 0%, rgba(18,6,31,.15) 40%, rgba(18,6,31,.78) 100%); }
.auth-logo { color: #F2EDE3; }
.auth-logo .logo { height: 34px; }
.auth-head {
  margin: 0; font-family: "Anton", "Anton Fallback", sans-serif; text-transform: uppercase;
  font-size: clamp(40px, 4.8vw, 76px); line-height: .98; letter-spacing: .01em;
}
.auth-sub { margin: 18px 0 0; max-width: 440px; font-size: 17px; color: rgba(242,237,227,.8); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; background: var(--night); }
.auth-card { width: min(400px, 100%); display: grid; gap: 14px; }
.auth-title { margin: 0 0 8px; font-family: "Archivo", "Archivo Fallback", sans-serif; font-weight: 900; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.auth-lede { margin: -8px 0 8px; color: var(--dim); font-size: 16px; }
.auth-step { display: grid; gap: 14px; }
.auth-error { margin: 0; padding: 12px 14px; background: #E8796B; color: #1A0806; font-size: 15px; font-weight: 600; }
.auth-quick { display: grid; gap: 10px; }
.auth-quick:not(:has(> :not([hidden]))) { display: none; }
.auth-passkey { min-height: 58px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16.5px; }
.auth-social {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1F1F1F; font-weight: 500; font-size: 15.5px; text-decoration: none;
  box-shadow: inset 0 0 0 1px #747775; transition: background .15s ease;
}
.auth-social:hover { background: #F2F2F2; }
.auth-social .ic { flex: none; }
/* signing in shows one thing at a time: the buttons, or the form for a code by email. The second way in is a quiet
   button of the same width under the first; inside the form one small line leads back. */
.auth-mail summary { list-style: none; cursor: pointer; }
.auth-mail summary::-webkit-details-marker { display: none; }
.auth-alt {
  min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 0 16px; text-align: center;
  font-weight: 600; font-size: 15.5px; color: var(--text); box-shadow: inset 0 0 0 1px #43394A; transition: box-shadow .15s ease;
}
.auth-alt:hover { box-shadow: inset 0 0 0 1px var(--dim); }
.auth-alt:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }
.auth-mail[open] > summary { display: none; }
.auth-mail-in { display: grid; gap: 14px; }
.auth-card:has(> .auth-mail[open]) > .auth-quick { display: none; }
.auth-card:not(:has(.auth-quick > :not([hidden]))) .auth-other { display: none; }
.auth-form { display: grid; gap: 14px; }
.auth-note { margin: 0; color: var(--dim); font-size: 15px; }
.auth-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.auth-foot { margin: 10px 0 0; font-size: 14px; color: var(--dim); }
.auth-foot a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(242,237,227,.4); }
.auth-foot a:hover { text-decoration-color: var(--fire); }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn.wide { width: 100%; justify-content: center; }
.btn .ic { margin-inline-end: 8px; vertical-align: -5px; }
.linkish { padding: 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkish:hover { color: var(--text); }
/* the language sits small in the top corner of the page, away from the form */
.auth-main > .talen { position: absolute; top: 36px; inset-inline-end: 44px; }
.auth-main > .talen .talen-lijst { bottom: auto; top: calc(100% + 6px); inset-inline: auto -14px; }
.field input:disabled { opacity: .75; }

/* ---------- the quiet half on a wide screen: the plan of Black Rock City behind the form ----------
   (26 Nov 2026, the user: "de achtergrond op desktop aan de rechterkant een beetje saai".) It is the drawing of the hero
   (city.js), thin and still: the form stands in the open playa, the streets run around it, and the top is empty the way
   the city is open between 10:00 and 2:00, which is where the language sits. Your camp follows the mouse, as on the home
   page. No glow, no gradient, nothing that moves by itself. On a phone the film fills the screen and this stays away. */
.auth-city, .auth-addr { display: none; }
@media (min-width: 861px) {
  .auth-main { position: relative; overflow: hidden; isolation: isolate; }
  .auth-card { position: relative; z-index: 1; }
  .auth-main > .talen { z-index: 2; }
  .auth-main .auth-city {
    display: block; position: absolute; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%);
    width: 2380px; height: 2267px; aspect-ratio: auto; max-width: none; z-index: 0; pointer-events: none; cursor: default;
  }
  .auth-city .ring { stroke: rgba(242,237,227,.17); stroke-width: 1; }
  .auth-city .ring.esp { stroke: rgba(242,237,227,.42); stroke-width: 1.4; }
  .auth-city .rad { stroke: rgba(242,237,227,.08); }
  .auth-city .rad.half { stroke: rgba(242,237,227,.17); }
  .auth-city .plaza { fill: var(--night); stroke: rgba(242,237,227,.24); stroke-width: 1; }
  .auth-city .lab { font-size: 11.5px; fill: rgba(242,237,227,.4); }
  .auth-addr {
    display: block; position: absolute; z-index: 1; pointer-events: none; transform: translate(14px, -50%);
    background: var(--text); color: #12061F; padding: 6px 10px 7px; line-height: 1.15; white-space: nowrap;
  }
  .auth-addr small { display: block; font-size: 11px; color: rgba(18,6,31,.7); }
  .auth-addr b { font-family: "Geist Mono", monospace; font-weight: 500; font-size: 15px; direction: ltr; unicode-bidi: isolate; }
}

/* phone: the 9:16 film fills the whole screen; logo and headline on top, the form at the bottom near the thumb.
   The brand panel lets go of its box (display: contents), so the film and the veil sit fixed behind everything. */
@media (max-width: 860px) {
  body.auth { background: #12061F; }
  .auth-wrap { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; }
  .auth-brand { display: contents; }
  /* the city lights sit between 57% and 75% of the 9:16 film; account.js (frameFilm) lifts the film so they end just above
     the form, and sets --vy (top), --vh (height) and --vt (where the form starts). Below the film the page colour goes on. */
  .auth-video {
    /* right and bottom let go of the inset of the desktop rule: with left, right and a width all set, a right-to-left
       page keeps right and drops left, and the film slid off the screen in Hebrew */
    position: fixed; left: 50%; right: auto; bottom: auto; top: var(--vy, -18vh); transform: translateX(-50%);
    height: var(--vh, 177.78vw); width: auto; aspect-ratio: 9 / 16; max-width: none; object-fit: cover;
    z-index: -2; filter: saturate(.95) brightness(.78);
  }
  .auth-veil {
    position: fixed; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(18,6,31,.5) 0, rgba(18,6,31,.12) 22%, rgba(18,6,31,.06) calc(var(--vt, 55vh) - 140px),
      rgba(18,6,31,.2) calc(var(--vt, 55vh) - 24px), rgba(18,6,31,.86) calc(var(--vt, 55vh) + 40px), rgba(18,6,31,.96) 100%);
  }
  .auth-logo { margin: 18px 22px 0; }
  .auth-claim { margin: 26px 22px auto; padding-bottom: 28px; }
  .auth-head { font-size: clamp(34px, 10vw, 52px); text-shadow: 0 1px 14px rgba(18,6,31,.55); }
  .auth-sub { display: none; }
  .auth-main { flex: none; justify-content: flex-end; background: transparent; padding: 0 22px calc(22px + env(safe-area-inset-bottom)); }
  .auth-lede, .auth-note, .auth-foot { color: rgba(242,237,227,.82); }
  .auth-alt { background: rgba(18,6,31,.55); box-shadow: inset 0 0 0 1px rgba(242,237,227,.34); }
  .auth-main .field input, .auth-main .field select { background: rgba(18,6,31,.78); }
  .auth-main > .talen { top: 19px; inset-inline-end: 22px; }
  .auth-main > .talen summary { color: rgba(242,237,227,.82); text-shadow: 0 1px 10px rgba(18,6,31,.6); }
  body.auth:has(.auth-error:not([hidden])) .auth-claim { display: none; }
}
@media (max-width: 860px) and (max-height: 620px) {
  .auth-claim { margin-top: 14px; padding-bottom: 16px; }
  .auth-head { font-size: 28px; }
  body.auth:has(.auth-mail[open]) .auth-claim { display: none; }
}

/* the site gives every <section> page padding; inside the app the layout does that itself */
.appmain section, .auth-step { padding: 0; }
/* the brand headline in Hebrew and Japanese, like the other headings of the site */
html[lang="he"] .auth-head { font-family: "Hebrew Display", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.1; }
html[lang="ja"] .auth-head { word-break: keep-all; overflow-wrap: anywhere; letter-spacing: 0; line-height: 1.2; font-size: clamp(30px, 3.6vw, 58px); }

/* email addresses and codes read left to right, also on a Hebrew page */
[dir="rtl"] :is(input[type="email"], input[inputmode="numeric"]) { direction: ltr; text-align: right; }
[dir="rtl"] .app-link code { direction: ltr; text-align: left; }

/* ---------- camp home and account ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: rgba(18,6,31,.92); border-bottom: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.appnav { display: flex; gap: 22px; }
.appnav a { color: var(--dim); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 0; }
.appnav a:hover, .appnav a.here { color: var(--text); }
.appnav a.here { box-shadow: inset 0 -2px 0 var(--fire); }
.appmain { padding: 48px var(--gutter) 90px; max-width: 1160px; margin: 0 auto; box-sizing: content-box; }
.app-wait { color: var(--dim); }
.app-top .display { margin-bottom: 10px; overflow-wrap: anywhere; }
.app-meta { margin: 0; color: var(--dim); font-size: 17px; max-width: 720px; }
.app-switch { max-width: 360px; margin-top: 22px; }
.app-sec { margin-top: 64px; }
.app-sec > .note { margin-bottom: 18px; }
.app-h3, .app-card h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.app-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--edge); max-width: 860px; }
.app-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.app-li-main { flex: 1 1 240px; min-width: 0; font-weight: 500; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.app-li-main .ic { vertical-align: -4px; margin-inline-end: 8px; }
.app-li-sub { font-weight: 400; color: var(--faint); font-size: 14px; }
.app-li-side { color: var(--dim); font-size: 14px; }
.app-li-acts { display: flex; align-items: center; gap: 14px; }
.app-li-acts select {
  background: var(--night); color: var(--text); border: 1px solid var(--edge); border-radius: 0; font: inherit; font-size: 14px; padding: 6px 8px;
}
.app-card { margin-top: 22px; max-width: 760px; padding: 22px; background: var(--bin); border: 1px solid var(--edge); display: grid; gap: 16px; justify-items: start; }
.app-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.app-result { width: 100%; padding-top: 14px; border-top: 1px solid var(--edge); display: grid; gap: 10px; justify-items: start; }
.app-result p { margin: 0; }
.app-link code { display: block; padding: 10px 12px; background: var(--night); border: 1px solid var(--edge); font-family: "Geist Mono", monospace; font-size: 13px; word-break: break-all; }
.app-small { margin: 0; font-size: 14px; color: var(--faint); }
.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.app-danger { margin-top: 28px; max-width: 760px; }
.app-danger summary { cursor: pointer; color: var(--dim); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; width: fit-content; }
.app-danger form { display: grid; gap: 14px; justify-items: start; margin-top: 16px; padding: 18px; border: 1px solid #5A2A33; }
.app-danger .field { width: min(100%, 420px); }
#camp-leave { margin-top: 28px; }
.app-rows { max-width: 980px; }
.appfoot { padding: 30px var(--gutter) 48px; border-top: 1px solid var(--edge); color: var(--dim); font-size: 14px; }
.appfoot > a { color: var(--dim); }
.appfoot .talen { margin-top: 14px; }

@media (max-width: 700px) {
  .appmain { padding-top: 32px; }
  .app-fields, .auth-two { grid-template-columns: 1fr; }
  .appnav { gap: 16px; }
  .app-card { padding: 18px; }
}

/* signing in and the app itself change into each other without a flash (the app pages opt in too, app-ui.css) */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) { @view-transition { navigation: auto; } }

/* the fields and buttons of signing in, in step with the camp app (app-ui.css): a clear box, a firm line when you are in
   it, a button that shows it is at work */
.auth-main .field input, .auth-main .field select { min-height: 50px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
.auth-main .field input:hover, .auth-main .field select:hover { border-color: #877E85; }
.auth-main .field input:focus, .auth-main .field select:focus { outline: none; border-color: var(--fire); box-shadow: inset 0 0 0 1px var(--fire); }
.auth-main .field input:user-invalid { border-color: #E8796B; box-shadow: inset 0 0 0 1px #E8796B; }
.btn { position: relative; overflow: hidden; touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, currentColor, transparent) 0 0 / 45% 100% no-repeat; animation: btn-busy .9s linear infinite; }
@keyframes btn-busy { from { background-position: -80% 0; } to { background-position: 180% 0; } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after { animation: none; background: currentColor; opacity: .5; } .btn:active { transform: none; } }

/* the button in the sign-in mail was tapped: while the server checks it the page only says that it signs you in */
.auth-linking .auth-quick, .auth-linking .auth-mail, .auth-linking .auth-foot { display: none; }
.auth-linking-note { font-size: 17px; color: var(--ink, #F2EDE3); overflow-wrap: anywhere; }
.auth-link { display: grid; gap: 14px; }
.auth-link[hidden] { display: none; }

/* joining a camp through its link: the questions of the camp are a part of the form of their own */
.jn-questions[hidden] { display: none; }
.auth .field textarea { min-height: 84px; resize: vertical; }
