:root {
  color-scheme: light;
  --portal-blue: #0648ff;
  --portal-blue-dark: #0039d4;
  --portal-orange: #ff6a00;
  --portal-ink: #101828;
  --portal-muted: #5f6c80;
  --portal-line: #dce3ee;
  --portal-surface: #ffffff;
}

body {
  min-height: 100vh;
  background: #f4f7fb;
  color: var(--portal-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--portal-blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--portal-blue-dark);
}

.container {
  width: calc(100% - 32px);
  max-width: 620px;
  margin: 56px auto 0;
}

.wrap {
  position: relative;
  overflow: hidden;
  padding: 44px 48px 48px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(25, 45, 84, 0.1);
}

.wrap::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--portal-blue) 0 78%, var(--portal-orange) 78% 100%);
  content: "";
}

.header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-label {
  margin: 0;
  color: var(--portal-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-intro {
  margin: 6px 0 0;
  color: var(--portal-muted);
  font-size: 14px;
}

.mailing-brand {
  display: flex;
  min-height: 74px;
  align-items: center;
  margin-bottom: 30px;
}

.mailing-brand img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}

.mailing-brand--shipnk img {
  max-width: 230px;
}

h1,
h2,
h3 {
  color: var(--portal-ink);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

p {
  color: var(--portal-muted);
}

label {
  color: var(--portal-ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid #bdc8d8;
  border-radius: 6px;
  box-shadow: none;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(6, 72, 255, 0.2);
  outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--portal-blue);
}

.button {
  min-height: 48px;
  padding: 12px 24px;
  background: var(--portal-blue);
  border-radius: 6px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--portal-blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.button.button-outline {
  background: #ffffff;
  border-color: var(--portal-blue);
  color: var(--portal-blue);
}

.button.button-outline:hover {
  background: #edf3ff;
  color: var(--portal-blue-dark);
}

.section {
  margin-bottom: 36px;
}

.action-row {
  margin: 26px 0 14px;
}

.secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 650;
}

.choice-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 22px;
}

.choice-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.subscription-options {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--portal-line);
}

.section-help {
  margin: -4px 0 18px;
  font-size: 14px;
}

.lists li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.lists input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.data-form {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid var(--portal-line);
}

.data-form .row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 10px;
  margin-bottom: 20px;
}

.data-form .row input {
  margin-top: 4px;
}

.data-form .row p {
  grid-column: 2;
  margin: 3px 0 0;
  font-size: 14px;
}

.portal-footer {
  margin-top: 18px;
  margin-bottom: 40px;
  text-align: center;
}

.portal-footer p {
  margin: 0;
  color: #758196;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

@media screen and (max-width: 650px) {
  .container {
    width: 100%;
    margin-top: 0;
  }

  .wrap {
    min-height: calc(100vh - 70px);
    padding: 34px 24px 36px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  h1 {
    font-size: 26px;
  }

  .mailing-brand {
    min-height: 62px;
  }

  .mailing-brand img,
  .mailing-brand--shipnk img {
    max-width: 190px;
    max-height: 62px;
  }

  .button {
    width: 100%;
  }

  .portal-footer {
    width: calc(100% - 40px);
    margin-top: 16px;
  }
}
