/* InstantCMS auto: templates/nexus/controllers/auth/styles.css
   https://docs.instantcms.ru/dev/templates/css-js */

.nx-body.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #08121b;
}

.nx-body.auth-page #store {
  display: block;
  padding: 0;
  margin: 0;
}

.nx-auth-ajax {
  padding: 0;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.12fr) minmax(440px, 0.88fr);
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 36px clamp(28px, 5vw, 72px);
  overflow: hidden;
  flex-direction: column;
}

.auth-visual__background,
.auth-visual__shade {
  position: absolute;
  inset: 0;
}

.auth-visual__background {
  background:
    radial-gradient(circle at 70% 30%, rgba(86, 196, 236, 0.22), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(80, 120, 200, 0.18), transparent 36%),
    linear-gradient(160deg, #0a1824 0%, #071018 55%, #10283a 100%);
}

.auth-visual__shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 19, 0.88), rgba(4, 12, 19, 0.18)),
    linear-gradient(0deg, rgba(4, 12, 19, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(4, 12, 19, 0.45), transparent 30%);
}

.auth-logo,
.auth-visual__content,
.auth-visual__footer {
  position: relative;
  z-index: 2;
}

.auth-logo .logo__wordmark,
.auth-mobile-logo .logo__wordmark {
  height: 64px !important;
  max-height: 64px !important;
  max-width: min(340px, 78vw) !important;
}

.auth-visual__content {
  max-width: 620px;
  margin-top: auto;
  margin-bottom: auto;
}

.auth-visual h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.auth-visual h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff, #7edbff);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-visual__content > p {
  margin: 0;
  color: #9aadb9;
  font-size: 15px;
}

.auth-community {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 12px;
}

.auth-avatar-stack {
  display: flex;
  padding-left: 8px;
}

.auth-avatar-stack .post-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 2px solid #132532;
  border-radius: 50%;
  color: #07141d;
  font-size: 8px;
  font-weight: 800;
  place-items: center;
}

.auth-avatar-stack .post-avatar--blue { background: linear-gradient(135deg, #73dfff, #3c7cc1); }
.auth-avatar-stack .post-avatar--green { background: linear-gradient(135deg, #a9e66d, #41957a); }
.auth-avatar-stack .post-avatar--purple { background: linear-gradient(135deg, #e093ff, #7453bf); }
.auth-avatar-stack .post-avatar--orange { background: linear-gradient(135deg, #ffb478, #bc5b66); }

.auth-community > div:last-child {
  display: flex;
  flex-direction: column;
}

.auth-community strong {
  font-size: 13px;
}

.auth-community span {
  margin-top: 3px;
  color: #698092;
  font-size: 12px;
}

.auth-visual__footer {
  display: flex;
  color: #5c7284;
  gap: 20px;
  font-size: 12px;
}

.auth-visual__footer a:hover {
  color: #9cafbc;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: 48px clamp(28px, 5vw, 72px);
  border-left: 1px solid var(--line, #1c3344);
  background:
    radial-gradient(circle at 90% 5%, rgba(40, 131, 176, 0.12), transparent 25rem),
    #09141e;
  place-items: center;
}

.auth-card {
  width: min(420px, 100%);
}

.nx-body.auth-page .auth-mobile-logo.logo {
  display: none;
}

.auth-welcome {
  color: #4bc2ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card__heading h2 {
  margin: 8px 0 6px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.auth-card__heading p {
  margin: 0;
  color: #6d8395;
  font-size: 13px;
}

.auth-tabs {
  display: flex;
  margin-top: 26px;
  border-bottom: 1px solid var(--line, #1c3344);
  gap: 24px;
}

.auth-tabs a {
  position: relative;
  padding: 0 0 12px;
  color: #657b8d;
  font-size: 13px;
  font-weight: 700;
}

.auth-tabs a.is-active {
  color: #edf5f9;
}

.auth-tabs a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #4cc4f0;
  content: "";
}

.auth-form,
.nx-auth__form {
  padding-top: 18px;
}

.auth-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-card legend {
  display: none;
}

.auth-card .form-tabs,
.auth-card .icms-form-body,
.auth-card .tab-pane {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-card .field {
  display: flex;
  margin: 0 0 16px;
  color: #879ba9;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.auth-card .field > label,
.auth-card .field .field_title {
  color: #879ba9;
}

.auth-card .field input[type="text"],
.auth-card .field input[type="email"],
.auth-card .field input[type="password"],
.auth-card .field input[type="number"],
.auth-card .field select,
.auth-card .field textarea {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line, #1c3344);
  border-radius: 8px;
  color: #e1ebf0;
  background: #0c1923;
  font-size: 14px;
  font-weight: 500;
}

.auth-card .field textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
}

.auth-card .field input:focus,
.auth-card .field select:focus,
.auth-card .field textarea:focus {
  border-color: rgba(77, 191, 235, 0.4);
  outline: 0;
  box-shadow: none;
}

.auth-card .icms-form__password-field {
  position: relative;
  display: block;
}

.auth-card .icms-form__password-field input {
  width: 100%;
  padding-right: 42px;
}

.auth-card .icms-form__password-field-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  color: #5d7385;
  transform: translateY(-50%);
  place-items: center;
}

.auth-card .icms-form__password-field-icon svg {
  width: 16px;
  height: 16px;
}

.auth-card .password-toggle svg {
  width: 16px;
}

.auth-card .field input[type="password"],
.auth-card .field input[type="text"][autocomplete="new-password"] {
  padding-right: 40px;
}

.auth-card .field.ft_checkbox,
.auth-card .custom-checkbox,
.auth-card .form-check {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 500;
  color: #718798;
}

.auth-card .buttons {
  display: flex;
  margin: 8px 0 0;
  flex-direction: column;
  gap: 10px;
}

.auth-card .button-submit,
.auth-card input.button-submit,
.auth-card .btn-primary,
.auth-card button[type="submit"] {
  display: flex;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  color: #07141d !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(115deg, #6ad4fa, #3cb3e8) !important;
  box-shadow: 0 12px 28px rgba(47, 169, 219, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.auth-card .button-cancel,
.auth-card .btn-secondary {
  display: flex;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line, #1c3344);
  border-radius: 8px;
  color: #9eb3c2 !important;
  align-items: center;
  justify-content: center;
  background: #0d1a24 !important;
  font-size: 13px;
}

.auth-card .field a {
  color: #58c4e8;
  font-weight: 600;
}

.auth-divider {
  display: flex;
  margin: 22px 0 16px;
  color: #516779;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line, #1c3344);
  content: "";
  flex: 1;
}

.social-auth {
  display: grid;
  gap: 8px;
}

.social-auth a,
.social-auth button {
  display: flex;
  min-height: 42px;
  border: 1px solid var(--line, #1c3344);
  border-radius: 7px;
  color: #8599a9;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d1a24;
  font-size: 13px;
  font-weight: 700;
}

.auth-switch-text {
  margin: 22px 0 0;
  color: #687e90;
  text-align: center;
  font-size: 13px;
}

.auth-switch-text a {
  color: #59c5e9;
  font-weight: 700;
}

.auth-security {
  display: flex;
  margin-top: 22px;
  color: #52687a;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
}

.auth-security svg {
  width: 14px;
  color: #62bd9a;
}

.auth-card .alert {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.auth-alert {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(196, 92, 92, 0.35);
  border-radius: 8px;
  color: #ef8a64;
  background: rgba(196, 92, 92, 0.12);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-alert--info,
.auth-alert--success {
  border-color: rgba(75, 194, 238, 0.28);
  color: #8fd4f0;
  background: rgba(75, 194, 238, 0.1);
}

.auth-card .field_error input,
.auth-card .field_error select {
  border-color: #c45c5c;
}

.auth-card .error_text,
.auth-card .invalid-feedback {
  display: block !important;
  color: #ef8a64;
  font-size: 12px;
  font-weight: 500;
}

.nx-auth-ajax .field {
  margin-bottom: 12px;
}

.nx-auth-ajax .button-submit {
  width: 100%;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    padding: 28px 24px 48px;
    border-left: 0;
    align-content: start;
  }

  .nx-body.auth-page .auth-mobile-logo.logo {
    display: inline-flex;
    margin-bottom: 36px;
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .auth-panel {
    padding-inline: 16px;
  }
}

.auth-card .field.ft_captcha,
.auth-card .field_capcha {
  margin-top: 4px;
}

.auth-card .gc-math-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card .gc-math-captcha__q {
  color: #e1ebf0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.auth-card .gc-math-captcha input[type="number"] {
  width: 96px;
  max-width: 96px;
  flex: 0 0 96px;
}

.auth-card .gc-email-captcha__hint {
  margin: 0 0 8px;
  color: #879ba9;
  font-size: 12px;
  font-weight: 600;
}

.auth-card .gc-email-captcha__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card .gc-email-captcha__send {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(77, 191, 235, 0.35);
  border-radius: 8px;
  color: #d7eef8;
  background: #102230;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-card .gc-email-captcha__send:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-card .gc-email-captcha input[name="emailcaptcha_answer"] {
  width: 140px;
  max-width: 140px;
  flex: 0 0 140px;
}

.auth-card .gc-email-captcha__status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.auth-card .gc-email-captcha__status.is-ok {
  color: #7ddeb4;
}

.auth-card .gc-email-captcha__status.is-error {
  color: #f0a3a3;
}

.auth-card .field.ft_city .hint,
.auth-card .field .hint {
  color: #6d8395;
  font-size: 12px;
  font-weight: 500;
}

.auth-card .gc-city-picker,
.auth-card .city-input {
  display: flex;
  height: 46px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line, #1c3344);
  border-radius: 8px;
  color: #e1ebf0;
  background: #0c1923;
  align-items: center;
  gap: 10px;
}

.auth-card .gc-city-picker__mark {
  display: grid;
  width: 18px;
  height: 18px;
  color: #4cc4f0;
  flex: 0 0 18px;
  place-items: center;
}

.auth-card .gc-city-picker__mark svg {
  width: 18px;
  height: 18px;
}

.auth-card .gc-city-picker .city-name {
  min-width: 0;
  overflow: hidden;
  color: #e1ebf0;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-card .gc-city-picker__ph {
  display: none;
  min-width: 0;
  overflow: hidden;
  color: #5d7385;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 500;
}

.auth-card .gc-city-picker .city-name[style*="display:none"] ~ .gc-city-picker__ph,
.auth-card .gc-city-picker .city-name[style*="display: none"] ~ .gc-city-picker__ph {
  display: block;
}

.auth-card .gc-city-picker .city_clear_link {
  color: #ef8a64 !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-card .gc-city-picker__btn,
.auth-card .city-input .ajax-modal {
  display: inline-flex;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(77, 191, 235, 0.35);
  border-radius: 7px;
  color: #6ad4fa !important;
  align-items: center;
  background: #102230;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-card .gc-city-picker__btn:hover,
.auth-card .city-input .ajax-modal:hover {
  border-color: rgba(77, 191, 235, 0.6);
  color: #d7eef8 !important;
}
