:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #f4f4f4;
  --muted: #a8a8a8;
  --card-radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

#dotsLayer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.password-card {
  width: min(480px, 100%);
  padding: 32px;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, #050505, #e7e7e7, #0d0d0d, #ffffff);
  background-size: 320% 320%;
  animation: shiftGradient 8s ease infinite;
  box-shadow: 0 20px 55px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.password-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--card-radius) - 2px);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}

.password-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.access-form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  color: #cfcfcf;
}

input,
button {
  border-radius: 10px;
  border: 1px solid #2c2c2c;
  padding: 12px 14px;
  font: inherit;
}

input {
  background: #080808;
  color: var(--text);
}

input:focus {
  outline: 2px solid #f0f0f0;
  outline-offset: 1px;
}

button {
  margin-top: 8px;
  cursor: pointer;
  background: #f3f3f3;
  color: #0a0a0a;
  font-weight: 600;
}

button:hover {
  background: #ffffff;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status {
  min-height: 1.2em;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #d4d4d4;
}

@keyframes shiftGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
