:root {
  --ink: #070b0d;
  --panel: rgba(10,15,17,.86);
  --white: #fff;
  --muted: #aeb8bc;
  --green: #00d36f;
  --gold: #d7ad67;
  --line: rgba(255,255,255,.17);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--white);
  font-family: Archivo, Inter, Arial, sans-serif;
  background: #050708 url("public-assets/login-bg.png") center/cover fixed no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3,6,7,.96), rgba(3,6,7,.7) 58%, rgba(3,6,7,.42));
}
a { color: inherit; }
.portal { min-height: 100vh; }
.access-shell {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 8vw;
  width: min(1500px, calc(100% - 80px));
  min-height: 100vh;
  margin: auto;
  padding: 60px 0;
}
.access-copy { max-width: 780px; }
.portal-logo { width: 300px; height: auto; margin-bottom: 70px; }
.portal-logo.small { width: 190px; margin: 0; }
.kicker { color: var(--green); font-size: 14px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 18px 0 28px; font-size: clamp(44px, 5vw, 82px); line-height: 1; }
h2 { margin: 0 0 28px; font-size: 32px; }
p { color: #dbe2df; font-size: 21px; line-height: 1.5; }
.access-panel {
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}
label { display: block; margin: 22px 0 9px; color: #d8dfdc; font-size: 15px; font-weight: 760; }
input, select {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  outline: none;
  background: rgba(255,255,255,.07);
  color: white;
  font: inherit;
}
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,211,111,.12); }
.otp-input { height: 78px; font-size: 38px; font-weight: 850; letter-spacing: .28em; text-align: center; }
.primary-button, .secondary-button {
  display: inline-grid;
  place-items: center;
  min-height: 56px;
  margin-top: 24px;
  padding: 0 25px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 830;
}
.primary-button { width: 100%; background: var(--green); color: #04100a; }
.secondary-button { background: transparent; color: white; border: 1px solid var(--line); }
.fine-print { margin-top: 22px; color: var(--muted); font-size: 14px; }
.alert, .status-box { margin: 18px 0; padding: 15px; border-left: 4px solid #e85f5f; background: rgba(232,95,95,.1); }
.status, .status-box { color: var(--green); border-color: var(--green); }
.steps { padding-left: 22px; color: #dce3e0; line-height: 1.65; }
.qr-enrollment {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 24px;
  margin: 22px 0;
}
.qr-enrollment p { margin: 0; font-size: 17px; }
.authenticator-qr {
  width: 190px;
  padding: 10px;
  border-radius: 4px;
  background: white;
  line-height: 0;
}
.authenticator-qr svg { display: block; width: 100%; height: auto; }
.setup-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.setup-divider::before, .setup-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.secret-key, .generated-link {
  margin-top: 20px;
  padding: 18px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(0,211,111,.5);
  background: #050908;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
}
.admin-shell { width: min(1500px, calc(100% - 80px)); margin: auto; padding: 35px 0 80px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-header nav { display: flex; gap: 24px; }
.admin-header a { color: #dfe6e3; text-decoration: none; }
.admin-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-top: 65px; }
.admin-grid h1 { font-size: 58px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.invite-list { padding-left: 45px; border-left: 1px solid var(--line); }
.invite-item { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.invite-item strong, .invite-item span { display: block; }
.invite-item span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.invite-item.inactive { opacity: .45; }
.text-button { border: 0; background: transparent; color: #ff9b9b; cursor: pointer; }
.message-shell { display: grid; place-content: center; min-height: 100vh; width: min(900px, calc(100% - 50px)); margin: auto; text-align: center; }
.message-shell .portal-logo { margin: 0 auto 55px; }
.catalog-shell { width: min(1500px, calc(100% - 80px)); margin: auto; padding: 35px 0 90px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.catalog-header > div { display: flex; align-items: center; gap: 30px; }
.catalog-header p { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-header nav { display: flex; gap: 26px; }
.catalog-header a { color: #e1e7e4; text-decoration: none; font-size: 15px; }
.catalog-intro { max-width: 900px; padding: 78px 0 54px; }
.catalog-intro h1 { font-size: clamp(48px, 6vw, 88px); }
.catalog-intro > p:last-child { max-width: 760px; }
.presentation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px; }
.presentation-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8,13,15,.86);
  color: white;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease;
}
.presentation-card:hover { transform: translateY(-5px); border-color: var(--card-accent); }
.presentation-cover { min-height: 100%; overflow: hidden; }
.presentation-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.presentation-card:hover .presentation-cover img { transform: scale(1.035); }
.presentation-info { display: flex; flex-direction: column; justify-content: center; padding: 42px; border-top: 4px solid var(--card-accent); }
.presentation-info span { color: var(--card-accent); font-size: 13px; font-weight: 850; letter-spacing: .09em; }
.presentation-info h2 { margin: 17px 0; font-size: 34px; line-height: 1.08; }
.presentation-info p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.presentation-info strong { margin-top: 34px; color: var(--card-accent); font-size: 15px; }
.empty-state { padding: 45px; border: 1px solid var(--line); color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .access-shell, .admin-grid { grid-template-columns: 1fr; }
  .access-shell { width: min(680px, calc(100% - 32px)); gap: 35px; }
  .access-copy { padding-top: 20px; }
  .portal-logo { width: 220px; margin-bottom: 40px; }
  .access-panel { padding: 30px 24px; }
  .qr-enrollment { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .admin-shell { width: min(680px, calc(100% - 32px)); }
  .invite-list { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .catalog-shell { width: min(680px, calc(100% - 32px)); }
  .catalog-header, .catalog-header > div { align-items: flex-start; }
  .catalog-header > div { flex-direction: column; gap: 12px; }
  .catalog-header nav { flex-direction: column; gap: 10px; text-align: right; }
  .presentation-grid { grid-template-columns: 1fr; }
  .presentation-card { grid-template-columns: 1fr; }
  .presentation-cover { aspect-ratio: 16 / 9; }
}
