@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v34.0.0/dist/font-face.css");

:root{
  --bg0:#070a12;
  --bg1:#0b1220;
  --glass: rgba(255,255,255,.10);
  --glass2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.14);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.68);
  --accent:#7c5cff;     /* purple */
  --accent2:#25d6ff;    /* cyan */
  --ok:#22c55e;
  --err:#ef4444;

  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.45);

  --font: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: radial-gradient(1200px 900px at 20% 10%, rgba(124,92,255,.20), transparent 60%),
              radial-gradient(1200px 900px at 80% 90%, rgba(37,214,255,.16), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow:hidden;
}

/* animated background layer */
.lg-bg{
  position:fixed; inset:0;
  pointer-events:none;
}
.orb{
  position:absolute;
  width:520px; height:520px;
  border-radius:50%;
  filter: blur(28px);
  opacity:.65;
  transform: translate3d(0,0,0);
  animation: float 10s ease-in-out infinite;
}
.orb-a{ left:-140px; top:-120px; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.9), transparent 60%); }
.orb-b{ right:-160px; bottom:-140px; background: radial-gradient(circle at 40% 40%, rgba(37,214,255,.85), transparent 60%); animation-duration: 12s;}
.orb-c{ left:30%; bottom:-220px; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.20), transparent 60%); animation-duration: 14s; opacity:.35;}

@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(22px,-14px) scale(1.02); }
}

.grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity:.07;
  transform: perspective(900px) rotateX(62deg) translateY(120px);
  transform-origin: top;
  animation: gridMove 12s linear infinite;
}
@keyframes gridMove{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 0 240px, 240px 0; }
}

.noise{
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity:.12;
  mix-blend-mode: overlay;
}

/* layout */
.lg-wrap{
  position:relative;
  height:100%;
  display:grid;
  place-items:center;
  padding:24px;
}

.lg-card{
  width:min(440px, 100%);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding:18px 18px 16px;
  position:relative;
  overflow:hidden;
  animation: cardIn .55s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes cardIn{
  from{ opacity:0; transform: translateY(18px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

/* shine */
.lg-card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(800px 260px at 18% 12%, rgba(255,255,255,.16), transparent 60%);
  opacity:.8;
  pointer-events:none;
}

.lg-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.lg-logo{
  width:46px; height:46px;
  border-radius:16px;
  display:grid; place-items:center;
  font-weight:900;
  color:white;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(37,214,255,1));
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.lg-title{font-weight:900;font-size:18px}
.lg-sub{font-size:12px;color:var(--muted);margin-top:2px}

.lg-alert{
  border-radius:16px;
  padding:10px 12px;
  margin:10px 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
}
.lg-alert--err{ border-color: rgba(239,68,68,.35); }
.lg-alert--ok{ border-color: rgba(34,197,94,.35); }

.lg-form{display:flex;flex-direction:column;gap:10px}
.lg-field{display:flex;flex-direction:column;gap:6px}
.lg-label{font-size:12px;color:var(--muted);font-weight:700}
.lg-hint{font-size:11px;color:rgba(234,240,255,.60)}

.lg-input{
  height:46px;
  border-radius:16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,24,.40);
  color: var(--text);
  padding: 0 12px;
  outline:none;
  transition: .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.lg-input::placeholder{color:rgba(234,240,255,.45)}
.lg-input:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.lg-btn{
  height:46px;
  border-radius:16px;
  border:0;
  cursor:pointer;
  font-weight:900;
  color:white;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(37,214,255,1));
  position:relative;
  overflow:hidden;
  transition:.18s ease;
}
.lg-btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.lg-btn:active{ transform: translateY(0); filter: brightness(.98); }

.lg-btn-glow{
  position:absolute; inset:-2px;
  background: radial-gradient(200px 140px at 20% 20%, rgba(255,255,255,.30), transparent 60%);
  opacity:.75;
  mix-blend-mode: overlay;
  animation: glowMove 2.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes glowMove{
  0%,100%{ transform: translateX(-8px) translateY(-4px); }
  50%{ transform: translateX(10px) translateY(6px); }
}

.lg-foot{
  margin-top:12px;
  font-size:13px;
  color: var(--muted);
}
.lg-link{
  color: rgba(37,214,255,1);
  font-weight:900;
  text-decoration:none;
  margin-right:6px;
}
.lg-link:hover{ text-decoration:underline; }

/* subtle focus mood */
body.focus .orb{ opacity:.8; }
