:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #07100e;
  color: #edfdf7;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(65, 232, 168, .14), transparent 34%),
    radial-gradient(circle at 84% 80%, rgba(72, 137, 255, .12), transparent 36%),
    linear-gradient(145deg, #06100d 0%, #091411 48%, #050b0a 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(95px);
  pointer-events: none;
}

.ambient-one { top: -220px; right: -110px; background: rgba(45, 219, 151, .15); }
.ambient-two { bottom: -260px; left: -90px; background: rgba(72, 139, 255, .12); }

.lock-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 24px;
  padding: 24px;
}

.lock-card {
  width: min(440px, calc(100vw - 32px));
  padding: 42px 38px 34px;
  border: 1px solid rgba(136, 255, 208, .17);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(15, 31, 27, .96), rgba(7, 17, 14, .94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(108, 255, 196, .32);
  border-radius: 18px;
  color: #06100d;
  background: linear-gradient(135deg, #8fffd2, #28d795);
  box-shadow: 0 13px 36px rgba(45, 225, 158, .22);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.eyebrow {
  margin: 0 0 10px;
  color: #70ddb2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.subtitle {
  margin: 15px 0 30px;
  color: #a6bab3;
  font-size: 15px;
  line-height: 1.7;
}

form { display: grid; gap: 12px; }

label {
  color: #cde0d9;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(152, 204, 184, .2);
  border-radius: 14px;
  outline: none;
  background: rgba(3, 11, 9, .78);
  color: #f2fff9;
  caret-color: #4fe2a8;
  font: 650 26px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: center;
  letter-spacing: .32em;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input::placeholder { color: #40524b; }
input:focus {
  border-color: rgba(81, 229, 171, .66);
  box-shadow: 0 0 0 4px rgba(53, 218, 155, .09);
}

button {
  height: 54px;
  margin-top: 5px;
  border: 0;
  border-radius: 14px;
  color: #06110d;
  background: linear-gradient(135deg, #8fffd2, #32d99a);
  box-shadow: 0 14px 34px rgba(39, 216, 150, .18);
  cursor: pointer;
  font: 750 15px/1 inherit;
  transition: transform .16s ease, filter .16s ease;
}

button:hover { filter: brightness(1.05); transform: translateY(-1px); }
button:disabled { cursor: wait; filter: grayscale(.4); opacity: .66; transform: none; }

.status {
  min-height: 21px;
  margin-top: 17px;
  color: #81958e;
  font-size: 13px;
  text-align: center;
}

.status[data-type="error"] { color: #ff978f; }
.status[data-type="success"] { color: #76e9bb; }

.security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #7f958d;
  font-size: 12px;
  line-height: 1.55;
}

.shield {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #73e7b9;
  background: rgba(61, 218, 157, .11);
  font-weight: 800;
}

footer {
  color: #52665f;
  font-size: 10px;
  letter-spacing: .13em;
  text-align: center;
}

@media (max-width: 520px) {
  .lock-shell { padding: 16px; }
  .lock-card { padding: 32px 23px 27px; border-radius: 22px; }
  .brand-mark { width: 52px; height: 52px; margin-bottom: 23px; }
  .subtitle { margin-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
