/* rekapinaja — liquid theme wave, auth light theme, staggered entrance */

/* ---------- liquid wave (View Transitions) ---------- */
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(root){animation-duration:.38s}
html.rkw-switching *{transition:none!important}

/* ---------- auth: theme toggle ---------- */
.rkw-toggle{position:fixed;top:28px;right:190px;z-index:20;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;cursor:pointer;
  color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 10px 30px -14px rgba(0,0,0,.6);transition:transform .25s cubic-bezier(.3,1.6,.5,1),background-color .25s ease,border-color .25s ease;
  animation:rkw-pop .7s cubic-bezier(.2,.8,.2,1) .55s both}
.rkw-toggle:hover{transform:translateY(-2px) rotate(-8deg);background:rgba(255,255,255,.16)}
.rkw-toggle:active{transform:scale(.92)}
.rkw-toggle svg{grid-area:1/1;width:21px;height:21px;transition:transform .55s cubic-bezier(.5,1.6,.4,1),opacity .3s ease}
.rkw-toggle .rkw-sun{opacity:1;transform:none}
.rkw-toggle .rkw-moon{opacity:0;transform:rotate(-90deg) scale(.4)}
html.rk-light .rkw-toggle{color:#4c1d95;background:rgba(255,255,255,.75);border-color:rgba(76,29,149,.14);box-shadow:0 12px 30px -16px rgba(76,29,149,.45)}
html.rk-light .rkw-toggle .rkw-sun{opacity:0;transform:rotate(90deg) scale(.4)}
html.rk-light .rkw-toggle .rkw-moon{opacity:1;transform:none}

/* ---------- auth: modern light theme ---------- */
html.rk-light{--ink:#1c1233;--muted:rgba(40,24,70,.66);--line:rgba(40,24,70,.12);--glass:rgba(255,255,255,.62)}
html.rk-light body{color:var(--ink);background:
  radial-gradient(60% 55% at 0% 0%,rgba(244,114,182,.28),transparent 70%),
  radial-gradient(55% 60% at 100% 100%,rgba(167,139,250,.38),transparent 70%),
  linear-gradient(160deg,#fbf7ff 0%,#f3ecfd 45%,#ece3fb 100%) fixed}
html.rk-light .bg3d{opacity:.32;filter:saturate(1.2)}
html.rk-light .orbs i{opacity:.22}
html.rk-light .grain{opacity:.035}
html.rk-light .glass{background:rgba(255,255,255,.62);border-color:rgba(76,29,149,.12)}
html.rk-light .card{background:linear-gradient(160deg,rgba(255,255,255,.86),rgba(255,255,255,.66));border:1px solid rgba(255,255,255,.9);
  box-shadow:0 40px 90px -40px rgba(76,29,149,.45),0 0 0 1px rgba(76,29,149,.06)}
html.rk-light .tabs{background:rgba(76,29,149,.07)}
html.rk-light .tab{color:rgba(40,24,70,.6)}
html.rk-light .tab.on{color:#fff}
html.rk-light .form input{color:var(--ink);background:rgba(255,255,255,.8);border-color:rgba(76,29,149,.16)}
html.rk-light .form input::placeholder{color:rgba(40,24,70,.38)}
html.rk-light .form input:focus{background:#fff}
html.rk-light .eye{color:#4c1d95}
html.rk-light .meter{background:rgba(76,29,149,.1)}
html.rk-light .alert.err{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
html.rk-light .alert.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
html.rk-light .checks li{color:rgba(40,24,70,.72)}
html.rk-light .brand b{color:var(--ink)}
html.rk-light .peek img{filter:drop-shadow(0 16px 20px rgba(76,29,149,.3))}

/* ---------- auth: staggered "build-in" entrance ---------- */
.auth .brand{animation:rkw-slide .8s cubic-bezier(.2,.8,.2,1) both}
.auth .side h1{animation:rkw-up 1s cubic-bezier(.2,.8,.2,1) .12s both}
.auth .card{animation:rkw-card 1s cubic-bezier(.2,.8,.2,1) .2s both}
.auth .tabs{animation:rkw-up .7s cubic-bezier(.2,.8,.2,1) .45s both}
.auth .form > *{animation:rkw-up .6s cubic-bezier(.2,.8,.2,1) both}
.auth .form > :nth-child(1){animation-delay:.5s}.auth .form > :nth-child(2){animation-delay:.56s}
.auth .form > :nth-child(3){animation-delay:.62s}.auth .form > :nth-child(4){animation-delay:.68s}
.auth .form > :nth-child(5){animation-delay:.74s}.auth .form > :nth-child(6){animation-delay:.8s}
.auth .form > :nth-child(7){animation-delay:.86s}.auth .form > :nth-child(8){animation-delay:.92s}
.auth .peek{animation:rkw-peek 1s cubic-bezier(.3,1.5,.5,1) .9s both}
.auth .form .btn-primary{position:relative;overflow:hidden}
.auth .form .btn-primary::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);
  transform:translateX(-120%);animation:rkw-shine 3.2s ease-in-out 1.4s infinite}

/* ---------- dashboard entrance (first load) ---------- */
html.rkw-enter aside{animation:rkw-slide .8s cubic-bezier(.2,.8,.2,1) both}
html.rkw-enter main > div > *{animation:rkw-up .8s cubic-bezier(.2,.8,.2,1) .15s both}
html.rkw-enter main > div > * > *{animation:rkw-up .7s cubic-bezier(.2,.8,.2,1) both}
html.rkw-enter main > div > * > :nth-child(1){animation-delay:.2s}
html.rkw-enter main > div > * > :nth-child(2){animation-delay:.3s}
html.rkw-enter main > div > * > :nth-child(3){animation-delay:.4s}
html.rkw-enter main > div > * > :nth-child(4){animation-delay:.5s}
html.rkw-enter main > div > * > :nth-child(n+5){animation-delay:.6s}

@keyframes rkw-up{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes rkw-slide{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:none}}
@keyframes rkw-card{from{opacity:0;transform:translateY(46px) scale(.94);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes rkw-pop{from{opacity:0;transform:scale(.5) rotate(-40deg)}to{opacity:1;transform:none}}
@keyframes rkw-peek{from{opacity:0;transform:translateY(60px) scale(.6)}to{opacity:1;transform:none}}
@keyframes rkw-shine{0%,60%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
@media (max-width:960px){.rkw-toggle{top:22px;right:auto;left:18px}}
@media (prefers-reduced-motion:reduce){.auth *,html.rkw-enter *{animation:none!important}}
