/* HR & Payroll login — see design_handoff_hr_payroll_login/README.md */
:root {
  /* Brand colours. Overridden per site from the role theme colour (security/partials/hl_theme.html). */
  --hl-primary: #7b1f7b;
  --hl-primary-rgb: 123, 31, 123;
  --hl-primary-hover: #661866;
  --hl-primary-text: #7b1f7b;
  --hl-primary-text-strong: #5a1259;
  --hl-primary-deep: #5a1259;
  --hl-deep-rgb: 90, 18, 89;
  --hl-link-hover: #4d0f4d;
  --hl-tint: #f5e9f5;
  --hl-tint-2: #f1dff1;
  --hl-line: #e5d2e5;
  --hl-line-2: #cdb6cd;
  --hl-on-primary: #ffffff;
  --hl-accent-rgb: 214, 120, 214;
  --hl-band-dark: #3f0c3f;
  --hl-band-dark-rgb: 63, 12, 63;
  --hl-band-mid: #5a1259;
  --hl-band-end: #8f2f8f;
  --hl-kicker: #f3d9f3;
  --hl-ink: #1e1a22;
  --hl-ink-2: #3d3742;
  --hl-muted: #7a7381;
  --hl-muted-2: #8b8491;
  --hl-placeholder: #a39cab;
  --hl-bg: #f6f4f7;
  --hl-bg-soft: #fbfafc;
  --hl-border: #ece8ee;
  --hl-border-input: #e3dee6;
  --hl-border-faint: #f1eef3;
  --hl-danger: #c4453b;
  --hl-danger-text: #a8362d;
  --hl-danger-bg: #fbeceb;
  --hl-sans: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --hl-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--hl-bg);
  font-family: var(--hl-sans);
  color: var(--hl-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--hl-primary-text); text-decoration: none; }
a:hover { color: var(--hl-link-hover); text-decoration: underline; }
input::placeholder { color: var(--hl-placeholder); }
[hidden] { display: none !important; }
.hl-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Mode / step visibility */
#hl-root[data-mode="portal"] .v-console,
#hl-root[data-mode="console"] .v-portal,
#hl-root[data-step="1"] .s2,
#hl-root[data-step="2"] .s1 { display: none !important; }

/* Page shell */
.hl-page { min-height: 100vh; display: flex; flex-direction: column; }

.hl-header {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 40px; background: #fff; border-bottom: 1px solid var(--hl-border);
}
.hl-brand { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.hl-brand:hover { color: inherit; text-decoration: none; }
.hl-logo {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--hl-primary-deep); color: var(--hl-on-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; letter-spacing: .3px;
}
.hl-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.hl-brand-name { font-weight: 600; font-size: 14px; }
.hl-brand-org { font-size: 12px; color: var(--hl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-brand-text { min-width: 0; }
.hl-support { flex: 0 0 auto; }
.hl-logo-img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.hl-support {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px;
  border: 1px solid var(--hl-border-input); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--hl-ink-2);
  transition: background-color .15s, border-color .15s, color .15s;
}
.hl-support-icon { color: var(--hl-primary-text); flex: 0 0 auto; }
.hl-support:hover {
  background: var(--hl-tint); border-color: var(--hl-line); color: var(--hl-primary-text-strong); text-decoration: none;
}
.hl-support:focus-visible { outline: none; border-color: var(--hl-primary-text); box-shadow: 0 0 0 3px var(--hl-tint-2); }

.hl-main {
  position: relative; isolation: isolate; flex: 1;
  display: flex; flex-direction: column; align-items: center; padding: 44px 24px 56px;
}
/* Brand band behind the top of the card */
.hl-main::before, .hl-main::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 320px; z-index: -1;
}
.hl-main::before {
  background:
    radial-gradient(520px 260px at 12% -10%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(560px 300px at 92% 30%, rgba(var(--hl-accent-rgb), .38), transparent 70%),
    linear-gradient(120deg, var(--hl-band-dark) 0%, var(--hl-band-mid) 40%, var(--hl-band-end) 100%);
}
.hl-main::after {
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 95%);
}
.hl-hero {
  width: 100%; max-width: 980px; color: #fff;
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px;
}
.hl-hero-kicker {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hl-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  color: var(--hl-kicker); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 10px; border-radius: 999px;
}
.hl-hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fe0a8; box-shadow: 0 0 0 3px rgba(127, 224, 168, .25); }
.hl-hero-title { margin: 8px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -.5px; line-height: 1.15; }
.hl-hero-sub { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .78); text-wrap: pretty; }

.hl-card {
  width: 100%; max-width: 980px; display: flex; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--hl-border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 26, 34, .04), 0 30px 60px -30px rgba(var(--hl-band-dark-rgb), .35);
  animation: hl-rise .45s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes hl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hl-heading { display: flex; flex-direction: column; gap: 6px; }
.hl-eyebrow {
  font-family: var(--hl-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--hl-primary-text); font-weight: 600;
}
.hl-h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.3px; text-wrap: pretty; }
.hl-h2 { margin: 0; font-size: 22px; font-weight: 600; }
.hl-sub { font-size: 14px; color: var(--hl-muted); text-wrap: pretty; }
.hl-badge {
  display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-family: var(--hl-mono); font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--hl-primary-text-strong); background: var(--hl-tint); border: 1px solid var(--hl-line);
}

/* Left column: chooser */
.hl-chooser {
  flex: 1 1 380px; padding: 40px; display: flex; flex-direction: column; gap: 20px;
  background:
    radial-gradient(380px 220px at 0% 0%, rgba(var(--hl-primary-rgb), .06), transparent 70%),
    var(--hl-bg-soft);
  border-right: 1px solid var(--hl-border);
}
.hl-options { display: flex; flex-direction: column; gap: 12px; }
.hl-option {
  position: relative; cursor: pointer; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--hl-border-input);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hl-option:hover { border-color: var(--hl-line-2); box-shadow: 0 6px 16px -10px rgba(var(--hl-deep-rgb), .35); }
.hl-option-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hl-tint); color: var(--hl-primary-text);
  transition: background-color .15s, color .15s;
}
.hl-option:has(input:checked) .hl-option-icon {
  background: linear-gradient(135deg, var(--hl-primary) 0%, var(--hl-primary-deep) 100%); color: var(--hl-on-primary);
}
.hl-option:has(input:checked) {
  border: 1.5px solid var(--hl-primary); box-shadow: 0 0 0 3px var(--hl-tint);
}
.hl-option:has(input:focus-visible) { outline: 2px solid var(--hl-primary); outline-offset: 3px; }
.hl-radio {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  border: 1.5px solid #c9c2cf; display: flex; align-items: center; justify-content: center;
}
.hl-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.hl-option:has(input:checked) .hl-radio { border-color: var(--hl-primary-text); }
.hl-option:has(input:checked) .hl-radio-dot { background: var(--hl-primary); }
.hl-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hl-option-title { font-size: 15px; font-weight: 600; color: var(--hl-ink); }
.hl-option-desc { font-size: 13px; color: var(--hl-muted); line-height: 1.45; }
.hl-option-who {
  align-self: flex-start; margin-top: 6px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--hl-mono); font-size: 11px; color: var(--hl-ink-2); background: var(--hl-bg);
}
.hl-option:has(input:checked) .hl-option-who { background: var(--hl-tint); color: var(--hl-primary-text-strong); }
.hl-helper {
  margin-top: auto; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px dashed var(--hl-border-input);
  font-size: 12px; color: var(--hl-muted); line-height: 1.5; text-wrap: pretty;
}
.hl-helper svg { flex: 0 0 auto; margin-top: 1px; color: var(--hl-primary-text); }

/* Right column: form */
.hl-formcol { flex: 1 1 400px; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.hl-form { display: flex; flex-direction: column; gap: 22px; max-width: 380px; width: 100%; margin: 0 auto; }
.hl-fields { display: flex; flex-direction: column; gap: 16px; }
.hl-field { display: flex; flex-direction: column; gap: 6px; }
.hl-label { font-size: 13px; font-weight: 500; color: var(--hl-ink-2); }
.hl-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.hl-small-link { font-size: 12px; }

.hl-input {
  width: 100%; height: 46px; border: 1px solid var(--hl-border-input); border-radius: 8px; padding: 0 14px;
  font: inherit; font-size: 14px; color: var(--hl-ink); background: #fff; outline: none;
}
.hl-input.is-error { border-color: var(--hl-danger); }
.hl-input:focus { border-color: var(--hl-primary-text); box-shadow: 0 0 0 3px var(--hl-tint-2); }
.hl-input-wrap { position: relative; display: flex; }
.hl-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--hl-placeholder); pointer-events: none; transition: color .15s;
}
.hl-input-wrap:focus-within .hl-input-icon { color: var(--hl-primary-text); }
.hl-input--icon { padding-left: 42px; }
.hl-input--pw { flex: 1; padding-right: 64px; }
.hl-input { transition: border-color .15s, box-shadow .15s; }
.hl-pw-toggle {
  position: absolute; right: 6px; top: 7px; height: 32px; padding: 0 10px; border: none; background: transparent;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--hl-primary-text); cursor: pointer; border-radius: 6px;
}
.hl-pw-toggle:hover { background: var(--hl-tint); }
.hl-input--otp {
  height: 56px; font-family: var(--hl-mono); font-size: 24px; letter-spacing: 10px; text-align: center;
}
.hl-otp-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--hl-muted); }
.hl-linkbtn {
  border: none; background: none; padding: 0; font: inherit; color: var(--hl-primary-text); cursor: pointer;
}
.hl-linkbtn:hover { color: var(--hl-link-hover); text-decoration: underline; }

.hl-banner { font-size: 13px; border-radius: 8px; padding: 10px 12px; }
.hl-banner--error { color: var(--hl-danger-text); background: var(--hl-danger-bg); }
.hl-banner--notice { color: var(--hl-primary-text-strong); background: var(--hl-tint); }

.hl-submit {
  height: 48px; border: none; border-radius: 8px; background: var(--hl-primary); color: var(--hl-on-primary);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 8px 18px -10px rgba(var(--hl-deep-rgb), .7);
  transition: background-color .15s, transform .15s;
}
.hl-submit:hover { background: var(--hl-primary-hover); color: var(--hl-on-primary); text-decoration: none; }
.hl-submit:active { transform: translateY(1px); }
.hl-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--hl-tint-2), 0 0 0 5px var(--hl-primary); }
.hl-submit-arrow { transition: transform .15s; }
.hl-submit:hover .hl-submit-arrow { transform: translateX(3px); }
.hl-submit.is-loading .hl-submit-arrow { display: none; }
.hl-submit:disabled { cursor: progress; }
.hl-spinner, .hl-submit-wait { display: none; }
.hl-spinner {
  width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; opacity: .85;
  border-radius: 50%; animation: hl-spin .8s linear infinite;
}
.hl-submit.is-loading .hl-spinner { display: inline-block; }
.hl-submit.is-loading .hl-submit-wait { display: inline; }
.hl-submit.is-loading .hl-submit-label { display: none; }
@keyframes hl-spin { to { transform: rotate(360deg); } }

.hl-back { border: none; background: none; font: inherit; font-size: 13px; color: var(--hl-muted); cursor: pointer; }
.hl-back:hover { color: var(--hl-ink-2); }

.hl-foot {
  padding-top: 18px; border-top: 1px solid var(--hl-border-faint);
  font-size: 13px; color: var(--hl-muted); text-align: center; text-wrap: pretty;
}

.hl-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 20px 40px; font-size: 12px; color: var(--hl-muted-2); border-top: 1px solid var(--hl-border);
}
.hl-footer-secure { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- IT support page ---------- */
.hl-card--stack { flex-direction: column; flex-wrap: nowrap; }
.hl-sp-section { padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.hl-sp-grid { display: flex; flex-wrap: wrap; border-top: 1px solid var(--hl-border); }
.hl-sp-grid > .hl-sp-section { flex: 1 1 420px; }
.hl-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.hl-contact {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: start;
  padding: 18px; border-radius: 14px; border: 1px solid var(--hl-border-input); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.hl-contact:hover { border-color: var(--hl-line-2); box-shadow: 0 6px 16px -10px rgba(var(--hl-deep-rgb), .35); }
.hl-contact-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--hl-on-primary); background: linear-gradient(135deg, var(--hl-primary) 0%, var(--hl-primary-deep) 100%);
}
.hl-contact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hl-contact-label {
  font-family: var(--hl-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--hl-muted-2); font-weight: 600;
}
.hl-contact-value { font-size: 16px; font-weight: 600; color: var(--hl-ink); overflow-wrap: anywhere; }
.hl-contact-value:hover { color: var(--hl-primary-text); }
.hl-contact-note { font-size: 12px; color: var(--hl-muted); }
.hl-contact-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.hl-btn {
  flex: 1; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--hl-border-input); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--hl-ink-2); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hl-btn:hover { background: var(--hl-bg); text-decoration: none; color: var(--hl-ink); }
.hl-btn.is-done { color: #1f7a4a; border-color: #bfe3cd; background: #eef9f2; }
.hl-btn--primary { background: var(--hl-primary); border-color: var(--hl-primary-text); color: var(--hl-on-primary); }
.hl-btn--primary:hover { background: var(--hl-primary-hover); border-color: var(--hl-primary-hover); color: var(--hl-on-primary); }
.hl-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--hl-tint-2); border-color: var(--hl-primary-text); }
.hl-contact-extra { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--hl-muted); }
.hl-contact-extra-item { display: inline-flex; align-items: center; gap: 8px; }
.hl-contact-extra-item svg { color: var(--hl-primary-text); flex: 0 0 auto; }
.hl-empty {
  padding: 18px; border-radius: 12px; background: var(--hl-bg-soft); border: 1px dashed var(--hl-border-input);
  font-size: 14px; color: var(--hl-muted);
}

.hl-faq { display: flex; flex-direction: column; gap: 10px; }
.hl-faq details {
  border: 1px solid var(--hl-border-input); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; scroll-margin-top: 24px;
}
.hl-faq details[open] { border-color: var(--hl-line); box-shadow: 0 0 0 3px var(--hl-tint); }
.hl-faq summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--hl-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hl-faq summary::-webkit-details-marker { display: none; }
.hl-faq summary::after {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--hl-primary-text); border-bottom: 2px solid var(--hl-primary-text);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.hl-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.hl-faq summary:focus-visible { outline: 2px solid var(--hl-primary); outline-offset: 2px; border-radius: 12px; }
.hl-faq p { margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 1.6; color: var(--hl-ink-2); }

.hl-checklist {
  flex: 1 1 300px; margin: 36px 40px 36px 0; padding: 24px; border-radius: 16px; align-self: flex-start;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(var(--hl-accent-rgb), .18), transparent 70%),
    var(--hl-tint);
  display: flex; flex-direction: column; gap: 10px;
}
.hl-checklist-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--hl-primary-text-strong); }
.hl-checklist ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hl-checklist li {
  position: relative; padding-left: 26px; font-size: 13px; line-height: 1.5; color: var(--hl-ink-2);
}
.hl-checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--hl-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hl-checklist-warn {
  margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--hl-line);
  font-size: 12px; font-weight: 500; color: var(--hl-danger-text);
}
.hl-sp-footer {
  padding: 22px 40px; border-top: 1px solid var(--hl-border); background: var(--hl-bg-soft);
  display: flex; justify-content: flex-end;
}
.hl-submit--inline { display: inline-flex; padding: 0 22px; }

/* Narrow screens: columns stack, so swap the divider to the bottom */
@media (max-width: 820px) {
  .hl-chooser { border-right: none; border-bottom: 1px solid var(--hl-border); }
  .hl-checklist { margin: 0 24px 28px; }
}
@media (max-width: 560px) {
  .hl-header, .hl-footer { padding: 16px 20px; }
  .hl-header { flex-wrap: nowrap; gap: 12px; }
  .hl-support { padding: 0 12px; }
  .hl-main { padding: 24px 16px; }
  .hl-chooser, .hl-formcol, .hl-sp-section { padding: 28px 22px; }
  .hl-checklist { margin: 0 16px 24px; }
  .hl-sp-footer { padding: 18px 22px; }
  .hl-sp-footer .hl-submit { flex: 1; }
  .hl-hero-title { font-size: 26px; }
  .hl-option { padding: 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-spinner { animation-duration: 2s; }
  .hl-card { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
