/* ==========================================================================
   The envelope (login)
   ========================================================================== */

.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;      /* the words rest on the painting's blank paper below the hill */
  justify-content: center;
  padding: 2rem 1.25rem 5vh;
  background-color: #f1d4b1;  /* the painting's own paper, extended */
  overflow: hidden;
}

/* the painting fills the room, fort settled low */
.fort-hero {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.fort-hero img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* fill the full width — never a visible side edge, never a seam */
  width: max(100vw, 132vh);
  height: auto;
  max-width: none;
  /* slide vertically so only the blank paper margins crop: the screen's bottom
     edge pins to just below the hill (87% of the painting's height) */
  bottom: min(0px, calc(100vh - 67.8vw));
}
/* a breath of the paper tone behind the words, blending into the art */
.fort-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(241, 212, 177, 0.85) 0%,
    rgba(241, 212, 177, 0.4) 18%,
    rgba(241, 212, 177, 0) 34%);
}

/* no card — the words sit straight on the painting */
.login-card {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  text-align: center;
}

.login-logo { margin: 0 auto 0.5rem; }
.login-logo-mark {
  width: 6.5rem;
  height: auto;
  display: block;
  margin: 0 auto;
}
.login-logo-text {
  font-family: 'Times New Roman', Times, serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-align: center;
  margin-top: 0.6rem;
}

.login-body { padding: 0; }

.login-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  font-variant-numeric: lining-nums; /* full-height digits beside the capitals */
}

.sig-names .amp {
  font-family: inherit;
  font-style: normal;
  /* tuck the ornate ampersand into the names so they read as one word-mark */
  display: inline-block;
  margin: 0 -0.24em 0 -0.2em;
}

.login-lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

#login-form { margin-top: 1.6rem; }
.code-row { max-width: 26rem; margin: 0 auto; }
#login-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.code-row { display: flex; gap: 0.7rem; }

#invite-code {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
#invite-code::placeholder { color: #b5ab99; font-weight: 400; letter-spacing: 0.05em; text-transform: none; }
#invite-code:focus { border-color: var(--pink); }

#login-btn {
  padding: 0.8rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--pink);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#login-btn:hover { background: var(--pink-deep); }
#login-btn:disabled { opacity: 0.55; cursor: wait; }

.login-error { font-size: 0.88rem; color: var(--pink-deep); margin-top: 0.8rem; }
.login-help { font-size: 0.8rem; color: var(--ink-soft); margin-top: 1.5rem; }

