:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a0a1a;
  color: #fff4fb;
  --pink: #ff8fab;
  --muted: #d6b8cc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

#starfield, #floating-hearts {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#floating-hearts { overflow: hidden; }
.float-heart {
  position: absolute;
  color: #ff6b9d;
  opacity: .15;
  animation: floatDrift 20s ease-in-out infinite;
}
@keyframes floatDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -40px); }
  50% { transform: translate(-20px, -80px); }
  75% { transform: translate(40px, -50px); }
}

.shell { position: relative; width: min(100%, 29rem); }
.brand { text-align: center; }
.brand-title {
  margin: 0 0 1.25rem;
  font-family: 'Dancing Script', 'Apple Chancery', cursive;
  font-size: clamp(2.8rem, 10vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: #ffc7df;
}
.brand-title span { font-family: system-ui, sans-serif; font-size: .43em; color: #ff79a3; vertical-align: .35em; }
.panel {
  padding: clamp(1.55rem, 5vw, 2.45rem);
  background: #22182bc9;
  border: 1px solid #ff8fab45;
  border-radius: 1.25rem;
  box-shadow: 0 1.4rem 3.5rem #04030978;
  backdrop-filter: blur(13px);
}
h1 { margin: 0 0 1.4rem; color: #ffe5f2; font-size: 1.36rem; line-height: 1.2; letter-spacing: .04em; text-align: center; }
form { display: grid; }
label { margin-bottom: .45rem; font-size: .88rem; font-weight: 550; color: var(--muted); }
label[for="password"] { margin-top: .95rem; }
input, button { font: inherit; }
input {
  width: 100%;
  border: 1px solid #754662;
  border-radius: .68rem;
  padding: .7rem .83rem;
  min-height: 2.9rem;
  background: #100d20;
  color: inherit;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 4.1rem; }
.visibility {
  position: absolute;
  right: .43rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 2rem;
  padding-inline: .5rem;
  font-size: .82rem;
  cursor: pointer;
  border: 0;
  border-radius: .35rem;
  color: #edbcd3;
  background: transparent;
}
.visibility:hover { color: #fff; }
#status { color: #ff9fad; font-size: .84rem; line-height: 1.5; margin: .7rem 0 0; }
#status:empty { display: none; }
.submit {
  margin-top: 1.25rem;
  min-height: 3rem;
  border: 1px solid #ff8fab7d;
  border-radius: 999px;
  color: #fff4f9;
  font-weight: 650;
  cursor: pointer;
  background: linear-gradient(135deg, #793954, #5b2848);
}
.submit:hover { background: linear-gradient(135deg, #943c60, #6c2d52); }
.submit:disabled { opacity: .7; cursor: wait; }
