:root{
  --bg0:#0b0e14;
  --bg1:#101a2c;

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

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

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

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

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

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, "Noto Sans", "Liberation Sans", 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:.07;
  mix-blend-mode: overlay;
}

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

.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; }
}

/* если у тебя есть заголовок — будет красиво */
.form h1, .form h2{
  margin:0 0 14px 0;
  font-size:20px;
  line-height:1.2;
}
.form h1::after, .form h2::after{
  content:"";
  display:block;
  height:1px;
  margin-top:12px;
  background: linear-gradient(90deg, rgba(155,123,255,.55), rgba(45,212,191,.35), transparent);
  border-radius:999px;
}

input[type="email"],
input[type="password"]{
  width:100%;
  padding:12px 14px;
  margin:10px 0;
  border-radius:14px;

  color:var(--text);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);

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

input[type="email"]::placeholder,
input[type="password"]::placeholder{
  color: rgba(168,176,194,.75);
}

input[type="email"]:focus,
input[type="password"]:focus{
  background: rgba(255,255,255,.07);
  border-color: rgba(155,123,255,.35);
  box-shadow: 0 0 0 4px rgba(155,123,255,.12);
  transform: translateY(-1px);
}

/* кнопка */
button{
  width:100%;
  padding:12px 14px;
  margin-top:10px;

  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); }

p{
  text-align:center;
  margin:14px 0 0;
  color: var(--muted);
  font-size:14px;
}

a{
  color: rgba(155,123,255,.95);
  text-decoration:none;
  font-weight:700;
  transition: color .2s ease, text-decoration-color .2s ease;
}

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

/* картинка/лого */
img{
  width:min(320px, 100%);
  height:auto;
  display:block;
  margin:0 auto 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
}

/* мобилка */
@media (max-width: 600px){
  body{ padding:16px; }
  .form{ padding:18px; border-radius:16px; }
}

/* отключение анимаций */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
