/* Team access: a small entry point and a glass panel over the poster. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  padding: 16px 18px;
}
.topbar .who {
  color: #c9c2b2; font-size: 13px; letter-spacing: 0.04em;
  max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn {
  font: inherit; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(233, 228, 216, 0.8); background: transparent;
  border: 1px solid rgba(233, 228, 216, 0.22); border-radius: 999px;
  padding: 10px 14px 10px 18px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover {
  color: #ffd9a0; border-color: rgba(232, 160, 74, 0.7);
  box-shadow: 0 0 24px rgba(232, 160, 74, 0.25);
}
.btn:focus-visible, .field input:focus-visible, .linkbtn:focus-visible, .close:focus-visible {
  outline: 1px solid #e8a04a; outline-offset: 3px;
}

dialog.auth {
  width: min(90vw, 370px); padding: 0; overflow: visible;
  color: #e9e4d8; text-align: center;
  background: linear-gradient(180deg, rgba(14, 24, 52, 0.62), rgba(4, 9, 24, 0.72));
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(232, 160, 74, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
dialog.auth[open] { animation: panel 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
dialog.auth::backdrop {
  background: rgba(0, 3, 12, 0.28);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: veil 0.4s ease-out both;
}
.auth-inner { position: relative; padding: 34px 28px 26px; }

/* The eclipse arc from the poster, drawn in light when the panel opens. */
.arc { display: block; width: 84px; height: 46px; margin: 0 auto 16px; overflow: visible; }
.arc path {
  fill: none; stroke: url(#arc-light); stroke-width: 1.6; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 170, 80, 0.9));
  stroke-dasharray: 130; stroke-dashoffset: 130;
}
dialog.auth[open] .arc path { animation: draw 1.3s 0.15s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }

.auth-inner h2 {
  outline: none;
  margin: 0 0 28px; padding-left: 0.5em;
  font-size: 12px; font-weight: 400; letter-spacing: 0.5em; text-transform: uppercase; color: #f4efe4;
}
.close {
  position: absolute; top: 12px; right: 14px;
  font: inherit; font-size: 20px; font-weight: 200; line-height: 1; color: rgba(233, 228, 216, 0.45);
  background: none; border: 0; padding: 6px 9px; cursor: pointer; border-radius: 50%;
  transition: color 0.2s;
}
.close:hover { color: #e9e4d8; }

/* Fields are a single line of light. */
.field { display: block; margin-bottom: 20px; text-align: left; }
.field span {
  display: block; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(233, 228, 216, 0.5); transition: color 0.25s;
}
.field input {
  width: 100%; font: inherit; font-size: 16px; letter-spacing: 0.02em; color: #f4efe4;
  background: transparent; border: 0; border-bottom: 1px solid rgba(233, 228, 216, 0.2);
  border-radius: 0; padding: 9px 0 10px; caret-color: #e8a04a;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus {
  outline: none; border-bottom-color: #e8a04a;
  box-shadow: 0 1px 0 #e8a04a, 0 12px 18px -14px rgba(232, 160, 74, 0.9);
}
.field:focus-within span { color: #e8a04a; }
/* Browsers paint saved logins with a pale yellow fill that hides the light text.
   The fill itself cannot be restyled, so cover it with an inset shadow in the panel's colour. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:autofill {
  -webkit-text-fill-color: #f4efe4; caret-color: #e8a04a;
  -webkit-box-shadow: 0 0 0 100px #0a1330 inset;
  box-shadow: 0 0 0 100px #0a1330 inset;
  border-bottom-color: rgba(232, 160, 74, 0.6);
  transition: background-color 9999s ease-out;
}
.hint { margin: -10px 0 18px; font-size: 11px; letter-spacing: 0.06em; color: rgba(233, 228, 216, 0.45); text-align: left; }

.btn.primary {
  position: relative; overflow: hidden;
  width: 100%; margin-top: 8px; padding: 15px 18px 15px 22px;
  font-size: 11px; letter-spacing: 0.5em; color: #ffd9a0;
  background: rgba(232, 160, 74, 0.06); border: 1px solid rgba(232, 160, 74, 0.65);
}
.btn.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 170, 0.35), transparent);
  transform: skewX(-20deg); animation: sweep 4.5s 1.2s ease-in-out infinite;
}
.btn.primary:hover {
  color: #050a18; background: #e8a04a; border-color: #e8a04a;
  box-shadow: 0 0 34px rgba(232, 160, 74, 0.5);
}
.btn.primary[disabled] { opacity: 0.5; cursor: wait; }

.social-list { display: grid; gap: 10px; }
.btn.social {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 16px;
  font-size: 11px; letter-spacing: 0.3em;
}
.btn.social svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.or {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 20px;
  font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(233, 228, 216, 0.35);
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(233, 228, 216, 0.12); }

.msg { min-height: 18px; margin: 14px 0 0; font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; }
.msg.error { color: #ff9a8a; }
.msg.ok { color: #9fd6a8; }
.linkrow { margin-top: 10px; }
.linkbtn {
  font: inherit; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(233, 228, 216, 0.45); background: none; border: 0; cursor: pointer; padding: 6px;
  transition: color 0.2s;
}
.linkbtn:hover { color: #ffd9a0; }
[hidden] { display: none !important; }

@keyframes panel { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sweep { 0% { left: -40%; } 35%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  dialog.auth[open], dialog.auth::backdrop, .btn.primary::after { animation: none; }
  dialog.auth[open] .arc path { animation: none; stroke-dashoffset: 0; }
}
