*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f0f4ff;
  overflow: hidden;
  position: relative;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift linear infinite;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #c7d9ff, #a5b4fc);
  top: -120px; left: -100px;
  animation-duration: 18s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ddd6fe, #c4b5fd);
  bottom: -80px; right: -80px;
  animation-duration: 22s;
  animation-delay: -6s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #bfdbfe, #93c5fd);
  bottom: 30%; left: 10%;
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes drift {
  0%   { transform: translate(0px, 0px) scale(1); }
  25%  { transform: translate(30px, -20px) scale(1.04); }
  50%  { transform: translate(10px, 30px) scale(0.97); }
  75%  { transform: translate(-20px, 10px) scale(1.02); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 4px 24px rgba(99, 102, 241, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
}
.logo-dot {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
}
.logo-text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6366f1;
}

h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}

p.sub {
  font-size: .875rem;
  color: #64748b;
  margin-bottom: 2rem;
}

label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .4rem;
  letter-spacing: .02em;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: .7rem 2.75rem .7rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  color: #1e1b4b;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.input-wrap input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: rgba(255, 255, 255, 0.95);
}
.input-wrap input::placeholder { color: #94a3b8; }

.eye-btn {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: .25rem;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.eye-btn:hover { color: #6366f1; }

.cf-turnstile {
  margin-top: 1.25rem;
  margin-bottom: .25rem;
}

.error {
  margin-top: .75rem;
  padding: .6rem .875rem;
  background: rgba(254, 202, 202, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  font-size: .8rem;
  color: #b91c1c;
}

.submit-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: .78rem 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: .01em;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.submit-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.submit-btn:active { transform: translateY(0); }
