:root {
  --brand-start: #2771b3;
  --brand-end: #a64f8e;
  --text-on: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: var(--text-on);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.wrap { width: min(940px, 92vw); position: relative; z-index: 1; }

/* floating faint gears */
.bg-icon {
  position: absolute;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.08);
  animation: rotate 60s linear infinite;
  user-select: none; pointer-events: none;
}
.bg-a { top: 10%; left: 5%; }
.bg-b { bottom: 12%; right: 7%; animation-duration: 90s; }

.logo {
  width: 200px; height: auto; display: block; margin: 0 auto 20px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.12));
  animation: fadeDown 0.9s ease both;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.2px;
  animation: fadeUp 1s ease both .05s;
}

.lead {
  margin: 0 auto 26px;
  max-width: 640px;
  color: var(--text-dim);
  font-size: clamp(.98rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  animation: fadeUp 1s ease both .15s;
}

.card {
  margin: 10px auto 24px;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: fadeUp 1s ease both .25s;
}

form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.field {
  flex: 1 1 320px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
}
.field i { opacity: .9; }
.field input {
  flex: 1 1 auto; background: transparent; border: 0; outline: 0;
  color: var(--text-on); font-size: 1rem; min-width: 200px;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.7); }

.btn {
  flex: 0 0 auto;
  border: 0; outline: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  color: #4a1f46; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.btn i { color: #7b2f68; }

.social {
  display: flex; gap: 16px; justify-content: center; margin-top: 10px;
  animation: fadeUp 1s ease both .35s;
}
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-on);
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.social a:hover { transform: translateY(-2px); background: #fff; color: #7b2f68; }

footer {
  position: fixed; bottom: 14px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.75);
  font-size: .92rem;
}

/* Animations */
@keyframes fadeUp { from { opacity:0; transform: translateY(22px) } to { opacity:1; transform: translateY(0) } }
@keyframes fadeDown { from { opacity:0; transform: translateY(-16px) } to { opacity:1; transform: translateY(0) } }
@keyframes rotate { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
