/* Full-page password gate — uses :root from styles.min.css */
.mwn-protect {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--mwn-bg, #e8eaef);
  color: var(--mwn-text, #141820);
  font-family: var(--mwn-font, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.mwn-protect__card {
  width: 100%;
  max-width: 24rem;
  background: var(--mwn-surface, #fcfcfe);
  border: 1px solid var(--mwn-border, rgba(0, 0, 0, 0.1));
  border-radius: var(--mwn-radius, 10px);
  box-shadow: var(--mwn-shadow, 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 24px rgba(0, 0, 0, 0.08));
  padding: 1.5rem 1.35rem 1.4rem;
}

.mwn-protect__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mwn-accent-soft, rgba(45, 106, 159, 0.14));
  color: var(--mwn-accent, #2d6a9f);
  font-size: 1.25rem;
  line-height: 1;
}

.mwn-protect__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.mwn-protect__note {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mwn-text-muted, #5c6472);
  font-family: var(--mwn-mono, ui-monospace, Consolas, monospace);
  word-break: break-all;
  padding: 0 0.25rem;
}

.mwn-protect__hint {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mwn-text-muted, #5c6472);
  text-align: center;
}

.mwn-protect__alert {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
  border-radius: 8px;
  background: rgba(200, 60, 50, 0.1);
  color: #9a2e28;
  border: 1px solid rgba(200, 60, 50, 0.22);
  text-align: center;
}

.mwn-protect__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mwn-protect__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mwn-text-muted, #5c6472);
  margin-bottom: -0.35rem;
}

.mwn-protect__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--mwn-text, #141820);
  background: #fff;
  border: 1px solid var(--mwn-border, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mwn-protect__input::placeholder {
  color: #a0a5ae;
  opacity: 1;
}

.mwn-protect__input:hover {
  border-color: rgba(20, 24, 32, 0.18);
}

.mwn-protect__input:focus {
  outline: none;
  border-color: var(--mwn-accent, #2d6a9f);
  box-shadow: 0 0 0 3px var(--mwn-accent-soft, rgba(45, 106, 159, 0.14));
}

.mwn-protect__submit {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.15rem;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--mwn-accent, #2d6a9f);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.mwn-protect__submit:hover {
  filter: brightness(1.04);
}

.mwn-protect__submit:active {
  transform: scale(0.99);
}

.mwn-protect__submit:focus-visible {
  outline: 2px solid var(--mwn-accent, #2d6a9f);
  outline-offset: 2px;
}

.mwn-protect__links {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mwn-border, rgba(0, 0, 0, 0.08));
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--mwn-text-muted, #5c6472);
}

.mwn-protect__links a {
  color: var(--mwn-accent, #2d6a9f);
  font-weight: 500;
  text-decoration: none;
}

.mwn-protect__links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mwn-protect__links p {
  margin: 0.5rem 0 0;
}

.mwn-protect__links p:first-child {
  margin-top: 0;
}
