/* Witsanu System — additive animated UI layer, 2026-11-18.
   Scoped to ws-enhanced; does not change route, layout, or application data. */
:root { --ws-glow-a:#38bdf8; --ws-glow-b:#8b5cf6; --ws-glow-c:#2dd4bf; }
html { scroll-behavior:smooth; }
body.ws-enhanced { -webkit-font-smoothing:antialiased; }
body.ws-enhanced::before {
 content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
 background:radial-gradient(ellipse 28vw 28vw at 7% 16%,rgba(56,189,248,.065),transparent 75%),
 radial-gradient(ellipse 30vw 30vw at 94% 74%,rgba(139,92,246,.07),transparent 76%);
}
/* Leave header, footer and all navigation clicks unaltered. */
body.ws-enhanced nav,body.ws-enhanced header,body.ws-enhanced footer { isolation:isolate; }
body.ws-enhanced .ws-motion-card { position:relative;isolation:isolate;backface-visibility:hidden;
 transition: transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s ease,border-color .32s ease;
 will-change:auto; }
body.ws-enhanced .ws-motion-card:hover { transform:translateY(-4px);
 box-shadow:0 17px 45px rgba(15,23,42,.15),0 0 25px rgba(56,189,248,.085); }
body.ws-enhanced .ws-motion-card:focus-within { outline:2px solid rgba(56,189,248,.5);outline-offset:3px; }
body.ws-enhanced .ws-motion-card::after { content:"";position:absolute;inset:-1px;border-radius:inherit;
 pointer-events:none;opacity:0;transition:opacity .35s ease;z-index:-1;
 background:linear-gradient(120deg,rgba(56,189,248,.26),rgba(139,92,246,.18),rgba(45,212,191,.24));filter:blur(12px); }
body.ws-enhanced .ws-motion-card:hover::after { opacity:.8; }
body.ws-enhanced .ws-card-enter { animation:ws-card-rise .55s both cubic-bezier(.18,.8,.25,1); }
@keyframes ws-card-rise { from { opacity:.82;transform:translateY(14px) scale(.992); } to { opacity:1;transform:translateY(0) scale(1); } }
/* Animated gradient rim on the EXISTING login container; no replacement form. */
body.ws-enhanced .login-card { position:relative;isolation:isolate;overflow:hidden;
 box-shadow:0 28px 95px rgba(0,0,0,.52),0 0 32px rgba(59,130,246,.13); }
body.ws-enhanced .login-card::before { content:"";position:absolute;z-index:0;inset:0;border-radius:inherit;
 background:conic-gradient(from var(--ws-angle,0deg),#38bdf8,#818cf8,#a78bfa,#2dd4bf,#38bdf8);
 animation:ws-border-spin 8s linear infinite;pointer-events:none; }
body.ws-enhanced .login-card::after { content:"";position:absolute;z-index:0;inset:2px;border-radius:inherit;
 background:linear-gradient(145deg,rgba(15,23,42,.985),rgba(17,24,53,.97));pointer-events:none; }
body.ws-enhanced .login-card > * {position:relative;z-index:1;}
@property --ws-angle { syntax:'<angle>';initial-value:0deg;inherits:false; }
@keyframes ws-border-spin { to {--ws-angle:360deg;} }
body.ws-enhanced .login-card { animation:ws-login-open .65s cubic-bezier(.16,1,.3,1) both; }
@keyframes ws-login-open { from {transform:perspective(900px) translateY(22px) rotateX(-5deg) scale(.96);opacity:.3;} to {transform:perspective(900px) translateY(0) rotateX(0) scale(1);opacity:1;} }
body.ws-enhanced .login-card input:not([type=hidden]):focus {outline:0;box-shadow:0 0 0 3px rgba(56,189,248,.22);}
body.ws-enhanced .login-card button[type=submit] {transition:transform .2s,box-shadow .25s,filter .25s;}
body.ws-enhanced .login-card button[type=submit]:hover { transform:translateY(-2px);box-shadow:0 10px 32px rgba(59,130,246,.3); }
/* Polished controls, preserving original widths, sizes and background themes. */
body.ws-enhanced :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea):focus-visible {
 outline:2px solid rgba(56,189,248,.72);outline-offset:2px;transition:border-color .2s,box-shadow .2s; }
body.ws-enhanced :is(button,a,[role=button]):focus-visible { outline:2px solid #38bdf8;outline-offset:3px; }
body.ws-enhanced button, body.ws-enhanced [type=submit] { transition:filter .2s ease,transform .2s ease,box-shadow .2s ease; }
body.ws-enhanced button:not(:disabled):hover,body.ws-enhanced [type=submit]:not(:disabled):hover { filter:brightness(1.07); }
/* Standalone SEO form uses its original semantic layout; improved surface contrast. */
body.ws-enhanced.ws-seo-page {background:linear-gradient(140deg,#0b1226,#111b36 60%,#14233e);color:#e2e8f0;}
body.ws-enhanced.ws-seo-page section {background:#14223c;border-color:#344666;box-shadow:0 16px 45px rgba(0,0,0,.24);}
body.ws-enhanced.ws-seo-page small {color:#bac9db;}
body.ws-enhanced.ws-seo-page a {color:#7dd3fc;}
body.ws-enhanced.ws-seo-page :is(input:not([type=checkbox]),textarea) {background:#0c172d;color:#f1f5f9;border-color:#49617c;}
body.ws-enhanced.ws-seo-page .preview {border-color:#49617c;}
body.ws-enhanced.ws-seo-page .preview strong {color:#93c5fd;}
body.ws-enhanced.ws-seo-page .notice {background:#103f39;color:#c9f7e8;}
body.ws-enhanced.ws-seo-page .notice.error {background:#572231;color:#ffe4e6;}
@media(max-width:640px){body.ws-enhanced .ws-motion-card:hover{transform:none}body.ws-enhanced .login-card{border-radius:1.35rem}body.ws-enhanced.ws-seo-page main{padding:16px}body.ws-enhanced.ws-seo-page section{padding:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.ws-enhanced .login-card,body.ws-enhanced .login-card::before,body.ws-enhanced .ws-card-enter{animation:none!important}body.ws-enhanced .ws-motion-card,body.ws-enhanced button{transition:none!important}body.ws-enhanced .ws-motion-card:hover{transform:none}}
