.account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.account-link svg {
  width: 18px;
  height: 18px;
}

.account-link.has-profile svg {
  color: #b44522;
}

.account-dialog {
  width: min(540px, calc(100% - 28px));
}

.account-logo {
  margin-bottom: 18px;
}

.account-dialog>.eyebrow {
  margin-bottom: 12px;
}

.account-dialog h2 {
  margin-bottom: 25px;
}

.account-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}

.account-tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  font-size: 15px;
  background: transparent;
}

.account-tabs .is-active {
  background: var(--ink);
  color: var(--paper);
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
}

.account-field input {
  width: 100%;
  min-width: 0;
  height: 47px;
  border: 1px solid #bec7b7;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  font-family: var(--font);
  font-size: 16px;
}

.account-field input:focus-visible {
  outline: 2px solid #667c5e;
  outline-offset: 2px;
}

.account-field input::placeholder {
  color: #747b70;
}

.field-optional {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.account-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.password-hint {
  margin: -8px 0 20px;
  font-size: 13px;
}

.password-control {
  display: flex;
  align-items: center;
  position: relative;
}

.password-control input {
  padding-right: 90px;
}

.password-control button {
  position: absolute;
  right: 3px;
  height: 39px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  font-size: 13px;
  border-radius: 6px;
}

.password-control button:hover {
  background: #e9eddf;
}

.account-submit {
  width: 100%;
  margin-top: 5px;
}

.account-submit:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.account-back {
  display: block;
  margin: 15px auto 0;
  padding: 10px;
  background: transparent;
  border: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-footnote {
  margin: 21px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.account-error {
  background: #f9e5da;
  color: #8b321a;
  border: 1px solid #e9bfaa;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
}

.account-notice {
  margin: 20px 0 0;
  padding: 12px;
  background: #e3eadb;
  border-radius: 8px;
  color: #374b2e;
  font-size: 15px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5ecdd;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 13px;
}

.profile-details {
  margin: 22px 0;
}

.profile-details>div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.profile-details dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.profile-details dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-note {
  background: #e9eddf;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.profile-note strong {
  font-size: 16px;
  font-weight: 500;
}

.profile-note p {
  font-size: 15px;
  color: var(--muted);
  margin: 8px 0 12px;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header__cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .account-dialog {
    padding: 28px 23px;
  }

  .account-fields-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .account-dialog h2 {
    font-size: 28px;
  }
}
