/* Match Homira Manager: Montserrat */

:root {
  --ink: #171717;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #fff;
  --wash: #f3f4f6;
  --champagne: #d7b7a3;
  --header: #0b0b0b;
  --header-text: rgba(255,255,255,.82);
  --err: #8a2b2b;
  --ok: #3d5a2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  background: var(--wash);
}
a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--header);
  color: var(--header-text);
}
.page-auth .topbar { position: relative; z-index: 2; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.brand span {
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  color: #fff;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.top-end {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--header-text);
}
.nav a { color: var(--header-text); }
.nav a:hover { color: #fff; }
.menu { position: relative; padding: 12px 0; }
.menu > a { color: inherit; }
.menu.is-on > a,
.nav a.is-on { color: #fff; }
.menu-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 8px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  z-index: 20;
}
.menu-list a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
}
.menu-list a:hover { background: var(--wash); color: var(--ink); }
.menu:hover .menu-list, .menu:focus-within .menu-list { display: block; }
.who { color: #fff; }
.link-quiet { color: rgba(255,255,255,.65); }
.link-quiet:hover { color: #fff; }
.langs { display: flex; align-items: center; gap: 8px; }
.flag {
  display: inline-flex;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.45;
  flex: 0 0 22px;
}
.flag svg { width: 22px; height: 15px; display: block; }
.flag.is-on { opacity: 1; box-shadow: 0 0 0 1px #fff; }

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto 80px; }

.page-head { padding: 48px 0 28px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--champagne);
  margin: 0 0 12px;
}
h1, h2 {
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 12px;
}
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; }
h2 { font-size: 28px; }
.lead { max-width: 36em; line-height: 1.7; margin: 0; }

.banner {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
}
.banner.ok { background: #eef4e8; color: var(--ok); }
.banner.err { background: #f8ecec; color: var(--err); }

.page-auth {
  background:
    linear-gradient(120deg, rgba(11,11,11,.78), rgba(11,11,11,.48)),
    url("https://www.homira.com.au/wp-content/uploads/2025/08/homira-knx-hrc-home-matter-img-1.png") center/cover no-repeat fixed;
  min-height: 100vh;
}
.page-auth .topbar {
  background: transparent;
}
.page-auth .brand img { filter: none; }
.page-auth main { width: min(1160px, calc(100% - 48px)); }
.auth-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 24px 0 64px;
}
.auth-copy h1 { color: #fff; }
.auth-copy .lead { color: rgba(255,255,255,.78); }

.card {
  background: var(--paper);
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.auth-card label,
.review label {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin: 14px 0;
}
.auth-card input,
.auth-card select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
}
.auth-card input:focus,
.auth-card select:focus { outline: none; border-bottom-color: var(--champagne); }

button, .btn {
  display: inline-block;
  margin-top: 18px;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font: inherit;
  cursor: pointer;
}
button:hover, .btn:hover { background: #000; }
.hint { font-size: 13px; margin-top: 18px; }
.hint a { color: var(--ink); border-bottom: 1px solid var(--champagne); }

.system-grid {
  list-style: none;
  padding: 36px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 192px);
  gap: 24px;
  justify-content: start;
}
.system-card {
  display: block;
  width: 192px;
  height: 192px;
  border-radius: 28px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.system-card img {
  display: block;
  width: 192px;
  height: 192px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.tabs { display: flex; gap: 10px; margin: 8px 0 24px; }
.tabs a {
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 14px;
}
.tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.table th { color: var(--muted); font-weight: 400; }
.actions { display: flex; gap: 16px; align-items: center; }
.actions form { margin: 0; }
.actions button { margin: 0; background: none; color: var(--err); padding: 0; border-radius: 0; }
.btn-approve {
  background: none !important;
  color: #1f6b3a !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.badge.pending { background: #fff3d6; color: #8a6a00; }
.badge.active { background: #e8f4ea; color: #1f6b3a; }
.page-head .btn { margin-top: 8px; }
.empty { padding: 28px 0; }

.review fieldset {
  border: 1px solid var(--line);
  margin: 0 0 18px;
  padding: 18px 20px 8px;
}
.review legend {
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  color: var(--ink);
  padding: 0 8px;
}
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.review-actions { display: flex; align-items: center; gap: 20px; }
.review input[type="text"],
.review input[type="email"],
.review input[type="password"] {
  display: block;
  width: min(420px, 100%);
  margin-top: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font: inherit;
}
.role-block { margin: 0 0 36px; }
.role-block h2 { font-size: 22px; }
.role-block h2 .count { font-size: 14px; font-weight: 400; }
.muted { color: var(--muted); }
.role-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.role-add input {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font: inherit;
}
.role-add button { margin-top: 0; }

@media (max-width: 860px) {
  .auth-hero { grid-template-columns: 1fr; min-height: auto; }
  .topbar { padding: 18px 20px; }
  main { width: calc(100% - 32px); }
}
