/* =========================================================
   Account Create
   ========================================================= */

.account-create-page {
  min-height: 70vh;
  padding-bottom: 34px;
  background: #f5f6fb;
}


/* =========================================================
   Hero
   ========================================================= */

.account-create-hero {
  padding: 46px 0 28px;
}

.account-create-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;

  padding: 42px 46px;
  border: 1px solid rgba(46, 47, 121, 0.12);
  border-radius: 32px;

  background:
    radial-gradient(
      circle at 90% 18%,
      rgba(77, 83, 159, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 10%,
      rgba(46, 47, 121, 0.15),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #f8f9ff 0%,
      #eef0fb 48%,
      #f7f8fc 100%
    );

  box-shadow:
    0 26px 64px rgba(31, 25, 84, 0.11);
}

.account-create-hero__content {
  min-width: 0;
}

.account-create-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-create-hero h1 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-create-hero p {
  max-width: 720px;
  margin: 0;
  color: #686d84;
  font-size: 16px;
  line-height: 1.7;
}

.account-create-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.account-create-benefits > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f546d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.account-create-benefits .material-icons {
  color: #4d539f;
  font-size: 18px;
}

.account-create-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.account-create-hero__actions > span {
  color: #686d84;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}


/* =========================================================
   Main section
   ========================================================= */

.account-create-section {
  padding: 10px 0 72px;
}

.account-create-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(280px, 0.76fr);
  gap: 26px;
  align-items: start;
}


/* =========================================================
   Main card
   ========================================================= */

.account-create-card {
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(31, 25, 84, 0.1);
  border-radius: 22px;
  background: #ffffff;

  box-shadow:
    0 16px 42px rgba(31, 25, 84, 0.08);
}

.account-create-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.account-create-card__head > div {
  min-width: 0;
}

.account-create-card__head span {
  display: block;
  margin-bottom: 5px;
  color: #777b91;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-create-card__head h2 {
  margin: 0;
  color: #1b2144;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.account-create-card__head p {
  max-width: 660px;
  margin: 7px 0 0;
  color: #6b6f89;
  font-size: 13px;
  line-height: 1.65;
}


/* =========================================================
   Form
   ========================================================= */

.account-create-form {
  display: block;
}

.account-create-form__grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-create-form .form-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-create-form .form-group--full {
  grid-column: 1 / -1;
}

.account-create-form label {
  color: #1b2144;
  font-size: 13px;
  font-weight: 800;
}

.account-create-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;

  border: 1px solid #d7daea;
  border-radius: 12px;

  color: #1b2144;
  background: #ffffff;

  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.account-create-form input:hover {
  border-color: #c5c9df;
}

.account-create-form input:focus {
  border-color: #4d539f;

  box-shadow:
    0 0 0 4px rgba(77, 83, 159, 0.12);
}

.account-create-form input:-webkit-autofill,
.account-create-form input:-webkit-autofill:hover,
.account-create-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1b2144;

  -webkit-box-shadow:
    0 0 0 1000px #ffffff inset;

  transition:
    background-color 9999s ease-out 0s;
}

.form-label-optional {
  margin-left: 4px;
  color: #8b8ea4;
  font-size: 11px;
  font-weight: 600;
}

.account-create-field-note {
  display: block;
  color: #8b8ea4;
  font-size: 11px;
  line-height: 1.55;
}


/* =========================================================
   Password fields
   ========================================================= */

.account-create-password-field {
  position: relative;
}

.account-create-password-field input {
  padding-right: 76px;
}

.account-create-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);

  min-width: 56px;
  min-height: 32px;
  padding: 6px 9px;

  border: 0;
  border-radius: 9px;

  color: #4d539f;
  background: #eef0ff;

  font: inherit;
  font-size: 11px;
  font-weight: 800;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.account-create-password-toggle:hover {
  color: #1f1954;
  background: #e3e6fb;
}

.account-create-password-toggle:focus-visible {
  outline: 3px solid rgba(77, 83, 159, 0.17);
  outline-offset: 2px;
}


/* =========================================================
   Password requirements
   ========================================================= */

.account-create-password-rules {
  margin-top: 22px;
  padding: 18px;

  border: 1px solid #dfe2ef;
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #f8f9fd,
      #ffffff
    );
}

.account-create-password-rules > span {
  display: block;
  margin-bottom: 12px;
  color: #1b2144;
  font-size: 12px;
  font-weight: 900;
}

.account-create-password-rules__grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.account-create-password-rules__grid > div {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #6b6f89;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;

  transition:
    color 0.2s ease;
}

.account-create-password-rules__grid .material-icons {
  flex: 0 0 auto;
  color: #a6a9bb;
  font-size: 17px;

  transition:
    color 0.2s ease;
}

.account-create-password-rules__grid > div.is-valid {
  color: #247443;
}

.account-create-password-rules__grid
> div.is-valid
.material-icons {
  color: #2f9d59;
}

.account-create-password-rules__grid > div.is-invalid {
  color: #a22a2a;
}

.account-create-password-rules__grid
> div.is-invalid
.material-icons {
  color: #d85d5d;
}


/* =========================================================
   Consent
   ========================================================= */

.account-create-consents {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eceef5;
}

.account-create-consent {
  display: grid;
  grid-template-columns:
    20px
    minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;

  padding: 13px 14px;

  border: 1px solid #e1e4f0;
  border-radius: 13px;

  color: #5f6379;
  background: #fbfbfe;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.account-create-consent:hover {
  border-color: #cfd3e7;
  background: #f8f9fd;
}

.account-create-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;

  accent-color: #4d539f;
  cursor: pointer;
}

.account-create-consent a {
  color: #4d539f;
  font-weight: 800;
  text-decoration: none;
}

.account-create-consent a:hover {
  color: #1f1954;
  text-decoration: underline;
}

.account-create-consent.is-invalid {
  border-color: #d85d5d;
  background: #fff5f5;

  box-shadow:
    0 0 0 4px rgba(216, 93, 93, 0.08);
}


/* =========================================================
   Validation errors
   ========================================================= */

.account-create-form .form-group.is-invalid input {
  border-color: #d85d5d;

  box-shadow:
    0 0 0 4px rgba(216, 93, 93, 0.11);
}

.account-create-form .form-field-error {
  display: block;
  color: #a22a2a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.account-create-consent .form-field-error {
  grid-column: 2;
  margin-top: 2px;
}


/* =========================================================
   Form message
   ========================================================= */

.account-create-form__message {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;

  border-radius: 14px;

  font-size: 13px;
  line-height: 1.55;
}

.account-create-form__message.is-visible {
  display: block;
}

.account-create-form__message.is-success {
  color: #247443;
  border: 1px solid #bfe7cd;
  background: #e9f8ef;
}

.account-create-form__message.is-error {
  color: #a22a2a;
  border: 1px solid #efc2c2;
  background: #fff0f0;
}


/* =========================================================
   Form footer
   ========================================================= */

.account-create-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid #eceef5;
}

.account-create-form__footer .btn {
  min-width: 190px;
}

.account-create-form button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.78;
}


/* =========================================================
   Sidebar
   ========================================================= */

.account-create-sidebar {
  display: grid;
  gap: 22px;

  position: sticky;
  top: 110px;
}

.account-create-side-card {
  overflow: hidden;
  padding: 24px;

  border: 1px solid rgba(31, 25, 84, 0.1);
  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 14px 36px rgba(31, 25, 84, 0.07);
}

.account-create-side-card--primary {
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(77, 83, 159, 0.14),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfbff 100%
    );
}

.account-create-side-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;
  margin-bottom: 18px;

  border-radius: 18px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #1f1954,
      #4d539f
    );

  box-shadow:
    0 14px 28px rgba(31, 25, 84, 0.2);
}

.account-create-side-card__icon .material-icons {
  font-size: 29px;
}

.account-create-side-card__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #4d539f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-create-side-card h2 {
  margin: 0;
  color: #1b2144;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.account-create-side-card p {
  margin: 10px 0 0;
  color: #6b6f89;
  font-size: 13px;
  line-height: 1.65;
}

.account-create-side-card .btn {
  width: 100%;
  margin-top: 18px;
}


/* =========================================================
   Sidebar list
   ========================================================= */

.account-create-side-list {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.account-create-side-list > div {
  display: grid;
  grid-template-columns:
    36px
    minmax(0, 1fr);
  align-items: center;
  gap: 11px;

  padding: 12px;

  border: 1px solid #e3e5f0;
  border-radius: 13px;

  background: #fbfbfe;
}

.account-create-side-list .material-icons {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border-radius: 11px;

  color: #4d539f;
  background: #eef0ff;

  font-size: 18px;
}

.account-create-side-list span:last-child {
  color: #5f6379;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
  .account-create-hero__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-create-hero__actions {
    width: 100%;
  }

  .account-create-layout {
    grid-template-columns: 1fr;
  }

  .account-create-sidebar {
    position: static;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


/* =========================================================
   Medium screens
   ========================================================= */

@media (max-width: 760px) {
  .account-create-form__grid {
    grid-template-columns: 1fr;
  }

  .account-create-form .form-group--full {
    grid-column: auto;
  }

  .account-create-password-rules__grid {
    grid-template-columns: 1fr;
  }

  .account-create-sidebar {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {
  .account-create-page {
    padding-bottom: 20px;
  }

  .account-create-hero {
    padding: 28px 0 22px;
  }

  .account-create-hero__inner {
    gap: 24px;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .account-create-hero h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .account-create-hero p {
    font-size: 14px;
  }

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

  .account-create-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .account-create-hero__actions > span {
    text-align: center;
  }

  .account-create-hero__actions .btn {
    width: 100%;
  }

  .account-create-section {
    padding: 8px 0 50px;
  }

  .account-create-layout,
  .account-create-sidebar {
    gap: 20px;
  }

  .account-create-card {
    padding: 20px;
    border-radius: 18px;
  }

  .account-create-card__head h2 {
    font-size: 20px;
  }

  .account-create-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .account-create-form__footer .btn {
    width: 100%;
    min-width: 0;
  }

  .account-create-side-card {
    padding: 20px;
    border-radius: 18px;
  }
}


/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 420px) {
  .account-create-hero__inner {
    padding: 25px 20px;
  }

  .account-create-card,
  .account-create-side-card {
    padding: 18px;
  }

  .account-create-consent {
    padding: 12px;
  }

  .account-create-password-field input {
    padding-right: 68px;
  }

  .account-create-password-toggle {
    min-width: 50px;
    padding-inline: 7px;
  }
}