/* Aura-inspired Golden Hour adaptation. Source: https://auragradients.vercel.app/ */
#loginGate {
  background-color:#0b1712;
  background-image:radial-gradient(ellipse at 23% 12%,#30482b,transparent 57%),radial-gradient(ellipse at 90% 92%,#58401f,transparent 55%);
  overflow-y:auto;
  padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));
}
#loginGate .modal { margin:auto; }
#loginGate .sekta-login-brand { display:grid;justify-items:center;gap:10px;margin-bottom:20px;text-align:center; }
.sekta-login-symbol { position:relative;width:104px;height:104px;display:grid;place-items:center;border-radius:26px;background:linear-gradient(155deg,#274837,#101e17 68%,#48391f);box-shadow:inset 0 1px 0 #ffffff36,0 8px 18px #071c1840; }
.sekta-login-symbol img { width:73px;height:73px;object-fit:contain; }
.sekta-login-word { font-family:Georgia,serif;letter-spacing:.28em;padding-inline-start:.28em;font-size:22px;line-height:1.1; }
@supports (mask-image:url("../icons/sekta-mark.png")) {
  .sekta-login-symbol::after { content:"";position:absolute;inset:15px;background:linear-gradient(135deg,#fafff4 22%,#d6edc4 46%,#e6c58a 57%,#fafff4 77%);background-size:250% 250%;mask:url("../icons/sekta-mark.png") center / contain no-repeat; }
  .sekta-login-symbol img { opacity:0; }
}
@media(prefers-reduced-motion:no-preference) {
  #loginGate .sekta-login-symbol::after {animation:sekta-fill 460ms ease-out both;}
  #loginGate .sekta-login-word {animation:sekta-reveal 220ms ease-out 160ms both;}
  #loginGate .modal > :not(.sekta-login-brand) {animation:sekta-reveal 200ms ease-out 300ms both;}
  #loginGate .modal:focus-within > :not(.sekta-login-brand) {animation:none;}
}
@keyframes sekta-fill {from{clip-path:inset(100% 0 0);background-position:100% 100%;}to{clip-path:inset(0);background-position:0 0;}}
@keyframes sekta-reveal {from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
@media(max-width:650px){#loginGate input{font-size:16px;}}


/* Independent of the sign-in gate so session restore cannot cut the intro short. */
body > .sekta-intro {
  position:fixed;inset:0;z-index:2147483000;display:grid;place-content:center;justify-items:center;gap:20px;
  background:#0b1712 radial-gradient(ellipse at 34% 26%,#30482b,transparent 68%);
  color:#f5f7e9;
}
body > .sekta-intro[hidden] {display:none;}
body > .sekta-intro:not([hidden]) {animation:sekta-intro-exit 420ms ease 3.08s both;}
body:has(> .sekta-intro:not([hidden])) #loginGate .modal {visibility:hidden;}
body > .sekta-intro .sekta-login-symbol {width:clamp(120px,36vw,180px);height:auto;aspect-ratio:1;background:none;box-shadow:none;}
body > .sekta-intro img {width:84%;height:auto;}
body > .sekta-intro .sekta-login-symbol::after {animation:sekta-fill 1.95s cubic-bezier(.32,.05,.24,1) both;}
body > .sekta-intro .sekta-login-word {font-weight:400;font-size:clamp(24px,6vw,36px);animation:sekta-reveal 650ms ease-out 1.65s both;}
#loginGate .modal .sekta-login-word,#loginGate .modal .sekta-login-symbol::after,
#loginGate .modal > :not(.sekta-login-brand) {animation:none;}
@keyframes sekta-intro-exit {from{opacity:1;}to{opacity:0;}}
