/* ===============================
   CUVVAR CUSTOMER PORTAL
================================ */

.portal-page {
  --portal-red: #b3001b;
  --portal-red-dark: #790012;
  --portal-ink: #182033;
  --portal-muted: #667085;
  --portal-line: #e6e8ee;
  --portal-soft: #f7f7fa;
  min-height: 100vh;
  margin: 0;
  color: var(--portal-ink);
  background: var(--portal-soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.portal-page .portal-link,
.portal-page .portal-link:visited,
.portal-page .portal-link:hover {
  color: #fff;
}

.portal-eyebrow,
.portal-card-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--portal-red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-eyebrow::before,
.portal-card-label::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

/* Login */
.portal-login-main {
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 7vw, 90px) 20px;
  background:
    radial-gradient(circle at 6% 5%, rgba(179,0,27,.1), transparent 26rem),
    radial-gradient(circle at 96% 90%, rgba(179,0,27,.055), transparent 30rem),
    #f7f7fa;
}

.portal-login-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .76fr);
  gap: clamp(45px, 7vw, 88px);
  align-items: center;
}

.portal-login-copy h1 {
  max-width: 670px;
  margin: 0 0 20px;
  color: var(--portal-ink);
  font-size: clamp(43px, 6vw, 68px);
  font-weight: 820;
  letter-spacing: -.05em;
  line-height: 1;
  text-wrap: balance;
}

.portal-login-copy > p {
  max-width: 640px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 17px;
  line-height: 1.72;
}

.portal-benefits {
  display: grid;
  gap: 11px;
  max-width: 610px;
  margin-top: 31px;
}

.portal-benefits > div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}

.portal-benefits > div > i {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--portal-red);
  background: #fff0f2;
}

.portal-benefits span,
.portal-benefits strong {
  display: block;
}

.portal-benefits span {
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.5;
}

.portal-benefits strong {
  margin-bottom: 2px;
  color: var(--portal-ink);
  font-size: 13px;
}

.portal-login-card {
  position: relative;
  padding: clamp(30px, 4vw, 43px);
  border: 1px solid var(--portal-line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(22,28,42,.13);
}

.portal-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 42px;
  width: 80px;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: var(--portal-red);
}

.portal-card-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--portal-red), var(--portal-red-dark));
  box-shadow: 0 12px 25px rgba(179,0,27,.22);
}

.portal-login-card h2 {
  margin: 0 0 8px;
  color: var(--portal-ink);
  font-size: 31px;
  letter-spacing: -.035em;
}

.portal-login-card > p {
  margin: 0 0 22px;
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.portal-alert-error {
  border: 1px solid #f1c0c8;
  color: #971328;
  background: #fff2f4;
}

.portal-search-form label {
  display: block;
  margin-bottom: 8px;
  color: #3c4555;
  font-size: 12px;
  font-weight: 760;
}

.portal-plate {
  display: flex;
  width: 100%;
  height: 68px;
  overflow: hidden;
  border: 4px solid #17171a;
  border-radius: 10px;
  background: #f7cd24;
  box-shadow: 0 10px 22px rgba(20,20,24,.12);
}

.portal-plate-prefix {
  display: grid;
  flex: 0 0 53px;
  width: 53px;
  place-items: center;
  color: #fff;
  background: #16499b;
  font-size: 15px;
  font-weight: 850;
}

.portal-plate input {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #111;
  background: transparent;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 900;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}

.portal-plate input::placeholder {
  color: rgba(0,0,0,.38);
  opacity: 1;
}

.portal-plate:focus-within {
  box-shadow: 0 0 0 4px rgba(179,0,27,.14), 0 10px 22px rgba(20,20,24,.12);
}

.portal-submit,
.portal-primary-link,
.portal-download {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 14px 20px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-red), var(--portal-red-dark));
  box-shadow: 0 12px 25px rgba(179,0,27,.22);
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.portal-submit:hover,
.portal-primary-link:hover,
.portal-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(179,0,27,.3);
}

.portal-privacy-note {
  margin: 14px 0 0 !important;
  color: #858c99 !important;
  font-size: 10px !important;
  text-align: center;
}

.portal-privacy-note i {
  margin-right: 5px;
  color: var(--portal-red);
}

/* Dashboard */
.portal-dashboard-main {
  min-height: calc(100vh - 78px);
  padding: clamp(40px, 6vw, 72px) 20px clamp(70px, 8vw, 105px);
  background:
    radial-gradient(circle at 3% 2%, rgba(179,0,27,.075), transparent 25rem),
    #f7f7fa;
}

.dashboard-heading,
.policy-status-hero,
.portal-dashboard-grid,
.portal-history-section,
.portal-session-card {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.dashboard-heading {
  display: flex;
  gap: 25px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard-heading h1 {
  margin: 0 0 7px;
  color: var(--portal-ink);
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -.045em;
  line-height: 1;
}

.dashboard-heading p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 14px;
}

.dashboard-heading p strong {
  color: var(--portal-red);
}

.portal-secondary-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  color: var(--portal-ink);
  background: #fff;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.policy-status-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 29px 31px 35px;
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(22,28,42,.08);
}

.policy-status-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 17px;
  font-size: 20px;
}

.status-active .policy-status-icon,
.history-status.status-active {
  color: #18723a;
  background: #eaf8ef;
}

.status-scheduled .policy-status-icon,
.history-status.status-scheduled {
  color: #8a5b05;
  background: #fff5d9;
}

.status-expired .policy-status-icon,
.history-status.status-expired {
  color: #a32337;
  background: #fff0f2;
}

.status-unknown .policy-status-icon,
.history-status.status-unknown {
  color: #5d6573;
  background: #eff1f4;
}

.policy-status-copy > span,
.policy-status-number > span {
  display: block;
  margin-bottom: 3px;
  color: #8a909b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.policy-status-copy h2 {
  margin: 0 0 3px;
  color: var(--portal-ink);
  font-size: 27px;
  letter-spacing: -.035em;
}

.policy-status-copy p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 12px;
}

.policy-status-number {
  min-width: 190px;
  padding: 12px 15px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fafafd;
}

.policy-status-number strong {
  color: var(--portal-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.policy-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: #eceef2;
}

.policy-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 99px 99px 0;
  background: var(--portal-red);
  transition: width .65s ease;
}

.status-active .policy-progress span { background: #21a653; }
.status-scheduled .policy-progress span { background: #e0a421; }
.status-expired .policy-progress span { background: #c52a42; }

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 22px;
}

.portal-info-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(22,28,42,.06);
}

.portal-info-heading {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 22px;
}

.portal-info-heading > span {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--portal-red);
  background: #fff0f2;
}

.portal-info-heading small,
.portal-info-heading h2 {
  display: block;
  margin: 0;
}

.portal-info-heading small {
  color: #9297a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-info-heading h2 {
  color: var(--portal-ink);
  font-size: 20px;
  letter-spacing: -.025em;
}

.policy-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.policy-detail-list > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #eceef2;
  border-radius: 11px;
  background: #fafafd;
}

.policy-detail-list dt {
  margin-bottom: 3px;
  color: #9297a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.policy-detail-list dd {
  margin: 0;
  color: #3b4454;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.document-card > p {
  margin: 0 0 20px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.65;
}

.portal-download {
  margin-top: 0;
}

.portal-document-unavailable {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #ead8b0;
  border-radius: 12px;
  color: #775109;
  background: #fff9e8;
}

.portal-document-unavailable p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.portal-text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  color: var(--portal-red);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.portal-security-note {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--portal-line);
  color: #8b919c;
  font-size: 9px;
  text-align: center;
}

.portal-security-note i {
  margin-right: 5px;
  color: var(--portal-red);
}

.portal-history-section {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(22,28,42,.055);
}

.portal-history-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.portal-history-heading .portal-eyebrow {
  margin-bottom: 5px;
}

.portal-history-heading h2 {
  margin: 0;
  color: var(--portal-ink);
  font-size: 23px;
  letter-spacing: -.03em;
}

.portal-history-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--portal-red);
  background: #fff0f2;
  font-size: 10px;
  font-weight: 800;
}

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

.portal-history-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--portal-line);
  border-radius: 13px;
  background: #fafafd;
}

.portal-history-card > div {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}

.portal-history-card strong {
  color: var(--portal-ink);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.history-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-history-card p {
  margin: 11px 0 5px;
  color: #4d5666;
  font-size: 11px;
  font-weight: 700;
}

.portal-history-card small {
  display: block;
  color: #858c98;
  font-size: 9px;
  line-height: 1.5;
}

.portal-session-card {
  max-width: 560px;
  padding: 45px;
  border: 1px solid var(--portal-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(22,28,42,.11);
  text-align: center;
}

.portal-session-card .portal-card-mark {
  margin-inline: auto;
}

.portal-session-card h1 {
  margin: 0 0 12px;
  color: var(--portal-ink);
  font-size: 31px;
  letter-spacing: -.035em;
}

.portal-session-card p {
  margin: 0 0 22px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.65;
}

.portal-primary-link {
  width: auto;
  margin: 0 auto;
}

.portal-simple-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: center;
  padding: 21px;
  color: #9ca1aa;
  background: #17151a;
  font-size: 10px;
}

.portal-simple-footer a {
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portal-login-shell,
  .portal-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .portal-login-copy {
    max-width: 760px;
    text-align: center;
  }

  .portal-login-copy > p {
    margin-inline: auto;
  }

  .portal-benefits {
    margin-inline: auto;
    text-align: left;
  }

  .portal-login-card {
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .portal-history-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .portal-login-main,
  .portal-dashboard-main {
    padding: 32px 14px 65px;
  }

  .portal-login-copy h1 {
    font-size: clamp(39px, 12vw, 51px);
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-status-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 23px 20px 31px;
  }

  .policy-status-number {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .policy-detail-list,
  .portal-history-grid {
    grid-template-columns: 1fr;
  }

  .portal-info-card,
  .portal-history-section {
    padding: 21px;
  }

  .portal-session-card {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-submit,
  .portal-primary-link,
  .portal-download,
  .policy-progress span {
    transition: none;
  }
}
