/* PXM shared styles for the public pages (sign in, signup, password) and Hotel Setup.
   Matches the Claude Design consoles: navy #0F1B30, action blue #1A56DB, Hanken Grotesk. */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --navy: #0F1B30; --navy-2: #16233D; --navy-3: #1F2F4F; --line-dark: rgba(255,255,255,.1);
  --blue: #1A56DB; --blue-h: #1648B8; --blue-soft: #E8EFFD;
  --ink: #111E36; --ink-2: #3D4B66; --muted: #5C6A85; --line: #DCE3EE; --bg: #F4F6FA; --card: #FFFFFF;
  --ok: #047857; --ok-soft: #E6F6EF; --warn: #B54708; --warn-soft: #FEF3E2; --err: #B42318; --err-soft: #FDECEA;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,27,48,.06), 0 8px 24px rgba(15,27,48,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Form controls ── */
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 88px; padding: 10px 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.15); }
.input[aria-invalid="true"] { border-color: var(--err); }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.err-text { font-size: 13px; color: var(--err); margin-top: 5px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--bg); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-h); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--bg); }
.btn-danger { background: #fff; border-color: #F4C7C3; color: var(--err); }
.btn-danger:hover:not(:disabled) { background: var(--err-soft); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--blue-soft); color: #173E9C; }

/* ── Auth pages (split layout) ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { background: var(--navy); color: #fff; padding: 56px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::after { content: ''; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(26,86,219,.35), transparent 70%); pointer-events: none; }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 11px; background: var(--blue); display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; font-size: 15px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: .3px; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.6px; color: #8B98AD; text-transform: uppercase; }
.auth-brand h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.8px; font-weight: 800; }
.auth-brand p.lead { color: #AEB9CC; font-size: 16px; max-width: 46ch; margin: 0 0 30px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 48ch; }
.features li { display: flex; gap: 13px; align-items: flex-start; color: #D5DCE8; font-size: 14.5px; }
.features svg { flex: none; width: 22px; height: 22px; color: #7FA6F5; margin-top: 1px; }
.features b { color: #fff; display: block; font-size: 15px; }
.auth-foot { color: #6F7C94; font-size: 12.5px; position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 22px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 22px; }
  .auth-brand h1, .auth-brand p.lead, .features { display: none; }
  .auth-brand .auth-foot { display: none; }
}
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* ── App shell (Setup) ── */
.shell { display: flex; min-height: 100vh; }
.side { width: 252px; flex: none; background: var(--navy); color: #fff; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; }
.side .brand-mark { padding: 22px 20px 18px; border-bottom: 1px solid var(--line-dark); }
.side nav { padding: 12px 10px; overflow-y: auto; flex: 1; }
.side .sec { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #5C6A85; padding: 14px 10px 6px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: #AEB9CC; font-size: 14px; font-weight: 600; text-decoration: none; }
.side a.nav:hover { background: var(--navy-2); color: #fff; }
.side a.nav[aria-current="page"] { background: var(--blue); color: #fff; }
.side a.nav svg { width: 17px; height: 17px; flex: none; }
.side .who { border-top: 1px solid var(--line-dark); padding: 14px 18px 16px; font-size: 13px; }
.side .who b { display: block; }
.side .who span { color: #8B98AD; font-size: 12px; }
.side .who .btns { display: flex; gap: 6px; margin-top: 10px; }
.side .who .btns a, .side .who .btns button { flex: 1; text-align: center; padding: 7px 6px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #AEB9CC; border-radius: 8px; font-size: 12px; cursor: pointer; text-decoration: none; }
.side .who .btns a:hover, .side .who .btns button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.main { flex: 1; min-width: 0; margin-left: 252px; padding: 28px clamp(18px, 3vw, 36px) 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card > p.desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; background: #F8FAFC; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid #EDF1F7; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t input.input, table.t select.select { height: 36px; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: #EEF2F7; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: #EEF2F7; font-size: 13.5px; }
.chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.chip button:hover { background: #fff; color: var(--err); }
.inline-add { display: flex; gap: 8px; margin-top: 12px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted { color: var(--muted); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #EEF2F7; color: var(--ink-2); }
.step.done .dot { background: var(--ok); color: #fff; }
.step b { display: block; font-size: 14.5px; }
.step span { font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1000; padding: 11px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 12px 32px rgba(15,27,48,.28); max-width: min(560px, 92vw); }
.toast.err { background: var(--err); }
.modal-bg { position: fixed; inset: 0; background: rgba(15,27,48,.55); display: grid; place-items: center; z-index: 900; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; padding: 22px; box-shadow: 0 24px 60px rgba(15,27,48,.35); max-height: 90vh; overflow-y: auto; }
.modal h3 { margin: 0 0 4px; font-size: 18px; }
.modal .desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .2s; z-index: 800; }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
}
