/* Auth door. Scoped to the guest gate so the ack page keeps the old stage. */

body.stage:has(.gate){
  display:block;
  padding:0;
  background:#000;
  overflow-x:hidden;
}
body.stage:has(.gate) main{
  width:100%;
  max-width:none;
  min-height:100vh;
  min-height:100dvh;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
body.stage:has(.gate) .stage-home{display:none}
body.stage:has(.gate) .flash{
  margin:16px 16px 0;
  border-radius:14px;
  position:relative;
  z-index:1;
}

.gate{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
  position:relative;
}

.gate-story{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:36px;
  padding:28px 22px 26px;
  background:
    radial-gradient(28rem 22rem at 18% 36%,rgba(230,168,92,.2),transparent 68%),
    #000;
  overflow:hidden;
}
.gate-story::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(236,238,244,.11) 1px,transparent 1px);
  background-size:22px 22px;
  mask-image:radial-gradient(ellipse 80% 70% at 30% 42%,#000 15%,transparent 74%);
}
.gate-sculpture{
  position:relative;
  z-index:1;
  width:min(22rem,78%);
  height:auto;
  margin:12px 0;
  align-self:flex-start;
  opacity:.8;
  filter:brightness(2.1) contrast(1.05) drop-shadow(0 24px 40px rgba(230,168,92,.18));
  pointer-events:none;
  user-select:none;
}
.gate-copy,.gate-aside{position:relative;z-index:1}

.gate-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin:0 0 28px;
  color:var(--text);
}
.gate-brand:hover{text-decoration:none}
.gate-brand .mark{width:36px;height:36px}
.gate-brand .word{width:8.6rem;height:auto}

.gate-line{
  margin:0;
  max-width:26rem;
  font:400 1.2rem/1.45 var(--display);
  color:var(--mist);
  text-wrap:pretty;
}
.gate-line.poster{
  max-width:12em;
  font:325 clamp(2.05rem,4.6vw,3.35rem)/1.06 var(--display);
  letter-spacing:-.03em;
  color:var(--text);
}
.gate-story .honest{
  max-width:26rem;
  margin:14px 0 0;
  font-size:15px;
  line-height:1.5;
}

.gate-aside{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.gate-facts{
  list-style:none;
  margin:0;
  padding:0;
  max-width:28rem;
}
.gate-facts li{
  display:grid;
  grid-template-columns:8.6rem minmax(0,1fr);
  gap:14px;
  align-items:baseline;
  padding:11px 0;
  border-top:1px solid rgba(232,234,242,.1);
  color:var(--mist);
  font-size:13.5px;
}
.gate-facts li:last-child{border-bottom:1px solid rgba(232,234,242,.1)}
.gate-facts strong{
  font-weight:550;
  color:var(--text);
}
.gate-facts strong::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:8px;
  border-radius:50%;
  background:var(--ember);
  box-shadow:0 0 0 3px var(--ember-soft);
  vertical-align:1px;
}
.gate-home{
  font:500 .68rem/1 var(--mono);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--mute);
}
.gate-home:hover{color:var(--ember);text-decoration:none}

.gate .auth{
  background:#07080b;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:8px 22px 36px;
}
.gate-form{width:min(23rem,100%);margin:0 auto}
.gate-card h1{
  text-align:left;
  font:325 1.85rem/1.1 var(--display);
  letter-spacing:-.02em;
  margin:0 0 20px;
}
.gate-card form>label:first-of-type{margin-top:4px}
.gate-card input:not([type=checkbox]):not([type=hidden]){
  min-height:48px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(0,0,0,.45);
}
.gate-card input.code{
  font:500 1.35rem/1 var(--mono);
  letter-spacing:.32em;
  text-align:center;
  padding-left:calc(14px + .32em);
}
.gate-card .row{margin-top:16px}
.gate-card .row a{font-size:13px;white-space:nowrap}
.gate-card label.check{margin:0;font-size:13.5px;color:var(--mist)}
.gate-card .field-err{
  margin:6px 0 0;
}
.gate-card .turnstile{
  margin-top:16px;
  min-height:1px;
  position:relative;
  z-index:0;
}
.gate-card .turnstile:empty{display:none}
.gate-card button.primary{
  min-height:48px;
  margin-top:18px;
  border-radius:12px;
  font-size:15px;
}
.gate-card a.tidalux{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  margin-top:12px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:transparent;
  color:var(--text);
  font-size:15px;
  font-weight:600;
  text-decoration:none;
}
.gate-card a.tidalux:hover{color:var(--text);border-color:var(--mist)}
.consent{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:18px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:var(--mist);
  font-weight:400;
  line-height:1.45;
}
.consent input{margin-top:3px;flex:0 0 auto}

.passkey-slot:has(button.passkey:not([hidden])){
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.gate-card button.passkey{
  width:100%;
  min-height:48px;
  margin-top:0;
  padding:12px 16px;
  background:transparent;
  box-shadow:none;
  color:var(--mist);
}
.gate-card button.passkey:hover{color:var(--text)}

.gate-links{
  display:flex;
  justify-content:space-between;
  gap:12px 16px;
  flex-wrap:wrap;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.gate-links p{margin:0;color:var(--mute);font-size:13.5px}

@media (min-width:60em){
  .gate{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(24rem,34rem);
    min-height:100vh;
    min-height:100dvh;
  }
  .gate-story{padding:clamp(36px,5vh,72px) clamp(40px,5vw,80px);min-height:100dvh}
  .gate .auth{
    border-left:1px solid rgba(232,234,242,.1);
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    justify-content:safe center;
    padding:48px 44px;
  }
  body.stage:has(.gate) main{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(24rem,34rem);
    grid-template-rows:auto auto 1fr;
    align-content:start;
    min-height:100vh;
    min-height:100dvh;
  }
  body.stage:has(.gate) .gate{
    grid-column:1 / -1;
    grid-row:1 / -1;
  }
  body.stage:has(.gate) main>.flash:first-of-type{
    grid-column:2;
    grid-row:1;
    align-self:start;
    justify-self:stretch;
    z-index:4;
    width:auto;
    max-width:min(23rem,calc(100% - 88px));
    margin:16px 44px 0;
  }
  body.stage:has(.gate) main>.flash:nth-of-type(2){
    grid-column:2;
    grid-row:2;
    align-self:start;
    justify-self:stretch;
    z-index:4;
    width:auto;
    max-width:min(23rem,calc(100% - 88px));
    margin:8px 44px 0;
  }
}
@media (max-width:59.99em){
  .gate-sculpture{display:none}
  .gate-story{gap:28px}
  .gate-brand{margin-bottom:20px}
}
@media (max-width:40em){
  .gate-facts li{grid-template-columns:1fr;gap:2px}
  .gate-line.poster{font-size:1.85rem}
  .gate-card h1{font-size:1.65rem}
}
