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

html {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #000;
  color: #e7e9ea;
  min-height: 100dvh;
}

.wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 1.5rem;
}

.card {
  background: #1a1a2e;
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.card h1 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: #e7e9ea;
}

.card p {
  font-size: 0.875rem;
  color: #8899a6;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

#f {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#pw {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #e7e9ea;
  background: #3a4a5c;
  border: 1px solid #2f3336;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#pw:focus {
  border-color: #1c9cf0;
  box-shadow: 0 0 0 3px rgba(28, 156, 240, 0.25);
}

#pw::placeholder {
  color: #6e7a86;
}

button[type="submit"] {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #1c9cf0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

button[type="submit"]:hover {
  background: #1885cc;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

.err {
  font-size: 0.8125rem;
  color: #e04848;
  margin-top: 0.5rem;
  text-align: center;
}
