:root {
  color-scheme: light;

  --ink: #17344a;
  --muted: #647789;
  --line: #d8e3e7;

  --teal: #087f7c;
  --teal-dark: #075e67;

  --blue: #236fac;
  --blue-dark: #174f7f;

  --surface: #ffffff;
  --background: #f3f7f8;

  --success: #24a878;
  --warning: #7f4b43;

  --shadow-soft: 0 10px 24px rgba(22, 52, 74, 0.06);
  --shadow-button: 0 8px 18px rgba(8, 127, 124, 0.17);
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(
      180deg,
      rgba(8, 127, 124, 0.06),
      transparent 220px
    ),
    var(--background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.demo-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 22px;
}

/* =========================
   Header
========================= */

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

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

/*
 * Real circular logo.
 * No square holder, no square background and no old SIM/AUT mark.
 */
.demo-brand-logo {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  flex: 0 0 52px !important;
  aspect-ratio: 1 / 1;

  display: block;
  padding: 0;
  margin: 0;

  object-fit: cover;
  object-position: center;

  border: 0;
  outline: 0;
  border-radius: 999px !important;
  clip-path: circle(50% at 50% 50%);

  background: transparent;
  box-shadow: 0 8px 20px rgba(8, 127, 124, 0.16);
}

.demo-brand > div {
  min-width: 0;
}

.demo-brand strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.13em;
  overflow-wrap: anywhere;
}

.demo-brand span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3d6870;
  font-size: 0.82rem;
  font-weight: 750;
}

.demo-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(36, 168, 120, 0.12);
}

/* =========================
   Login introduction
========================= */

.demo-login-section {
  padding: 36px 0 30px;
}

.demo-login-heading {
  max-width: 660px;
  margin-bottom: 22px;
}

.demo-kicker {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.demo-login-heading h1 {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.demo-login-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.demo-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--teal-dark);
  background: #eaf7f5;
  border-left: 4px solid var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================
   Login cards
========================= */

.demo-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-login-panel {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.demo-user-panel {
  border-top-color: var(--blue);
}

.demo-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-panel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #e8f5f3;
  border-radius: 8px;
}

.demo-user-panel .demo-panel-icon {
  color: var(--blue);
  background: #edf4fa;
}

.demo-panel-icon svg,
.demo-info-shield svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-panel-heading small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.demo-panel-heading h2 {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
}

.demo-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.demo-credentials div {
  min-width: 0;
  padding: 10px 12px;
  background: #f8fafb;
  border: 1px solid #e0e8eb;
}

.demo-credentials span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.demo-credentials strong {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.demo-login-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;

  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 6px;
  box-shadow: var(--shadow-button);

  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 900;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.demo-user-panel .demo-login-button {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 8px 18px rgba(35, 111, 172, 0.16);
}

.demo-login-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(22, 52, 74, 0.16);
}

.demo-login-button:focus-visible {
  outline: 3px solid rgba(35, 111, 172, 0.25);
  outline-offset: 3px;
}

/* =========================
   Demo information
========================= */

.demo-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;

  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
}

.demo-info-item + .demo-info-item {
  border-left: 1px solid var(--line);
}

.demo-info-number,
.demo-info-shield {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background: #173f58;
  border-radius: 7px;
  font-weight: 900;
}

.demo-info-shield {
  color: var(--teal);
  background: #e8f5f3;
}

.demo-info-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.demo-info-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.demo-warning {
  margin: 16px 0 0;
  color: var(--warning);
  font-size: 0.84rem;
  text-align: center;
}

.demo-page footer {
  padding: 20px 0 0;
  color: #758795;
  font-size: 0.82rem;
  text-align: center;
}

/* =========================
   Tablet and mobile
========================= */

@media (max-width: 760px) {
  .demo-page {
    width: 100%;
    padding: 0 14px 18px;
  }

  .demo-header {
    padding: 14px 0 12px;
  }

  .demo-brand {
    gap: 9px;
  }

  .demo-brand-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex-basis: 42px !important;
  }

  .demo-brand strong {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  .demo-brand span:last-child {
    font-size: 0.72rem;
  }

  .demo-status {
    font-size: 0.72rem;
  }

  .demo-login-section {
    padding: 20px 0 22px;
  }

  .demo-login-heading {
    margin-bottom: 14px;
  }

  .demo-login-heading h1 {
    margin-top: 4px;
    font-size: 1.48rem;
  }

  .demo-login-heading p {
    font-size: 0.88rem;
  }

  .demo-login-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-login-panel {
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 7px 16px rgba(22, 52, 74, 0.05);
  }

  .demo-panel-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 7px;
  }

  .demo-panel-icon svg {
    width: 20px;
    height: 20px;
  }

  .demo-panel-heading h2 {
    font-size: 1.04rem;
  }

  .demo-credentials {
    margin: 12px 0;
    gap: 8px;
  }

  .demo-credentials div {
    padding: 8px 10px;
  }

  .demo-credentials strong {
    font-size: 0.93rem;
  }

  .demo-login-button {
    min-height: 42px;
    font-size: 0.88rem;
  }

  .demo-information {
    grid-template-columns: 1fr;
  }

  .demo-info-item {
    padding: 14px 4px;
  }

  .demo-info-item + .demo-info-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .demo-info-number,
  .demo-info-shield {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .demo-info-item p {
    font-size: 0.8rem;
  }
}

@media (max-width: 390px) {
  .demo-status {
    display: none;
  }

  .demo-login-heading h1 {
    font-size: 1.38rem;
  }

  .demo-credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
