:root {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #172d2a;
  background: #eaf0ed;
  line-height: 1.45;
  --ink: #172d2a;
  --muted: #536864;
  --line: #d5e1dc;
  --green: #14634d;
  --green-dark: #0f4d3e;
  --focus: #27856b;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, select, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); }
h1, h2, p { margin: 0; }
.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse at 15% 10%, #f1f8ef, transparent 50%), #e5eeeb;
}
.login-shell {
  width: min(1030px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cfded8;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 25px 80px #123f3621;
}
.login-brand {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 43px;
  color: #f3f9f5;
  overflow: hidden;
  background: radial-gradient(ellipse at 10% 70%, #226753 0%, transparent 64%), linear-gradient(145deg, #102e2b, #112b2a 69%, #213930);
}
.login-brand::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 116% 96%, transparent 0 22px, #9aefd22c 23px 24px, transparent 25px 43px);
  mask-image: linear-gradient(146deg, transparent 30%, #000 90%);
}
.brand-lockup { display: flex; align-items: center; gap: 18px; }
.brand-mark { padding: 7px 12px; border-radius: 12px; background: #fff; display: inline-flex; }
.brand-mark img { display: block; width: 116px; height: auto; }
.brand-caption { color: #e2f1e9; font-size: 14px; font-weight: 650; }
.brand-content { align-self: center; max-width: 370px; padding: 38px 0; }
.brand-kicker { color: #addcc9; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }
.brand-content h1 { margin: 12px 0 18px; font-size: clamp(36px, 4.7vw, 57px); font-weight: 700; line-height: 1.05; letter-spacing: -.056em; }
.brand-content p:last-child { color: #d4e9df; max-width: 290px; font-size: 16px; line-height: 1.6; }
.brand-footer { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #cde4d9; }
.shield { width: 12px; height: 14px; border: 1px solid #9ad7bb; border-radius: 3px 3px 6px 6px; }
.login-panel { display: grid; align-items: center; padding: 42px clamp(28px, 5vw, 64px); }
.login-inner { width: 100%; max-width: 402px; margin-inline: auto; }
.access-symbol { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid #d4e9e0; border-radius: 14px; background: #eff8f3; margin-bottom: 18px; }
.lock { display: block; width: 17px; height: 13px; border: 2px solid var(--green); border-radius: 3px; position: relative; margin-top: 5px; }
.lock::before { content: ''; position: absolute; width: 10px; height: 9px; left: 1.5px; top: -9px; border: 2px solid var(--green); border-radius: 7px 7px 0 0; border-bottom: 0; }
.login-inner h2 { font-size: clamp(30px, 4vw, 41px); line-height: 1.15; letter-spacing: -.045em; }
.intro { color: var(--muted); margin-top: 8px; font-size: 14px; }
.access-form, .access-fields { display: grid; gap: 8px; }
.login-inner .access-form { margin-top: 24px; }
.access-form label { font-size: 13px; font-weight: 660; }
.access-form input:not([type=checkbox]), .access-form select, .search-field input {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #bfcfc8;
  border-radius: 8px; background: #fbfdfc; font-size: 15px;
}
.access-form input, .access-form select { margin-bottom: 4px; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 67px !important; }
.show-password {
  position: absolute; top: 5px; right: 5px; border: 0; border-radius: 5px; padding: 6px 9px;
  color: var(--green); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer;
}
.show-password:hover { background: #e8f4ee; }
.access-primary, .access-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
  cursor: pointer; min-height: 43px; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 700;
}
.access-primary { background: var(--green); border: 1px solid var(--green); color: #fff; }
.access-primary:hover:not(:disabled) { background: var(--green-dark); }
.access-secondary { color: #24463e; background: #fff; border: 1px solid var(--line); }
.access-secondary:hover { background: #eff7f2; }
.login-inner .access-primary { margin-top: 8px; width: 100%; justify-content: space-between; }
.access-message { color: #a12637; font-size: 13px; }
.access-message:not(:empty) { margin-top: 10px; }
.login-help { margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.setup-note { color: #355c4f; background: #eff7f2; border: 1px solid #d9e9df; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 4px; }
.field-hint { color: var(--muted); font-size: 12px; margin: -3px 0 2px; }
#setup-code { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, monospace; }

.users-page { min-height: 100svh; background: #f0f5f3; }
.access-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px max(22px, calc((100% - 1150px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.access-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 680; }
.access-brand img { display: block; width: 86px; height: auto; }
.access-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.users-main { width: min(1190px, 100%); margin-inline: auto; padding: 28px 20px; }
.access-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.access-title h1 { font-size: clamp(29px, 4vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.access-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.access-card h2 { font-size: 19px; }
.access-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; }
.access-table { overflow: auto; }
.access-table table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: 14px; }
.access-table th, .access-table td { text-align: left; padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.access-table th { background: #edf5f0; font-size: 12px; color: #3c5e55; }
.user-cell strong, .user-cell small { display: block; }
.user-cell small { color: var(--muted); }
.user-actions { white-space: nowrap; }
.row-action { border: 0; background: transparent; color: var(--green); margin-inline-end: 10px; padding: 5px 0; cursor: pointer; font-size: 13px; font-weight: 680; }
.row-action:hover { text-decoration: underline; }
.access-badge { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 680; color: #594753; background: #f1e9ef; }
.access-badge.is-active { background: #dfefe6; color: #226049; }
.access-history { margin-top: 17px; }
.access-history summary { padding: 14px 16px; font-size: 15px; font-weight: 650; cursor: pointer; }
.users-main > .access-message:not(:empty) { margin: -6px 0 14px; }
#users-message:not(.is-error) { color: var(--green); }
.access-dialog { width: min(480px, calc(100% - 24px)); padding: 23px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
.access-dialog::backdrop { background: #09261e88; }
.access-dialog h2 { font-size: 23px; }
.access-check { display: flex; align-items: center; gap: 7px; }
.access-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.access-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .login-page { padding: 14px; }
  .login-shell { grid-template-columns: 1fr; border-radius: 17px; }
  .login-brand { min-height: auto; gap: 0; padding: 21px 24px; }
  .brand-mark img { width: 88px; }
  .brand-content, .brand-footer { display: none; }
  .login-panel { padding: 24px; }
  .brand-caption { font-size: 15px; }
  .access-header { padding-inline: 15px; flex-wrap: wrap; }
  .access-header-actions .access-secondary { min-height: 37px; padding-inline: 10px; font-size: 12px; }
  .access-card-head { flex-wrap: wrap; }
}

