#loginRegisterModal {
  --vcv-primary-gradient: linear-gradient(135deg, #2155f5 0%, #1537c9 52%, #0f267f 100%);
  --vcv-primary-shadow: 0 12px 28px rgba(21, 55, 201, 0.24);
  --vcv-primary-shadow-strong: 0 18px 36px rgba(21, 55, 201, 0.32);
  --vcv-primary-color: #1947c4;
  --vcv-accent-color: #f7a928;
}

#loginRegisterModal .modal-dialog.auth-modal-dialog {
  max-width: 680px;
  margin: 1rem auto;
}

.auth-modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(8, 20, 64, 0.22);
  overflow: hidden;
  background: #ffffff;
}

.auth-modal-content .modal-header {
  background: var(--vcv-primary-gradient);
  padding: 1.4rem 1.5rem 1rem;
  position: relative;
}

.auth-modal-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  width: 100%;
}

.auth-modal-logo .logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 0.2rem;
  filter: drop-shadow(0 10px 18px rgba(11, 26, 83, 0.28));
}

.auth-modal-logo .modal-title {
  color: #ffffff !important;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.auth-modal-subtitle {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.55;
}

.btn-close-custom {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.btn-close-custom:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px) rotate(90deg);
  color: #ffffff;
}

.auth-tabs-container {
  background: #ffffff;
  padding: 1rem 1.25rem 0;
  margin: 0;
}

.auth-tabs {
  border: none;
  background: #f4f6fb;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.auth-tabs .nav-link {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 600;
  color: #5f6980;
  background: transparent;
  transition: all 0.25s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  min-width: 140px;
}

.auth-tabs .nav-link:hover {
  color: #2c3550;
  background: rgba(25, 71, 196, 0.08);
}

.auth-tabs .nav-link.active {
  background: var(--vcv-primary-gradient);
  color: #ffffff !important;
  box-shadow: var(--vcv-primary-shadow);
  transform: translateY(-1px);
}

.auth-tabs .nav-link i {
  font-size: 14px;
}

.auth-tab-content {
  background: #ffffff;
  min-height: 300px;
}

.auth-form-container {
  padding: 0.8rem 1.25rem 1.35rem;
}

.shortcode-wrapper {
  margin: 0.35rem 0 0;
}

.shortcode-wrapper form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.shortcode-wrapper .form-group,
.shortcode-wrapper .form-control,
.shortcode-wrapper input,
.shortcode-wrapper textarea,
.shortcode-wrapper select {
  margin-bottom: 0.2rem;
  border-radius: 12px !important;
  font-size: 14px !important;
  transition: all 0.25s ease !important;
}

.shortcode-wrapper input,
.shortcode-wrapper textarea,
.shortcode-wrapper select {
  margin-bottom: 0;
  height: 46px !important;
}

.shortcode-wrapper .password-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.shortcode-wrapper .password-toggle-wrap input {
  width: 100% !important;
  padding-right: 42px !important;
}

.shortcode-wrapper .password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #8b95aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.shortcode-wrapper .password-toggle-btn:hover {
  color: var(--vcv-primary-color);
}

.shortcode-wrapper .password-toggle-btn:focus {
  outline: none;
}

.shortcode-wrapper input:focus,
.shortcode-wrapper textarea:focus,
.shortcode-wrapper select:focus {
  border-color: #2f64dd !important;
  box-shadow: 0 0 0 3px rgba(47, 100, 221, 0.14) !important;
  background: #ffffff !important;
  outline: none !important;
}

.shortcode-wrapper .btn,
.shortcode-wrapper button[type="submit"],
.shortcode-wrapper input[type="submit"] {
  background: var(--vcv-primary-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 14px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  margin-top: 0.9rem !important;
  box-shadow: var(--vcv-primary-shadow) !important;
}

.shortcode-wrapper .btn:hover,
.shortcode-wrapper button[type="submit"]:hover,
.shortcode-wrapper input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--vcv-primary-shadow-strong) !important;
  filter: brightness(1.06);
  background: var(--vcv-primary-gradient) !important;
}

.shortcode-wrapper label {
  font-weight: 600 !important;
  color: #4a5568 !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

#loginRegisterModal .shortcode-wrapper .lv-login-form {
  max-width: 520px;
  margin: 0 auto;
}

#loginRegisterModal .shortcode-wrapper .lv-login-social,
#loginRegisterModal .shortcode-wrapper .lv-social-auth {
  display: flex;
  justify-content: center;
}

#loginRegisterModal .shortcode-wrapper .lv-google-login-button {
  width: min(100%, 390px) !important;
  max-width: 390px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#loginRegisterModal .shortcode-wrapper .lv-login-or,
#loginRegisterModal .shortcode-wrapper .lv-auth-divider {
  margin-top: 18px !important;
  margin-bottom: 16px !important;
}

#loginRegisterModal .shortcode-wrapper .lv-login-submit {
  margin-top: 0.75rem !important;
}

.form-footer {
  margin-top: 1rem !important;
}

.form-footer p {
  margin-bottom: 0;
}

.form-footer a {
  text-decoration: none;
  transition: all 0.25s ease;
}

.form-footer a:hover {
  text-decoration: underline;
  color: var(--vcv-primary-color) !important;
}

@media (max-width: 768px) {
  #loginRegisterModal .modal-dialog.auth-modal-dialog {
    max-width: 94%;
    margin: 0.8rem auto;
  }

  .auth-modal-content {
    border-radius: 20px;
  }

  .auth-modal-content .modal-header {
    padding: 1.2rem 1rem 0.95rem;
  }

  .auth-tabs-container {
    padding: 0.85rem 0.9rem 0;
  }

  .auth-tabs {
    padding: 5px;
  }

  .auth-tabs .nav-link {
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .auth-tabs .nav-link i {
    display: none;
  }

  .auth-form-container {
    padding: 0.65rem 0.95rem 1rem;
  }

  .auth-modal-logo .modal-title {
    font-size: 1.28rem;
  }

  .auth-modal-subtitle {
    font-size: 0.9rem;
    max-width: 300px;
  }

  .auth-modal-logo .logo-img {
    width: 56px;
    height: 56px;
  }

  #loginRegisterModal .shortcode-wrapper .lv-google-login-button {
    width: 100% !important;
    max-width: 100% !important;
  }
}

#loginRegisterModal .shortcode-wrapper .lv-field { margin-bottom: 14px; }
#loginRegisterModal .shortcode-wrapper .lv-field label { margin-bottom: 7px !important; }
#loginRegisterModal .shortcode-wrapper .lv-login-submit { height: 52px !important; font-size: 17px !important; }
#loginRegisterModal .shortcode-wrapper .lv-login-row { margin-top: 2px; }
