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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f4ef;
  font-family: 'Inter', sans-serif;
}

.wrap {
  text-align: center;
  padding: 2rem;
}

.title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 2rem;
  color: #2e2a24;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: #a0917e;
  letter-spacing: 0.06em;
  margin-bottom: 2.8rem;
}

input[type="password"] {
  display: block;
  width: 220px;
  margin: 0 auto 1.2rem;
  padding: 0.7rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #2e2a24;
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 6px;
  outline: none;
  text-align: center;
  transition: border-color 0.25s;
  letter-spacing: 0.15em;
}

input[type="password"]:focus {
  border-color: #b5a48e;
}

input[type="password"]::placeholder {
  letter-spacing: 0.05em;
  color: #c8bfb0;
}

button {
  display: block;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  background: #2e2a24;
  color: #f7f4ef;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover { opacity: 0.78; }

.err {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #b97a6a;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 300;
}

.err.show { opacity: 1; }

/* ── responsive mobile ── */
@media (max-width: 768px) {
  .wrap { padding: 1.5rem; }
  .title { font-size: 1.6rem; }
  input[type="password"] { width: 100%; }
}
