.account-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 9% 36%, rgb(255 212 71 / 12%), transparent 29%),
    #f6f8fc;
}

.account-topbar > a {
  min-height: 28px;
  padding: 5px 0;
  color: white;
  font-size: 11px;
  font-weight: 650;
}

.account-header {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.account-header > .brand {
  font-size: 21px;
}

.account-back-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe6ef;
  border-radius: 5px;
  background: white;
  color: #43566e;
  font-size: 11px;
  font-weight: 650;
}

.account-back-link:hover {
  border-color: #b6c8e0;
  color: var(--blue);
}

.account-layout {
  display: grid;
  min-height: 670px;
  padding-top: 37px;
  padding-bottom: 51px;
  align-items: start;
  grid-template-columns: minmax(230px, 0.67fr) minmax(0, 1.33fr);
  gap: 31px;
}

.account-welcome {
  position: sticky;
  top: 28px;
  display: flex;
  min-height: 500px;
  padding: 35px 31px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(147deg, #0b428b 0%, #0750b5 72%, #1766c6 100%);
  box-shadow: 0 15px 40px rgb(22 66 123 / 15%);
  color: white;
}

.account-welcome::after {
  position: absolute;
  right: -88px;
  bottom: -96px;
  width: 250px;
  height: 250px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgb(255 255 255 / 4%), 0 0 0 51px rgb(255 255 255 / 4%);
  content: "";
}

.account-welcome-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 35px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 43%);
  border-radius: 50%;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.1em;
}

.account-welcome-mark > span {
  color: var(--yellow);
}

.account-welcome .eyebrow {
  position: relative;
  z-index: 1;
  color: #e2ecff;
  font-size: 8px;
}

.account-welcome h1 {
  position: relative;
  z-index: 1;
  margin: 16px 0 12px;
  color: white;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.account-welcome h1 > span {
  color: var(--yellow);
}

.account-welcome > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 290px;
  margin: 0;
  color: #e0eafa;
  font-size: 12px;
  line-height: 1.85;
}

.account-welcome-foot {
  position: relative;
  z-index: 1;
  margin-top: 47px;
  color: #f0f3f8;
  font-size: 10px;
}

.account-welcome-foot > span {
  padding-right: 6px;
  color: var(--yellow);
}

.account-panels {
  display: grid;
  gap: 16px;
}

.account-card {
  padding: 22px 24px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  background: white;
  box-shadow: 0 4px 15px rgb(32 58 89 / 4%);
}

.account-card .eyebrow {
  color: #6b7890;
  font-size: 8px;
}

.account-card h2 {
  margin: 6px 0 0;
  color: #213750;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.account-card-intro {
  margin: 8px 0 15px;
  color: #67778c;
  font-size: 10px;
  line-height: 1.7;
}

.account-auth-tabs {
  display: flex;
  gap: 14px;
  border-bottom: 2px solid #e4e9f1;
  margin-bottom: 14px;
}

.account-auth-tab {
  background: none;
  border: none;
  padding: 7px 2px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7890;
  cursor: pointer;
  position: relative;
}

.account-auth-tab.is-active {
  color: var(--blue);
}

.account-auth-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.account-signout-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 9px;
}

.sign-in-providers {
  display: grid;
  gap: 8px;
}

.provider-button {
  display: grid;
  width: 100%;
  min-height: 45px;
  padding: 6px 12px;
  align-items: center;
  grid-template-columns: 31px 1fr 18px;
  gap: 6px;
  border: 1px solid #dfe5ec;
  border-radius: 5px;
  background: white;
  color: #32465e;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.provider-button:hover {
  border-color: #b3c6df;
  background: #f8faff;
}

.provider-logo {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
}

.google-logo {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 19px;
}

.apple-logo {
  background: #172432;
  color: white;
  font-size: 15px;
}

.microsoft-logo {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  border-radius: 0;
}

.microsoft-logo > i:nth-child(1) {
  background: #f15123;
}

.microsoft-logo > i:nth-child(2) {
  background: #80bc06;
}

.microsoft-logo > i:nth-child(3) {
  background: #05a6f0;
}

.microsoft-logo > i:nth-child(4) {
  background: #ffba08;
}

.provider-arrow {
  color: #8593a6;
  font-size: 13px;
  text-align: right;
}

.other-providers {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #edf0f4;
}

.other-providers h3 {
  margin: 0 0 9px;
  color: #586980;
  font-size: 10px;
}

.other-providers > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.other-provider-button {
  min-height: 33px;
  padding: 0 12px;
  border: 1px solid #e1e7ef;
  border-radius: 4px;
  background: white;
  color: #40546c;
  font-size: 9px;
  font-weight: 650;
}

.other-provider-button:hover {
  border-color: #adc1dc;
  color: var(--blue);
}

.sign-in-feedback {
  min-height: 32px;
  margin: 12px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #e6b516;
  border-radius: 0 3px 3px 0;
  background: #fff9e7;
  color: #5d4d1f;
  font-size: 9px;
  line-height: 1.65;
}

.privacy-hint {
  margin: 10px 0 0;
  color: #7b8797;
  font-size: 9px;
  line-height: 1.6;
}

.privacy-hint > span {
  padding-right: 4px;
  color: var(--green);
}

.profile-card {
  scroll-margin-top: 15px;
}

.profile-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-badge {
  padding: 5px 8px;
  border-radius: 3px;
  background: #fff0bd;
  color: #755600;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-summary {
  display: flex;
  min-height: 62px;
  margin: 15px 0;
  padding: 9px 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid #e7ebf1;
  border-radius: 5px;
  background: #f9fbfe;
}

.profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #e4eeff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.profile-summary > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.profile-summary strong,
.profile-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary strong {
  color: #31455d;
  font-size: 10px;
}

.profile-summary small {
  color: #738196;
  font-size: 9px;
}

.profile-summary-location {
  margin-left: auto;
  padding-left: 5px;
  color: #65768c;
  font-size: 9px;
  white-space: nowrap;
}

.form-notice {
  margin: 0 0 13px;
  padding: 9px 10px;
  border: 1px solid #f0e2b2;
  border-radius: 4px;
  background: #fff9e7;
  color: #625323;
  font-size: 9px;
  line-height: 1.65;
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-field {
  display: flex;
  min-width: 0;
  margin-bottom: 11px;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  color: #364c65;
  font-size: 9px;
  font-weight: 700;
}

.form-field label > span {
  color: #8793a1;
  font-size: 8px;
  font-weight: 400;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid #dce3ed;
  border-radius: 4px;
  outline: 0;
  background: white;
  color: #31465f;
  font-size: 10px;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(7 80 181 / 9%);
}

.profile-save-button {
  min-height: 41px;
  font-size: 10px;
}

.profile-feedback {
  min-height: 16px;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 9px;
  line-height: 1.6;
}

.account-footer {
  display: flex;
  min-height: 56px;
  padding: 10px max(24px, calc((100% - 1120px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5eaf1;
  background: white;
  color: #748196;
  font-size: 9px;
}

.account-footer > a {
  color: var(--blue);
  font-weight: 650;
}

.account-footer > a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .account-topbar {
    padding-right: 15px;
    padding-left: 15px;
    font-size: 9px;
  }

  .account-topbar > a {
    font-size: 9px;
  }

  .account-header {
    width: calc(100% - 32px);
    min-height: 65px;
  }

  .account-header > .brand {
    font-size: 18px;
  }

  .account-header > .brand img {
    width: 35px;
    height: 35px;
  }

  .account-back-link {
    min-height: 37px;
    padding: 0 8px;
    gap: 5px;
    font-size: 9px;
  }

  .account-layout {
    width: calc(100% - 28px);
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 26px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-welcome {
    position: relative;
    top: auto;
    min-height: 210px;
    padding: 23px 22px 20px;
  }

  .account-welcome-mark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 19px;
  }

  .account-welcome .eyebrow {
    max-width: 230px;
    font-size: 8px;
  }

  .account-welcome h1 {
    margin: 10px 0 8px;
    font-size: 33px;
  }

  .account-welcome > p:not(.eyebrow) {
    max-width: 340px;
    font-size: 10px;
  }

  .account-welcome-foot {
    margin-top: 14px;
    font-size: 9px;
  }

  .account-panels {
    gap: 12px;
  }

  .account-card {
    padding: 18px 16px;
  }

  .account-card h2 {
    font-size: 18px;
  }

  .account-card-intro {
    font-size: 9px;
  }

  .provider-button {
    min-height: 44px;
  }

  .account-footer {
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 7px 12px;
    font-size: 8px;
  }

  .account-footer > span:nth-child(2) {
    width: 100%;
    order: 1;
  }
}

@media (max-width: 380px) {
  .account-header {
    width: calc(100% - 22px);
  }

  .account-back-link {
    font-size: 8px;
  }

  .account-layout {
    width: calc(100% - 20px);
  }

  .account-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .form-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
