/* Auth Modal Styles */

/* Backdrop */
.ld-auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ldFadeIn 0.2s ease;
}

@keyframes ldFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.ld-auth-modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  animation: ldSlideUp 0.3s ease;
}

@keyframes ldSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ld-modal-content {
  background: #e7f8f4;
  border-radius: 30px;
  padding: 55px 65px;
  position: relative;
  box-shadow: 0px 40px 120px 16px rgba(0, 0, 0, 0.15);
}

/* Close Button */
.ld-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 28px;
  height: 28px;
  background: #fafbfb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #161616;
  transition: transform 0.2s ease;
  z-index: 100;
  opacity: 1;
  padding: 0 !important;
  border-radius: 100% !important;
}

.ld-modal-close:hover {
  transform: scale(1.1);
}

.ld-modal-close svg {
  width: 14px;
  height: 14px;
}

/* Modal Header */
.ld-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 45px;
}

.ld-modal-logo {
  display: flex;
  align-items: center;
  gap: 6.7px;
  font-family: "Manrope", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 23.879px;
  line-height: 23.91px;
  letter-spacing: -0.9551px;
  color: #1c1836;
}

.ld-modal-logo svg {
  flex-shrink: 0;
  width: 29px;
  height: 29px;
}

.ld-modal-title {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 45px !important;
  line-height: 55px !important;
  letter-spacing: -1.35px;
  color: #1c1836;
  margin: 0 !important;
  text-align: center;
}

.ld-modal-subtitle {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: -0.32px;
  color: #464d6a;
  margin: 0;
  text-align: center;
}

.ld-modal-switch {
  background: none;
  border: none;
  border-radius: 0 !important;
  color: #536ec8;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 16px !important;
  line-height: 30px;
  letter-spacing: -0.32px;
  cursor: pointer;
  text-decoration: none;
  padding: 0 !important;
  display: inline;
}

.ld-modal-switch:hover {
  text-decoration: underline;
}

/* Form Styles */
.ld-auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.ld-form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ld-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ld-input-icon {
  position: absolute;
  left: 25px;
  color: #939396;
  pointer-events: none;
  z-index: 1;
}

.ld-form-input {
  width: 100% !important;
  height: 65px !important;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 10px !important;
  padding: 24px 25px 24px 60px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
  font-size: 18px !important;
  line-height: normal !important;
  color: #161616 !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ld-form-input::placeholder {
  color: #939396 !important;
}

.ld-form-input:focus {
  border-color: #1c1836 !important;
  box-shadow: 0 0 0 2px rgba(28, 24, 54, 0.1) !important;
}

.ld-password-toggle {
  position: absolute;
  right: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-center: center;
  color: #939396;
  transition: color 0.2s ease;
}

.ld-password-toggle:hover {
  color: #161616;
}

/* Checkbox Group */
.ld-checkbox-group {
  gap: 0;
}

.ld-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #464d6a;
}

.ld-form-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid #939396;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  margin-top: 0;
  transition: all 0.2s ease;
}

.ld-form-checkbox:checked {
  background: #1c1836;
  border-color: #1c1836;
}

.ld-form-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ld-form-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(28, 24, 54, 0.1);
}

.ld-checkbox-text {
  flex: 1;
}

.ld-checkbox-text a {
  color: #536ec8;
  text-decoration: none;
  font-weight: 600;
}

.ld-checkbox-text a:hover {
  text-decoration: underline;
}

/* Error Message */
.ld-form-error {
  background: #ffebee;
  color: #c62828;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
  margin-top: -10px;
}

/* Primary Button */
.ld-btn-primary {
  width: 100% !important;
  height: 65px !important;
  background: #1c1836 !important;
  border: none !important;
  border-radius: 48px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 25px !important;
  letter-spacing: -0.2px !important;
  text-transform: capitalize !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  position: relative !important;
}

.ld-btn-primary:hover {
  background: #0f0b24 !important;
}

.ld-btn-primary:active {
  transform: scale(0.98);
}

.ld-btn-primary:disabled {
  background: #a2a6b4 !important;
  cursor: not-allowed;
  transform: none;
}

.ld-btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Forgot Password Link */
.ld-forgot-password {
  background: none;
  border: none;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: -0.16px;
  color: #a2a6b4;
  cursor: pointer;
  text-align: center;
  padding: 0;
  padding-top: 10px;
}

.ld-forgot-password:hover {
  color: #464d6a;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ld-modal-content {
    padding: 30px;
    border-radius: 25px;
  }

  .ld-modal-close {
    top: 12px;
    right: 12px;
    width: 25px;
    height: 25px;
  }

  .ld-modal-header {
    gap: 17px;
    margin-bottom: 30px;
  }

  .ld-modal-logo {
    gap: 5px;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: -0.72px;
  }

  .ld-modal-logo svg {
    width: 22px;
    height: 22px;
  }

  .ld-modal-title {
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.72px;
  }

  .ld-modal-subtitle {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.15px;
  }

  .ld-modal-switch {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.15px;
  }

  .ld-auth-form {
    gap: 15px;
  }

  .ld-form-group {
    gap: 8px;
  }

  .ld-form-input {
    height: 50px;
    padding: 18px 20px 18px 45px;
    font-size: 15px;
  }

  .ld-input-icon {
    left: 12px;
    width: 14px;
    height: auto;
  }

  .ld-password-toggle {
    right: 12px;
  }

  .ld-btn-primary {
    height: 55px;
    font-size: 16px;
    letter-spacing: -0.16px;
    border-radius: 36px;
  }

  .ld-forgot-password {
    font-size: 15px;
    line-height: 25px;
    letter-spacing: -0.15px;
  }
}

/* Dark background variant for mobile */
@media (max-width: 768px) {
  body.ld-modal-open {
    overflow: hidden;
  }
}
