* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

:root{
  --bg: #04060f;
  --cyan: #00ffff;
  --mag: #ff00ff;
  --text: #e5faff;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

/* ===== Animated background glow ===== */
body::before{
  content:"";
  position: absolute;
  inset:-25%;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,0,255,0.16), transparent 42%),
    radial-gradient(circle at 70% 25%, rgba(124,58,237,0.12), transparent 46%);
  filter: blur(22px);
  opacity: .9;
  animation: drift 14s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
  pointer-events: none;
}

/* ===== Subtle scanlines ===== */
body::after{
  content:"";
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: scan 7s linear infinite;
}

@keyframes drift{
  0%   { transform: translate(-2%, -1%) scale(1.02); }
  50%  { transform: translate(2%, 1%) scale(1.06); }
  100% { transform: translate(-1%, 2%) scale(1.03); }
}

@keyframes scan{
  0%   { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

/* ===== Card ===== */
.card {
  width: 380px;
  padding: 40px;
  border-radius: 18px;

  background: rgba(10, 15, 30, 0.86);
  border: 1px solid rgba(0,255,255,0.25);

  box-shadow:
    0 0 40px rgba(0,255,255,0.15),
    0 0 80px rgba(255,0,255,0.10);

  display: flex;
  flex-direction: column;
  gap: 22px;

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

  position: relative;
}

/* “Breathing” neon edge */
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,255,255,.55), rgba(255,0,255,.40));
  filter: blur(18px);
  opacity: .22;
  z-index: -1;
  animation: breathe 3.8s ease-in-out infinite;
}

@keyframes breathe{
  0%,100% { opacity: .18; transform: scale(0.995); }
  50%     { opacity: .32; transform: scale(1.01); }
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--mag));
  box-shadow: 0 0 20px rgba(0,255,255,0.75);
}

h1 {
  font-size: 20px;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 12px;
  color: rgba(0,255,255,0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input {
  padding: 12px 14px;
  border-radius: 10px;

  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(0,255,255,0.25);

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

  transition: 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,255,255,0.35);
}

button {
  padding: 12px;
  border-radius: 10px;
  border: none;

  background: linear-gradient(135deg, var(--cyan), var(--mag));
  color: #04060f;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;

  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  box-shadow: 0 0 25px rgba(255,0,255,0.55);
  transform: translateY(-2px);
}

.footer {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  letter-spacing: 1px;
}

/* Accessibility: if user prefers reduced motion */
@media (prefers-reduced-motion: reduce){
  body::before, body::after, .card::before { animation: none !important; }
}

.card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(0,255,255,0.25),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events:none;
}

.card:hover::after{
  opacity: .35;
}

/* ===== Button energy animation ===== */
button {
  position: relative;
  overflow: hidden;
}

button::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transition: 0.5s;
}

button:hover::before{
  left:100%;
}

button:active{
  transform: scale(0.97);
}
