:root {
  --brand: #6d40f5;
  --brand-dark: #5530d4;
  --meditap: #ff3131;
  --tappass: #179947;
  --text: #0d1b2a;
  --muted: #526b88;
  --border: #e2e9f3;
}

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

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

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #f8fbff;
  background:
    radial-gradient(ellipse at 20% 28%, rgba(109, 64, 245, 0.24) 0%, transparent 48%),
    radial-gradient(ellipse at 80% 72%, rgba(37, 87, 232, 0.2) 0%, transparent 46%),
    radial-gradient(ellipse at 58% 6%, rgba(23, 153, 71, 0.1) 0%, transparent 38%),
    linear-gradient(155deg, #080f1c 0%, #0e1c35 46%, #080f1c 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

.login-shell {
  width: min(1180px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

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

.brand-logo {
  width: min(320px, 52vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-lockup span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 240, 252, 0.8);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-copy {
  max-width: 620px;
  justify-self: end;
  text-align: right;
}

.eyebrow {
  margin: 0 0 8px;
  color: #9adbb2;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}

.hero-copy p:last-child {
  margin: 16px 0 0;
  color: rgba(232, 240, 252, 0.76);
  font-size: 17px;
  line-height: 1.65;
}

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

.product-card {
  position: relative;
  isolation: isolate;
  min-height: 372px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(222, 233, 247, 0.88);
  color: #102044;
  box-shadow: 0 24px 70px rgba(3, 10, 24, 0.34);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(13, 27, 42, 0.04), transparent 44%);
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 90px rgba(3, 10, 24, 0.42);
  outline: none;
}

.card-glow {
  position: absolute;
  inset: auto -20% -24% -20%;
  height: 44%;
  z-index: -1;
  opacity: 0.16;
  background: var(--brand);
  transform: skewY(-5deg);
}

.product-card-meditap .card-glow,
.product-card-meditap .arrow {
  background: var(--meditap);
}

.product-card-tappass .card-glow,
.product-card-tappass .arrow {
  background: var(--tappass);
}

.product-card-portal .card-glow,
.product-card-portal .arrow {
  background: var(--brand);
}

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

.product-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 76px;
}

.product-logo-wrap img {
  width: auto;
  max-width: 190px;
  max-height: 76px;
  object-fit: contain;
}

.product-card-portal .product-logo-wrap img {
  max-width: 210px;
  max-height: 52px;
}

.arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease;
}

.product-card:hover .arrow,
.product-card:focus-visible .arrow {
  transform: translateX(3px);
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 34px 0;
}

.product-name {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}

.product-label {
  color: #3d5472;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-desc {
  min-height: 78px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.card-footer {
  min-height: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-footer span {
  color: #6b84a0;
  font-size: 12.5px;
  font-weight: 700;
}

.card-footer strong {
  color: #102044;
  font-size: 13px;
  white-space: nowrap;
}

.support-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  color: rgba(232, 240, 252, 0.74);
  font-size: 13.5px;
}

.support-line a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 860px) {
  .login-shell {
    width: min(100% - 28px, 760px);
    padding: 32px 0;
  }

  .login-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-logo {
    width: min(300px, 86vw);
  }

  .hero-copy {
    justify-self: start;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p:last-child {
    font-size: 15.5px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 300px;
  }

  .product-desc {
    min-height: 0;
  }

  .support-line {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 38px;
  }

  .product-card {
    padding: 18px;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
