.auth-locked {
  min-height: 100vh;
}

.auth-locked .shell {
  display: none;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(25, 42, 34, 0.74), rgba(25, 42, 34, 0.74)),
    linear-gradient(180deg, #f7f1e8 0%, #e8dfd1 100%);
}

.auth-card {
  width: min(100%, 380px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  background: #fffaf2;
  border: 1px solid rgba(77, 91, 73, 0.18);
  box-shadow: 0 22px 64px rgba(18, 31, 24, 0.22);
}

.auth-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.auth-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 44px;
}

.auth-password-field {
  position: relative;
  display: block;
}

.auth-password-field input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526156;
  font-size: 1rem;
  line-height: 1;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: rgba(36, 62, 48, 0.12);
}

.auth-card button[type="submit"] {
  min-height: 46px;
}

.auth-status {
  min-height: 1.2em;
  margin: 0;
  color: #8b352c;
  font-weight: 700;
}

.auth-session-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, 36vw);
}

.auth-session-control span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-session-control button {
  padding: 8px 12px;
}

@media (max-width: 760px) {
  .auth-session-control span {
    display: none;
  }
}
