/* Login page — served without auth, so keep it to styling only */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost.woff2") format("woff2-variations"), url("/fonts/jost.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyon-script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  color: #444B3F;
  background: #F5F0E6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.login-names {
  font-family: "Pinyon Script", cursive;
  font-size: 48px;
  line-height: 1.2;
  color: #2E3B2C;
}

.login-names .amp {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
}

.hint {
  margin: 16px 0 32px;
  font-style: italic;
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

input[type="password"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #B8B19C;
  border-radius: 0;
  padding: 8px 0;
  font-family: inherit;
  font-size: 22px;
  color: #2E3B2C;
  text-align: center;
}

/* Focus stays visible as a heavier dark underline */
input[type="password"]:focus {
  outline: none;
  border-bottom: 2px solid #2E3B2C;
  padding-bottom: 7px;
}

button {
  width: 100%;
  padding: 18px;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #F5F0E6;
  background: #2E3B2C;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

button:hover {
  background: #811B33;
}

button:focus-visible {
  outline: 2px solid #811B33;
  outline-offset: 3px;
}

.error {
  margin-top: 24px;
  color: #811B33;
}
