:root{
  --bg0:#0b0e14;
  --bg1:#0f1626;

  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);

  --text:#eef0f6;
  --muted:#a8b0c2;

  --accent:#9b7bff;
  --accent2:#2dd4bf;

  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

/* ===== BODY ===== */
body{
  margin:0;
  min-height:100vh;
  padding:24px;

  display:flex;
  justify-content:center;
  align-items:center;

  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  background:
    radial-gradient(900px 520px at 15% 20%, rgba(155,123,255,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 80%, rgba(45,212,191,.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));

  animation: fadeIn .55s ease-out both;
}

/* лёгкая “дорогая” текстура */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode: overlay;
}

@keyframes fadeIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ===== FORM CARD ===== */
.form{
  width:min(420px, 100%);
  padding:26px;
  border-radius:var(--radius);

  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  animation: slideIn .45s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes slideIn{
  from{ transform: translateY(-12px) scale(.985); opacity:0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}

/* ===== INPUTS ===== */
input[type="email"],
input[type="password"]{
  width:100%;
  padding:12px 14px;
  margin:10px 0;

  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);

  color:var(--text);
  font-size:15px;

  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

input::placeholder{
  color: rgba(168,176,194,.7);
}

input:focus{
  border-color: rgba(155,123,255,.35);
  box-shadow: 0 0 0 4px rgba(155,123,255,.12);
  transform: translateY(-1px);
}

/* ===== BUTTON ===== */
button{
  width:100%;
  padding:12px 14px;
  margin-top:12px;

  border:none;
  border-radius:14px;

  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#0b0e14;

  font-size:16px;
  font-weight:800;
  cursor:pointer;

  box-shadow: 0 14px 40px rgba(155,123,255,.18);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 52px rgba(45,212,191,.16);
}

button:active{ transform: translateY(0); }

/* ===== LINKS ===== */
a{
  display:inline-block;
  margin-top:12px;

  color: rgba(155,123,255,.95);
  text-decoration:none;
  font-weight:700;

  transition: color .2s ease;
}

a:hover{
  color: rgba(45,212,191,.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== MOBILE ===== */
@media (max-width: 600px){
  body{
    padding:16px;
  }

  .form{
    padding:18px;
    border-radius:16px;
  }

  button{
    font-size:15px;
  }

  img{
    width:100%;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce){
  *{
    animation:none !important;
    transition:none !important;
  }
}
