body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(rgba(245, 241, 232, 0.74), rgba(236, 228, 214, 0.8));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: url("/static/images/background.png");
  background-position: center center;
  background-repeat: repeat;
  background-size: clamp(220px, min(31vw, 31vh), 420px) auto;
  opacity: 0.92;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42) 55%, rgba(239, 230, 214, 0.78)),
    linear-gradient(rgba(245, 241, 232, 0.46), rgba(236, 228, 214, 0.72));
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(49, 41, 24, 0.12);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 22px 54px rgba(52, 40, 19, 0.22);
  backdrop-filter: blur(12px);
}

.login-card h1 {
  font-size: 1.25rem;
  margin: 0;
}

.login-card p.eyebrow {
  font-size: 0.75rem;
  opacity: 0.6;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.field input {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-strong, rgba(49, 41, 24, 0.18));
  border-radius: 6px;
  color: var(--text, #251f12);
  caret-color: var(--text, #251f12);
  font-size: 1rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.field input::placeholder {
  color: rgba(109, 98, 72, 0.74);
}

.field input:focus {
  outline: 2px solid var(--accent, #4a90d9);
  outline-offset: 2px;
}

#errorMsg {
  color: #e07070;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.helper-note {
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: -0.35rem 0 0;
}

.button.primary {
  width: 100%;
  justify-content: center;
}
