/*================================================================================================
    Premium Auth Modals
===================================================================================================*/
.ed-auth__modal .modal-dialog {
  max-width: min(920px, calc(100vw - 24px)) !important;
}

.ed-auth__modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.96));
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.24);
  position: relative;
}

.ed-auth__modal .modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(124,58,237,.16), rgba(20,184,166,.18));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.ed-auth__modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  z-index: 5;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #fb7185);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.26);
}

.ed-auth__modal-close:hover {
  color: #fff;
  transform: translateY(-1px);
}

.ed-auth__modal-head {
  position: relative;
  padding: 36px 40px 26px;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(253,224,71,.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(20,184,166,.16), transparent 26%),
    linear-gradient(135deg, #07162f 0%, #0b1d3d 52%, #102b5e 100%);
}

.ed-auth__modal-head::after {
  content: "";
  position: absolute;
  inset: auto 24px -1px 24px;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.ed-auth__modal-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ed-auth__modal-logo img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 46px;
  object-fit: contain;
}

.ed-auth__modal-title {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 900;
}

.ed-auth__modal-text {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: rgba(226,232,240,.88);
  font-size: 14px;
  line-height: 1.7;
}

.ed-auth__modal-text button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fde047;
  font-weight: 900;
}

.ed-auth__modal-text button:hover {
  color: #7dd3fc;
}

.ed-auth__modal-body {
  padding: 28px 40px 0;
  margin-top: 0;
  background: #fff;
}

.ed-auth__modal-form .form-group {
  margin-bottom: 16px;
}

.ed-auth__modal-form .form-group input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.24);
  padding: 0 16px;
  outline: none;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: #081325;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ed-auth__modal-form .form-group input:focus {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.password-input-group {
  position: relative;
}

.password-input-group .password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-input-group .password-toggle:hover {
  color: #2563eb;
}

.ed-auth__form-btn {
  margin-top: 18px;
}

.ed-auth__form-btn .ed-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(37,99,235,.2);
}

.form-check {
  padding-left: 0;
}

.form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 0;
  accent-color: #2563eb;
}

.form-check-label strong {
  color: #081325;
}

.ed-auth__modal-footer {
  padding: 22px 40px 36px;
  margin-top: 0;
  background: #fff;
}

.ed-auth__modal-third-party {
  text-align: center;
}

.ed-auth__modal-third-party p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ed-auth__modal-third-party-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ed-auth__modal-third-party-list li a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148,163,184,.2);
  background: #fff;
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ed-auth__modal-third-party-list li a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15,23,42,.1);
}

.ed-auth__modal-third-party-list li a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ed-auth__modal-third-party-list .google-login {
  background: #fdedeb;
}

.ed-auth__modal-third-party-list .linkedin-login {
  background: #e6f2f8;
}

.ed-auth__modal-third-party-list .facebook-login {
  background: #e8f2fe;
}

@media only screen and (max-width: 767px) {
  .ed-auth__modal .modal-dialog {
    max-width: calc(100vw - 12px) !important;
    margin: 6px auto;
  }

  .ed-auth__modal .modal-content {
    border-radius: 24px;
  }

  .ed-auth__modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .ed-auth__modal-head {
    padding: 28px 18px 18px;
  }

  .ed-auth__modal-body {
    padding: 20px 18px 0;
  }

  .ed-auth__modal-footer {
    padding: 18px 18px 22px;
  }

  .ed-auth__modal-title {
    font-size: 22px;
    line-height: 1.15;
  }

  .ed-auth__modal-form .form-group input {
    min-height: 50px;
    border-radius: 14px;
  }

  .ed-auth__form-btn .ed-btn {
    min-height: 50px;
    border-radius: 14px;
  }

  .ed-auth__modal-third-party-list li a {
    width: 48px;
    height: 48px;
  }
}

/*================================================================================================
    End Premium Auth Modals
===================================================================================================*/
