/* Growvest public account pages */
.main-content:has(.nx-auth-title) > .flat-spacing-3,
.main-content:has(.nx-auth-tfa) > .flat-spacing-3 {
  padding: 70px 0 110px;
  background:
    radial-gradient(circle at 12% 12%, rgba(162, 145, 254, .15), transparent 33%),
    radial-gradient(circle at 88% 72%, rgba(113, 187, 249, .13), transparent 34%),
    #f8f8fc;
}

.main-content:has(.nx-auth-title) > .flat-spacing-3 > .container,
.main-content:has(.nx-auth-tfa) > .flat-spacing-3 > .container {
  max-width: 1000px;
}

.nx-auth-title {
  margin: 0 auto 12px;
  color: #17172d;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.035em;
  text-align: center;
}

.nx-auth-sub {
  max-width: 570px;
  margin: 0 auto 34px;
  color: #666579;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.nx-form-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(91, 79, 159, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(30, 25, 82, .12), 0 3px 12px rgba(30, 25, 82, .04);
}

.nx-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--ai-startup-gradient, linear-gradient(90deg, #a291fe, #5c57e7, #71bbf9));
}

.nx-form-card:has(form[name="regform"]) { max-width: 900px !important; }
.nx-form-table { display: block; width: 100%; border: 0; }
.nx-form-table tbody { display: grid; grid-template-columns: 1fr; gap: 18px; width: 100%; }
.nx-form-card:has(form[name="regform"]) .nx-form-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.nx-form-table tr { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nx-form-table td { display: block; width: 100%; padding: 0; min-width: 0; }
.nx-form-table td.nx-label,
.nx-form-table td.menutxt { width: 100%; color: #24243b; font-size: 13px; font-weight: 700; line-height: 1.4; }
.nx-form-table .nx-input,
.nx-form-table .inpts {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #ddddea;
  border-radius: 12px;
  background: #fafaff;
  color: #17172d;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nx-form-table .nx-input:focus,
.nx-form-table .inpts:focus {
  outline: none;
  border-color: #7667ed;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(118, 103, 237, .14);
}
.nx-form-table tr:has(td[colspan="2"]),
.nx-form-table tr:has(.nx-btn) { grid-column: 1 / -1; }
.nx-form-table tr:has(.nx-btn) td:first-child { display: none; }
.nx-form-table tr:has(input[name="agree"]) td { padding: 15px 17px; border: 1px solid #e6e4f3; border-radius: 12px; background: #f9f8ff; color: #535267; line-height: 1.5; }
.nx-form-table input[type="checkbox"] { width: 17px; height: 17px; margin-right: 7px; accent-color: #685be8; vertical-align: middle; }
.nx-form-table a,
.nx-form-card > p a { color: #5c57e7; font-weight: 700; }
.nx-form-table a:hover,
.nx-form-card > p a:hover { text-decoration: underline; }
.nx-form-table .nx-btn,
.nx-auth-tfa .nx-btn {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ai-startup-gradient, linear-gradient(90deg, #a291fe, #5c57e7, #71bbf9));
  box-shadow: 0 12px 26px rgba(92, 87, 231, .25);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nx-form-table .nx-btn:hover,
.nx-auth-tfa .nx-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(92, 87, 231, .3); }
.nx-form-table .nx-btn:focus-visible,
.nx-auth-tfa .nx-btn:focus-visible { outline: 3px solid #b8aafa; outline-offset: 3px; }
.nx-form-card > p { color: #666579; font-size: 14px; line-height: 1.6; text-align: center; }
.nx-msg-error,
.nx-msg-ok { max-width: 900px; margin: 0 auto 22px; border-radius: 12px; padding: 14px 18px; line-height: 1.55; }
.nx-form-card .nx-msg-error,
.nx-form-card .nx-msg-ok { margin-bottom: 22px; }

.nx-auth-tfa .nx-form-card { max-width: 560px; }
.nx-auth-tfa .nx-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.nx-auth-tfa .nx-auth-actions a { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1px solid #dedbea; border-radius: 12px; color: #34334d; font-weight: 700; }

@media (max-width: 700px) {
  .main-content:has(.nx-auth-title) > .flat-spacing-3,
  .main-content:has(.nx-auth-tfa) > .flat-spacing-3 { padding: 46px 0 70px; }
  .nx-form-card { padding: 30px 22px; border-radius: 18px; }
  .nx-form-card:has(form[name="regform"]) .nx-form-table tbody { grid-template-columns: 1fr; }
}
