.account-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 103, 234, .07), transparent 27rem),
    #f5f8fd;
}

.account-header {
  justify-content: space-between;
}

.account-back-link,
.logout-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 1px solid #cbd9ee;
  border-radius: 11px;
  color: #304d6c;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.logout-button {
  cursor: pointer;
}

.account-back-link:hover,
.logout-button:hover {
  border-color: #aac4ec;
  color: var(--blue);
}

.auth-page {
  max-width: 1190px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: start;
  gap: 58px;
  padding: 72px 0;
  overflow: visible;
}

.auth-intro {
  padding-top: 34px;
}

.auth-intro h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.13;
  letter-spacing: -.065em;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 0 35px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.8;
}

.account-benefits {
  display: grid;
  gap: 12px;
}

.account-benefits article {
  max-width: 525px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid #e0eaf6;
  border-radius: 13px;
  background: #fff;
}

.account-benefits strong {
  min-width: 94px;
  color: var(--blue);
  font-size: 15px;
}

.account-benefits span {
  color: #617994;
  font-size: 14px;
}

.auth-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(13, 36, 70, .07);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  background: #f3f7fd;
}

.auth-tabs button {
  min-height: 54px;
  border-radius: 12px;
  color: #526b88;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 3px 12px rgba(14, 42, 78, .07);
}

.auth-form {
  padding: 34px;
}

.auth-form.hidden {
  display: none;
}

.auth-form h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 27px;
}

.auth-form label,
.profile-card label {
  display: block;
  margin-bottom: 18px;
  color: #3a5370;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input,
.profile-card input,
.profile-card textarea {
  width: 100%;
  min-height: 51px;
  display: block;
  margin-top: 9px;
  padding: 0 14px;
  border: 1px solid #d1deee;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.profile-card textarea {
  min-height: 76px;
  padding: 12px 14px;
  resize: vertical;
}

.auth-form input:focus,
.profile-card input:focus,
.profile-card textarea:focus {
  border-color: var(--blue);
  outline: 3px solid #e6efff;
}

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

.auth-fields .full {
  grid-column: 1 / -1;
}

.terms-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 7px 0 23px !important;
  color: #647b94 !important;
  font-weight: 500 !important;
}

.terms-check input {
  width: 17px;
  min-height: 17px;
  margin: 3px 0 0;
}

.account-primary,
.account-secondary {
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.account-primary {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.auth-form .account-primary {
  width: 100%;
}

.account-primary:hover {
  background: var(--blue-dark);
}

.auth-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: #d24650;
  font-size: 13px;
}

.dashboard-nav {
  display: flex;
  gap: 11px;
}

.dashboard-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 22px;
  color: #46607d;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-nav a.current {
  color: var(--blue);
  background: #ebf3ff;
}

.dashboard-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 0 70px;
  overflow: visible;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 31px 37px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(125deg, #0d274e, #1767ea);
}

.dashboard-hero .eyebrow {
  margin-bottom: 12px;
  color: #8cbcff;
}

.dashboard-hero h1 {
  margin: 0 0 8px;
  font-size: 35px;
}

.dashboard-hero p:last-child {
  margin: 0;
  color: #d7e6ff;
  font-size: 14px;
}

.dashboard-order {
  flex: 0 0 auto;
  border-color: #fff;
  color: var(--blue);
  background: #fff;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 20px;
}

.dashboard-stats article,
.dashboard-card {
  border: 1px solid #e0e9f5;
  border-radius: 16px;
  background: #fff;
}

.dashboard-stats article {
  padding: 19px 21px;
}

.dashboard-stats span,
.dashboard-stats small {
  display: block;
  color: #687f9b;
  font-size: 12px;
}

.dashboard-stats strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 29px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  gap: 20px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.dashboard-card {
  padding: 25px 26px;
}

.dashboard-utilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.card-head .eyebrow {
  margin-bottom: 8px;
}

.card-head h2 {
  margin: 0;
  font-size: 21px;
}

.card-head > a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.account-order-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid #e8eef7;
}

.account-order-line:last-child {
  border-bottom: 0;
}

.account-order-line strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.account-order-line span {
  color: #6c829c;
  font-size: 12px;
}

.account-order-line div:last-child {
  text-align: right;
}

.account-order-line b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.account-order-line em {
  padding: 5px 9px;
  border-radius: 999px;
  color: #09745d;
  background: #e3f6f0;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.empty-account-state {
  min-height: 176px;
  display: grid;
  place-content: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: #f6f9fe;
  text-align: center;
}

.empty-account-state p,
.empty-copy {
  color: #667e99;
  font-size: 13px;
}

.empty-account-state a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
}

.document-list {
  display: grid;
  gap: 11px;
}

.document-list article {
  padding: 15px;
  border-radius: 10px;
  background: #f6f9fe;
}

.document-list .empty-copy {
  min-height: 75px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #f6f9fe;
}

.document-list strong,
.document-list span {
  display: block;
}

.document-list strong {
  margin-bottom: 8px;
}

.document-list span {
  color: #5b738e;
  font-size: 12px;
  line-height: 1.8;
}

.account-secondary {
  width: 100%;
  border: 1px solid #c9d9ed;
  color: #35516e;
  background: #f5f8fc;
  cursor: pointer;
}

.save-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #08775f;
  font-size: 12px;
}

.notice-list {
  display: grid;
  gap: 11px;
}

.notice-list article {
  padding: 14px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: #f4f8ff;
}

.notice-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.notice-list p {
  margin: 0;
  color: #627a95;
  font-size: 12px;
  line-height: 1.6;
}

.secure-card h2 {
  margin: 8px 0 14px;
  font-size: 19px;
}

.secure-card ul {
  margin: 0;
  padding-left: 19px;
  color: #617a96;
  font-size: 13px;
  line-height: 2;
}

@media (max-width: 1060px) {
  .auth-page,
  .dashboard-page {
    max-width: calc(100% - 38px);
  }

  .auth-page,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-utilities {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .auth-page,
  .dashboard-page {
    padding-top: 34px;
  }

  .auth-intro h1 {
    font-size: 39px;
  }

  .auth-fields,
  .dashboard-stats,
  .dashboard-utilities {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    display: none;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 21px;
  }

  .dashboard-order {
    width: 100%;
  }
}
