/* Страницы входа: фон, иллюстрация, форма */
body.auth{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;overflow-x:hidden;position:relative}
.auth-bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.auth-bg::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(47,123,229,.16) 1px,transparent 1.3px);background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 45%,#000 30%,transparent 80%);mask-image:radial-gradient(ellipse 70% 60% at 50% 45%,#000 30%,transparent 80%)}
.blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;animation:blob 22s ease-in-out infinite alternate}
.blob.b1{width:520px;height:520px;background:#2fbf8f;left:-140px;top:-120px}
.blob.b2{width:560px;height:560px;background:#2f7be5;right:-180px;bottom:-200px;animation-delay:-8s}
.blob.b3{width:340px;height:340px;background:#7c5cff;right:18%;top:-140px;opacity:.28;animation-delay:-14s}
@keyframes blob{0%{transform:translate(0,0) scale(1)}50%{transform:translate(60px,40px) scale(1.12)}100%{transform:translate(-30px,70px) scale(.95)}}

.auth-wrap{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 16px}
.auth-card{width:100%;max-width:980px;display:grid;grid-template-columns:1.08fr 1fr;border-radius:22px;overflow:hidden;
  background:var(--panel);box-shadow:0 30px 80px -20px rgba(16,24,40,.28),0 0 0 1px var(--line)}

/* левая часть — иллюстрация */
.auth-hero{position:relative;padding:34px 36px 36px;color:#fff;overflow:hidden;
  background:radial-gradient(120% 90% at 0% 0%,#22c997 0%,transparent 55%),radial-gradient(110% 90% at 100% 100%,#2f7be5 0%,transparent 60%),linear-gradient(150deg,#0f5e57,#123e78)}
.auth-hero::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:32px 32px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 85%);mask-image:linear-gradient(180deg,#000,transparent 85%);pointer-events:none}
.hero-top{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:6px 12px;border-radius:20px;background:rgba(255,255,255,.12);backdrop-filter:blur(6px)}
.hero-dot{width:7px;height:7px;border-radius:50%;background:#7cf3c8;box-shadow:0 0 0 0 rgba(124,243,200,.7);animation:ping 2s infinite}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(124,243,200,.6)}100%{box-shadow:0 0 0 10px rgba(124,243,200,0)}}
.hero-art{position:relative;z-index:1;margin:18px -10px 6px}
.net{display:block;width:100%;height:auto}
.net .links path.faint{stroke:rgba(255,255,255,.12);stroke-dasharray:3 6}
.net .links path:not(.faint){stroke-dasharray:6 7;animation:dash 6s linear infinite}
@keyframes dash{to{stroke-dashoffset:-130}}
.net .packets circle{fill:#7cf3c8;filter:drop-shadow(0 0 5px #7cf3c8)}
.net .nodes circle{fill:#fff;stroke:rgba(255,255,255,.35);stroke-width:6;paint-order:stroke}
.net .rings circle{fill:none;stroke:rgba(255,255,255,.5);stroke-width:1.2;transform-origin:240px 190px;animation:ring 3.6s ease-out infinite}
.net .rings circle:nth-child(2){animation-delay:1.2s}.net .rings circle:nth-child(3){animation-delay:2.4s}
@keyframes ring{0%{transform:scale(.8);opacity:.9}100%{transform:scale(3.4);opacity:0}}
.net .hub>circle:first-child{fill:#fff;filter:drop-shadow(0 6px 18px rgba(0,0,0,.25))}
.net .hub path{stroke:#1a8f68}.net .hub .hub-dot{fill:#1a8f68}
.chip{position:absolute;display:inline-flex;align-items:center;gap:4px;padding:8px 10px;border-radius:12px;font-weight:700;font-size:13px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(0,0,0,.15);animation:float 6s ease-in-out infinite}
.chip svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.chip.c1{left:4%;top:42%}.chip.c2{right:3%;top:8%;animation-delay:-1.5s}.chip.c3{right:6%;bottom:6%;animation-delay:-3s}.chip.c4{left:30%;top:-2%;animation-delay:-4.5s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.auth-hero h2{position:relative;z-index:1;margin:6px 0 14px;font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.01em}
.hero-list{position:relative;z-index:1;list-style:none;margin:0;padding:0;display:grid;gap:9px;font-size:13.5px;color:rgba(255,255,255,.88)}
.hero-list li{display:flex;align-items:center;gap:10px}
.hero-list svg{flex:none;width:20px;height:20px;padding:3px;border-radius:50%;background:rgba(255,255,255,.16);stroke:#7cf3c8;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* правая часть — форма */
.auth-form{position:relative;padding:40px 40px 34px;display:flex;flex-direction:column;justify-content:center}
.auth-form .lang-sw{position:absolute;top:16px;right:16px;margin:0}
.auth-form .login-logo{max-width:230px;margin:0 auto 22px}
.auth-form h1{margin:0;font-size:22px;font-weight:700;text-align:center;letter-spacing:-.01em}
.auth-sub{margin:6px 0 22px;text-align:center;color:var(--muted);font-size:13.5px;line-height:1.5}
.auth-field{position:relative;margin-bottom:14px}
.auth-field label{display:block;font-size:12.5px;font-weight:500;margin:0 0 6px;color:var(--text)}
.auth-field .ic{position:absolute;left:12px;bottom:12px;width:18px;height:18px;stroke:var(--faint);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:stroke .15s}
.auth-field input{width:100%;box-sizing:border-box;height:44px;padding:0 42px 0 40px !important;border-radius:11px !important;font-size:14.5px;background:var(--input-bg);border:1px solid var(--input-line)}
.auth-field input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);outline:none}
.auth-field:focus-within .ic{stroke:var(--accent)}
.pw-eye{position:absolute;right:6px;bottom:6px;width:32px;height:32px;display:grid;place-items:center;border:0;background:none;border-radius:8px;cursor:pointer;color:var(--faint)}
.pw-eye:hover{color:var(--text);background:var(--hover)}
.pw-eye svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-btn{width:100%;height:46px;margin-top:8px;border:0;border-radius:11px;cursor:pointer;color:#fff;font:inherit;font-weight:600;font-size:15px;
  background:linear-gradient(135deg,#2fbf8f,#2f7be5);background-size:150% 150%;box-shadow:0 10px 24px -8px rgba(47,123,229,.6);transition:transform .12s,box-shadow .12s,background-position .4s;display:flex;align-items:center;justify-content:center;gap:8px}
.auth-btn:hover{background-position:100% 0;box-shadow:0 14px 30px -8px rgba(47,123,229,.7)}
.auth-btn:active{transform:translateY(1px)}
.auth-btn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.auth-btn:hover svg{transform:translateX(3px)}
.auth-form .msg{margin-bottom:14px;border-radius:10px}
.auth-note{margin:16px 0 0;text-align:center;font-size:12.5px;color:var(--muted);line-height:1.55}
.auth-secure{margin-top:18px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11.5px;color:var(--faint)}
.auth-secure svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
.auth-wrap .login-credit{margin-top:18px}
.code-input input{text-align:center;font-size:24px !important;letter-spacing:.35em;padding:0 12px !important;height:54px}

html[data-scheme="dark"] .auth-card{box-shadow:0 30px 80px -20px rgba(0,0,0,.6),0 0 0 1px var(--line)}
html[data-scheme="dark"] .auth-bg::before{background-image:radial-gradient(circle,rgba(124,243,200,.12) 1px,transparent 1.3px)}
html[data-scheme="dark"] .blob{opacity:.3}

@media (max-width:860px){
  .auth-card{grid-template-columns:1fr;max-width:440px}
  .auth-hero{padding:22px 24px}
  .auth-hero .hero-art,.auth-hero .hero-list{display:none}
  .auth-hero h2{font-size:18px;margin:12px 0 0}
  .auth-form{padding:30px 24px 26px}
  .auth-form .login-logo{margin-top:22px;max-width:200px}
}
@media (prefers-reduced-motion:reduce){*{animation:none !important}.net .packets{display:none}}
