.vc-modal[hidden],
#formLoading[hidden] {
  display: none !important;
}

.vc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.5);
  padding: 28px 16px 48px;
}

.vc-modal--login {
  background: rgba(0, 0, 0, 0.9);
}

.vc-modal__dialog {
  width: min(600px, 100%);
  margin: 4vh auto;
}

.vc-modal .login-container,
.vc-modal .mylogin-container {
  position: relative;
  width: 100%;
  max-width: 525px;
  margin: 0 auto;
  padding: 52px 40px 32px;
  border-radius: 20px;
  box-shadow: 0 50px 70px -20px rgba(0, 0, 0, 0.85);
}

.vc-modal .login-container {
  background: #081433;
}

.vc-modal .mylogin-container {
  background: #fff;
}

.vc-modal .login-container:after,
.vc-modal .mylogin-container:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
}

.vc-modal .login-container:after {
  background-image: radial-gradient(ellipse at left bottom, #0a0c23f5 0%, #081a44de 59%, #020521f2 100%);
}

.vc-modal .mylogin-container:after {
  background: #fff;
}

.vc-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.vc-modal--contact .vc-modal__close {
  color: #fff;
}

.vc-modal--login .vc-modal__close {
  color: #1a1a1a;
}

.vc-modal .form-login {
  position: relative;
  z-index: 1;
}

.vc-modal .login-nav__title {
  margin: 0 0 18px;
  text-align: center;
}

.vc-modal .login-nav__title span {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.vc-modal--login .form-login {
  text-align: center;
}

.vc-modal--login .login-nav__title {
  margin-bottom: 6px;
}

.vc-modal--login .login-nav__title span {
  color: #111;
}

.login-avatar {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 8px;
}

.login-lead {
  margin: 0 0 12px;
  color: #222;
  font-size: 15px;
}

.vc-modal .login__label {
  display: block;
  margin: 14px 0 6px;
  padding-left: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vc-modal .login__input,
.vc-modal .message__input {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

.vc-modal select.login__input {
  height: 48px;
  color-scheme: dark;
}

.vc-modal select.login__input option {
  color: #111;
  background: #fff;
}

.vc-modal .message__input {
  min-height: 110px;
  border-radius: 18px;
  resize: vertical;
}

.vc-modal .login__input:focus,
.vc-modal .message__input:focus {
  border-color: #7eb6ff;
}

.vc-modal .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.vc-modal .consent input {
  margin-top: 3px;
  flex: none;
}

.vc-modal .consent label {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.vc-modal .consent a {
  color: #9fd0ff;
  text-decoration: underline;
}

.vc-modal .login__submit {
  display: block;
  width: min(240px, 100%);
  margin: 18px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.vc-modal .login__submit:hover {
  background: #020304;
}

.vc-modal--login .login__submit {
  background: rgb(27, 54, 95);
  border-color: rgb(27, 54, 95);
}

.vc-modal--login .login__submit:hover {
  background: #142848;
}

.vc-modal .login__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.vc-modal .input-group {
  position: relative;
  margin: 22px 0;
  text-align: left;
}

.vc-modal .minput {
  display: block;
  width: 100%;
  padding: 12px 12px 12px 10px;
  border: 1px solid rgba(41, 38, 38, 0.3);
  border-radius: 4px;
  color: #111;
  font-size: 18px;
  background: #fff;
  outline: none;
}

.vc-modal .minput:focus {
  border-color: #4285f4;
}

.vc-modal .mlabel {
  position: absolute;
  top: 12px;
  left: 10px;
  color: #999;
  font-size: 18px;
  font-weight: 400;
  pointer-events: none;
  transition: 0.2s ease all;
}

.vc-modal .minput:focus ~ .mlabel,
.vc-modal .minput:not(:placeholder-shown) ~ .mlabel {
  top: -18px;
  color: #111;
  font-size: 13px;
}

.vc-modal .highlight {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100px;
  height: 60%;
  pointer-events: none;
  opacity: 0;
}

.forgot-link {
  display: flex;
  width: 100%;
  margin: 0 0 16px;
  color: #0d6efd;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}

.vc-modal .field-error {
  border-color: #ff5a5a !important;
}

.vc-modal .error-text {
  margin: 4px 0 0 12px;
  color: #ffb4b4;
  font-size: 13px;
  text-align: left;
}

.vc-modal--login .error-text {
  color: #c62828;
}

#formLoading {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

#formLoading .spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: vc-spin 1s linear infinite;
}

@keyframes vc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .vc-modal {
    padding: 12px 10px 28px;
  }

  .vc-modal .login-container,
  .vc-modal .mylogin-container {
    padding: 46px 16px 22px;
  }

  .vc-modal .login-nav__title span {
    font-size: 22px;
  }

  .vc-modal .login__submit {
    width: 78%;
    font-size: 14px;
  }
}
