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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: #141619;
  color: #E7E5E0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.panel {
  width: 100%;
  max-width: 28rem;
  padding: 2rem 1.5rem;
  background: #1B1E22;
  border-radius: 1rem;
}

.greeting {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
  line-height: 1.1;
  animation: bump-in 0.5s ease-out both;
}

.line {
  margin: 0 0 1.5rem;
  color: #A3A9B1;
}

.reveal {
  animation: fade-in 0.4s ease-out 0.7s both;
}

.door label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.door-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.door input {
  flex: 1 1 10rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #A3A9B1;
  border-radius: 0.5rem;
  background: #141619;
  color: #E7E5E0;
  font: inherit;
}

.door button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: #F2B35B;
  color: #141619;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease-out;
}

.door button:active {
  transform: scale(0.96);
}

.door button:disabled {
  cursor: progress;
}

.door input:focus-visible,
.door button:focus-visible {
  outline: 3px solid #F2B35B;
  outline-offset: 2px;
}

.door-message {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
}

@keyframes bump-in {
  0% {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-0.2rem) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .greeting,
  .reveal {
    animation: none;
  }

  .door button {
    transition: none;
  }

  .door button:active {
    transform: none;
  }
}
