/* ============================================================
   DAFI HRMIS — Sign in
   Flat palette: white, #EEF2FA, #EFF2FC, #D6DDEA, DAFI red
   ============================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jakarta-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jakarta-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/jakarta-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/jakarta-700.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/jakarta-800.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/amiri-400.woff2") format("woff2");
}

:root {
  --red: #b3121b;
  --red-dark: #8b0d14;
  --ink: #232221;
  --grey: #565c6b;
  --muted: #6f7585;
  --faint: #959cb0;
  --line: #d6ddea;
  --line-soft: #e4e9f4;
  --surface: #EEF2FA;
  --field: #EEF2FA;
  --band: #EFF2FC;
  --white: #fff;
  --green: #3f6350;
  --green-soft: #D8E9DF;
  --sans: "Plus Jakarta Sans", Arial, sans-serif;
  --serif: "Plus Jakarta Sans", Arial, sans-serif;
  --radius-lg: 22px;
  --radius-md: 10px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
}

body.login-page {
  height: 100svh;
  overflow: hidden;
  background: #FFFFFF;
}

.login-shell {
  --login-scale: 1;
  width: calc(100% / var(--login-scale));
  transform: scale(var(--login-scale));
  transform-origin: top left;
  will-change: transform;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tab,
.demo-trigger,
[role="button"] {
  cursor: pointer;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.top-line {
  height: 4px;
  background: var(--red);
}

.site-header {
  background: #EFF2FC;
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  width: min(100% - 48px, var(--container));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 38px;
  mix-blend-mode: multiply;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.brand-word {
  color: var(--grey);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.brand-word span {
  color: var(--red);
}

.help {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.help a {
  color: var(--red);
  font-weight: 700;
}

.help a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- hero ---------------- */
.hero {
  background: #FFFFFF;
  padding: 30px 0 82px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid #D6DDEA;
  border-radius: 50% 50% 0 0;
  transform: rotate(16deg);
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--red);
  font-weight: 400;
}

.hero-sub {
  max-width: 470px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hero-aside {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
  flex-shrink: 0;
}

.arabic {
  margin: 0;
  color: var(--red);
  font-family: "Amiri", serif;
  font-size: 42px;
  line-height: 1.1;
  opacity: 0.9;
}

.arabic-tr {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stats {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin: auto 0 0;
}

.hero-stats div {
  text-align: right;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------------- band + card ---------------- */
.band {
  position: relative;
  background: #FFFFFF;
  padding: 0;
}

.watermark {
  position: absolute;
  right: 40px;
  bottom: 18px;
  width: auto;
  height: 220px;
  opacity: 0.06;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.band-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 474px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.login-card {
  margin-top: -72px;
  background: #EFF2FC;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 30px 10px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.version {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.login-card h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.card-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.roles li {
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--field);
  color: var(--grey);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  margin-top: 10px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--grey);
  font-size: 13px;
  font-weight: 700;
}

.demo-trigger svg {
  width: 11px;
  height: 11px;
  color: var(--muted);
}

.demo-trigger span {
  color: var(--red);
  font-weight: 800;
}

.demo-trigger:hover {
  border-color: var(--grey);
  background: #fff;
}

/* ---------------- modals ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(35, 34, 33, 0.5);
  cursor: default;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(448px, 100%);
  max-height: 88svh;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.modal-panel-sm {
  width: min(400px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.modal-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--grey);
  font-size: 16px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--grey);
  color: var(--ink);
}

.modal-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.modal-sub b {
  color: var(--grey);
}

.demo-list {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.demo-item:hover {
  border-color: var(--grey);
  background: var(--surface);
}

.demo-item .demo-copy {
  min-width: 0;
  flex: 1;
}

.demo-item b {
  display: block;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.demo-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.demo-item .demo-level {
  flex-shrink: 0;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--redsoft);
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-item .demo-choose {
  flex-shrink: 0;
  color: var(--faint);
}

.demo-item .demo-choose svg {
  width: 12px;
  height: 12px;
}

.modal-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.modal-action {
  margin-top: 14px;
}

.login-form {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label,
.label-row label {
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.input-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.input-wrap:focus-within {
  border-color: var(--grey);
  background: #fff;
}

.input-wrap > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.input-wrap input::placeholder {
  color: var(--faint);
  font-weight: 400;
}

.status-chip {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-chip[hidden] {
  display: none;
}

.icon-button {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button svg[hidden] {
  display: none;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.check-box {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: transparent;
}

.check-box svg {
  width: 9px;
  height: 9px;
  stroke-width: 3;
}

.check input:checked + .check-box {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.button-primary {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.75;
}

.button-arrow {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.button-arrow svg {
  width: 14px;
  height: 14px;
}

.form-status {
  min-height: 14px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-info {
  color: var(--green);
}

.divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.button-wa {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--grey);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.button-wa:hover {
  border-color: var(--grey);
  color: var(--ink);
}

.wa-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
}

.wa-icon svg {
  width: 13px;
  height: 13px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #EEF2FA;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--red);
}

.note p {
  margin: 0;
}

.note b {
  color: var(--grey);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 11px;
}

.secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.secure svg {
  width: 10px;
  height: 10px;
}

.secure b {
  color: var(--grey);
}

/* ---------------- side ---------------- */
.side {
  padding-top: 24px;
  min-width: 0;
  max-width: 560px;
}

.side .eyebrow {
  color: var(--grey);
}

.side h2 {
  max-width: 440px;
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.side-lead {
  max-width: 460px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.features {
  max-width: 470px;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  width: 20px;
  flex-shrink: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.features div {
  min-width: 0;
}

.features h3 {
  margin: 0;
  color: var(--grey);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.features p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.feature-icon {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--faint);
  flex-shrink: 0;
}

.side-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0 0;
}

.side-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-stats dd {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.side-quote {
  max-width: 430px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
}

.side-quote cite {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-login {
  max-width: 470px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.demo-login .eyebrow {
  color: var(--grey);
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.demo-row span {
  width: 64px;
  color: var(--grey);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-row b {
  color: var(--ink2);
  font-weight: 700;
}

.demo-row em {
  margin-left: auto;
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

/* ---------------- portal note ---------------- */
.portal-note {
  background: #fff;
  padding: 30px 0;
}

.portal-note[hidden] {
  display: none;
}

.portal-note-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.portal-note h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.portal-note p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.portal-note a {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
}

/* ---------------- footer ---------------- */
.site-footer {
  display: none;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--faint);
  font-size: 11.5px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner b {
  color: var(--grey);
  letter-spacing: 0.08em;
}

.footer-inner span {
  color: var(--faint);
}

.footer-right {
  text-align: right;
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-inner {
    gap: 32px;
  }

  .hero-aside {
    display: none;
  }

  .hero-copy {
    max-width: 760px;
  }

  .band-inner {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
    gap: 40px;
  }

  .login-card {
    margin-top: -56px;
  }

  .side {
    max-width: none;
    padding-top: 0;
  }

  .side h2,
  .side-lead,
  .features,
  .side-quote {
    max-width: none;
  }

  .watermark {
    height: 170px;
    right: 24px;
    bottom: 12px;
  }
}

@media (max-width: 720px) {
  body.login-page {
    height: 100svh;
  }

  .header-inner {
    width: min(100% - 32px, var(--container));
    min-height: 68px;
  }

  .brand-logo {
    height: 32px;
  }

  .help {
    font-size: 12px;
  }

  .hero {
    padding: 26px 0 52px;
  }

  .hero-inner,
  .band-inner {
    width: min(100% - 32px, var(--container));
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .hero-sub {
    font-size: 13px;
  }

  .hero::after {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -80px;
  }

  .band {
    padding: 0;
  }

  .login-card {
    margin-top: -44px;
    padding: 20px 18px 12px;
    border-radius: 18px;
  }

  .login-card h2 {
    font-size: 29px;
  }

  .roles {
    display: none;
  }

  .card-foot {
    display: none;
  }

  .side {
    display: none;
  }

  .watermark {
    display: none;
  }

  .footer-inner {
    width: min(100% - 32px, var(--container));
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 0;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-divider,
  .brand-word {
    display: none;
  }

  .help {
    max-width: 140px;
    white-space: normal;
    text-align: right;
    line-height: 1.35;
  }

  .roles li {
    font-size: 10px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .side-stats dd {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Short laptop screens: the composition is scaled to fit by app.js. */
