/* ============================================================================
   NM guest-page layer — sits on top of nm-app-v2.css for the standalone,
   guest-facing pages that are NOT part of the admin tab-bar app
   (welcome, reserve, register, wifi). Added 07/23/26 for the House migration.
   ============================================================================ */

.auth {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 34px 18px calc(34px + env(safe-area-inset-bottom));
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--nm-surface);
  border-radius: 24px; box-shadow: var(--nm-shadow-float); padding: 28px 22px 26px;
}
.auth-card.wide { max-width: 468px; }
.auth-crest { width: 46px; height: 46px; margin: 0 auto 12px; display: block; }
.auth-title {
  text-align: center; font-family: var(--nm-serif); font-weight: 400;
  font-size: 29px; line-height: 1.08; color: var(--nm-ink);
}
.auth-title em { font-style: italic; color: var(--nm-gold); }
.auth-sub { text-align: center; font-size: 12.5px; color: var(--nm-sub); margin: 6px 0 18px; }
.auth-lede {
  background: var(--nm-gold-soft); border-radius: 15px; padding: 11px 14px;
  font-size: 12.5px; color: var(--nm-text); line-height: 1.5; margin-bottom: 16px;
}
.auth-lede b, .auth-lede strong { color: var(--nm-gold); font-weight: 700; }
.auth-err {
  background: var(--nm-coral-soft); color: var(--nm-coral); border-radius: 13px;
  padding: 11px 14px; font-size: 13px; line-height: 1.45; margin-bottom: 15px; text-align: center;
}
.auth-err a { color: inherit; font-weight: 700; text-decoration: underline; }
.auth-fine { font-size: 10.5px; color: var(--nm-sub); line-height: 1.55; text-align: center; margin-top: 14px; }
.auth-fine a { color: var(--nm-gold); font-weight: 600; }
.auth-fine.signoff { font-style: italic; }

/* consent checkbox row */
.auth-consent {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  margin: 12px 0 4px; font-size: 12.5px; color: var(--nm-text); line-height: 1.45;
}
.auth-consent input { width: 20px; height: 20px; accent-color: var(--nm-gold); flex: 0 0 auto; margin-top: 1px; }
.auth-consent .fine { display: block; font-size: 10.5px; color: var(--nm-sub); margin-top: 3px; }

/* two-up field row */
.auth-row { display: flex; gap: 11px; }
.auth-row > * { flex: 1; min-width: 0; }

/* full-width buttons on guest cards; primary gets a taller target */
.auth-card .nm-btn { width: 100%; min-height: 48px; margin-top: 4px; }
.auth-card .nm-btn + .nm-btn { margin-top: 10px; }

/* summary rows (reserve confirmation) */
.auth-summary {
  background: var(--nm-bg); border-radius: 15px; padding: 4px 15px; margin-bottom: 16px;
}
[data-mode="dark"] .auth-summary { background: var(--nm-surface-2); }
.auth-sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nm-line); }
.auth-sumrow:first-child { border-top: 0; }
.auth-sumrow .k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--nm-sub); white-space: nowrap; }
.auth-sumrow .v { font-family: var(--nm-serif); font-size: 17px; color: var(--nm-ink); text-align: right; }

/* collapsible action (reserve manage) — restyle native <details> */
.auth-action { background: var(--nm-surface); border-radius: 15px; box-shadow: var(--nm-shadow-card); margin-bottom: 9px; overflow: hidden; }
.auth-action > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--nm-ink); display: flex; justify-content: space-between; align-items: center; }
.auth-action > summary::-webkit-details-marker { display: none; }
.auth-action > summary .chev { color: var(--nm-gold); transition: transform 0.2s; }
.auth-action[open] > summary .chev { transform: rotate(180deg); }
.auth-action .body { padding: 0 16px 16px; }
.auth-danger { background: transparent; color: var(--nm-coral); box-shadow: inset 0 0 0 1px var(--nm-coral-soft); }

/* small helper text under a field */
.auth-note {
  display: flex; align-items: flex-start; gap: 9px; background: var(--nm-gold-soft);
  border-radius: 12px; padding: 9px 12px; font-size: 11.5px; color: var(--nm-text);
  line-height: 1.45; margin: 8px 0 2px;
}
