/* login and register pages */
.auth-body{background:var(--bg)}
.auth{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;overflow:hidden;isolation:isolate}
.auth-bg{position:absolute;inset:-3%;z-index:-3;background-image:var(--art,url(assets/art-2048.webp));background-size:cover;background-position:50% 12%;animation:authdrift 30s ease-in-out infinite alternate}
@keyframes authdrift{from{transform:scale(1)}to{transform:scale(1.05) translate(.8%,-.6%)}}
.auth-shade{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse 46% 80% at 50% 52%,#04070ee0 40%,#04070e70 72%,#04070e30 100%),linear-gradient(#04070ecc,#04070e22 22%,#04070e22 70%,#04070ed0)}
.auth .sky{z-index:-1;-webkit-mask:none;mask:none}
.auth-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px clamp(16px,4vw,56px);padding-top:max(16px,env(safe-area-inset-top))}
.auth-brand{display:flex;align-items:center;min-height:44px;width:clamp(150px,16vw,220px)}
.auth-brand img{width:100%;height:auto;filter:drop-shadow(0 0 8px #6fc8ff55)}
.auth-top .hex{--h:42px;font-size:13px}
.auth-top .hex>span{padding:0 calc(var(--c) + .2em)}
.auth-main{flex:1;display:flex;align-items:center;justify-content:center;padding:12px 16px 24px}
.auth-panel{--cut:22px;width:min(100%,470px);padding:40px 42px 30px;text-align:center;animation:rise .9s .1s cubic-bezier(.2,.8,.2,1) backwards}
.auth-panel:hover{translate:none;filter:none}
.auth-panel:hover::before{background-position:0 0}
.auth-panel::after{background:linear-gradient(165deg,#0e1a31f8,#060b17fb 55%,#080f20f8)}
.auth-panel>*:not(.orn){position:relative;z-index:1}
.auth-panel h1{font:500 clamp(28px,3.4vw,38px)/1.15 var(--display);letter-spacing:.03em;background:linear-gradient(#fff 30%,#9dbfe6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;outline:0}
.auth-panel .rule{width:min(240px,70%);margin:18px auto 24px}
.auth-form{display:grid;gap:15px;text-align:left}
.field{display:grid;gap:5px}
.field>label:not(.check){font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#c9d6e6}
.control{--k:9px;position:relative;padding:1px;background:linear-gradient(135deg,#a97c34,#3a4f70 45%,#a97c34);clip-path:polygon(var(--k) 0,calc(100% - var(--k)) 0,100% var(--k),100% calc(100% - var(--k)),calc(100% - var(--k)) 100%,var(--k) 100%,0 calc(100% - var(--k)),0 var(--k));transition:background .25s}
.control:hover{background:linear-gradient(135deg,#ffe6ad,#5c7bac 45%,#ffe6ad)}
.control:focus-within{background:linear-gradient(135deg,#9fe0ff,#2a8cff 50%,#9fe0ff)}
.field:focus-within .control{box-shadow:none}
.field:has(input:focus){filter:drop-shadow(0 0 7px #2a8cffaa)}
.control input{display:block;width:100%;height:46px;padding:0 15px;border:0;outline:0;color:#f1f6fc;font:400 16px/1.2 var(--label);background:linear-gradient(#070d1b,#0b1426);clip-path:polygon(calc(var(--k) - 1px) 0,calc(100% - var(--k) + 1px) 0,100% calc(var(--k) - 1px),100% calc(100% - var(--k) + 1px),calc(100% - var(--k) + 1px) 100%,calc(var(--k) - 1px) 100%,0 calc(100% - var(--k) + 1px),0 calc(var(--k) - 1px))}
.control input:-webkit-autofill{-webkit-text-fill-color:#f1f6fc;box-shadow:inset 0 0 0 60px #0b1426;caret-color:#fff}
.control.has-eye input{padding-right:50px}
.eye{position:absolute;right:3px;top:50%;width:44px;height:44px;margin-top:-22px;display:grid;place-items:center;border:0;background:none;color:#aebccf;cursor:pointer;transition:color .2s}
.eye:hover,.eye[aria-pressed=true]{color:#f8e0a6}
.eye svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}
.eye[aria-pressed=true]::after{content:"";position:absolute;width:24px;height:1.5px;background:currentColor;rotate:-45deg}
.field.bad .control{background:linear-gradient(135deg,#ff8a7a,#a33a2c 50%,#ff8a7a)}
.hint{font-size:13.5px;color:#a9b8cc}
.err{font-size:14px;line-height:1.35;color:#ffa99c}
.err:empty{display:none}
.field.bad .hint{display:none}
.meter{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:-7px}
.meter i{height:4px;background:#ffffff14;transition:background .25s}
.meter[data-s="1"] i:nth-child(-n+1){background:#ff8a7a}
.meter[data-s="2"] i:nth-child(-n+2){background:#e8c27a}
.meter[data-s="3"] i:nth-child(-n+3){background:#6fc8ff}
.meter[data-s="4"] i{background:#7fe0a8}
.auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.check{position:relative;display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.4;color:#d3deec;cursor:pointer;min-height:24px;padding:2px 0}
.check input{position:absolute;left:0;top:2px;width:22px;height:22px;margin:0;opacity:0;cursor:pointer}
.check i{flex:none;position:relative;width:20px;height:20px;margin:1px;border:1px solid #a97c34;background:#070d1b;rotate:45deg;scale:.8;transition:box-shadow .2s,background .2s}
.check input:checked+i{background:linear-gradient(135deg,#ffeabb,#a9772e)}
.check input:focus-visible+i{outline:2px solid var(--cyan);outline-offset:3px}
.check:hover i{box-shadow:0 0 10px #e8c27a88}
.auth-link{color:#f3d9a0;text-decoration:underline;text-decoration-color:#e8c27a66;text-underline-offset:3px;transition:color .2s}
.auth-link:hover{color:#fff}
.auth-status{font-size:14.5px;line-height:1.4;text-align:center;color:#bfe6ff}
.auth-status:empty{display:none}
.auth-form .hex.big{width:100%;min-width:0;margin-top:4px;border:0;padding:0;background:none;cursor:pointer;--h:56px}
.auth-form .hex.big>span{font:600 15px/1 var(--label);letter-spacing:.12em;text-transform:uppercase;width:100%;padding:0 calc(var(--c) + .4em)}
.auth-switch{margin-top:20px;font-size:15.5px;color:#c9d6e6}
.auth-note{margin-top:14px;padding-top:12px;border-top:1px solid #e8c27a22;font-size:13.5px;line-height:1.45;color:#a9b8cc}
.auth-foot{padding:0 16px 18px;text-align:center;font-size:13px;color:#a9b8cc;text-shadow:0 1px 4px #000}
@media (max-width:900px){
  .auth-bg{background-position:30% 0}
  .auth-shade{background:linear-gradient(#04070e99,#04070ec8 26%,#04070ee8 60%,#04070ef5)}
  .auth-main{padding:12px 16px 20px}
}
@media (max-width:440px){
  .auth-panel{--cut:16px;padding:32px 22px 24px}
}
/* the single-file preview shows these pages as a full-screen view */
.auth-view{position:fixed;inset:0;z-index:80;overflow:auto;background:var(--bg)}
.auth-view[hidden]{display:none}
.auth-view .auth{display:none}
.auth-view .auth.show{display:flex}
/* laptops: keep the whole form on screen */
@media (min-width:901px) and (max-height:1000px){
  .auth-top{padding-top:10px;padding-bottom:6px}
  .auth-main{padding-top:4px;padding-bottom:8px}
  .auth-panel{padding:24px 36px 18px}
  .auth-panel .eyebrow{margin-bottom:4px}
  .auth-panel h1{font-size:30px}
  .auth-panel .rule{margin:12px auto 14px}
  .auth-form{gap:9px}
  .field{gap:3px}
  .control input{height:42px}
  .eye{width:42px;height:42px;margin-top:-21px}
  .hint{font-size:13px}
  .meter{margin-top:-3px}
  .auth-form .hex.big{--h:50px}
  .auth-switch{margin-top:12px}
  .auth-note{margin-top:9px;padding-top:9px}
  .auth-foot{padding-bottom:10px}
}
