/**
 * AlSeraj Password Reset plugin styles
 */

/* WordPress-specific reset form container */
#alseraj-reset-form-container {
  max-width: 800px;
  margin: 40px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Custom WordPress reset form for non-React usage */
.alseraj-reset-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alseraj-reset-form h2 {
  color: #2a6ebb;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.alseraj-reset-form .form-group {
  margin-bottom: 20px;
}

.alseraj-reset-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.alseraj-reset-form input[type="email"],
.alseraj-reset-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.alseraj-reset-form input[type="email"]:focus,
.alseraj-reset-form input[type="password"]:focus {
  outline: none;
  border-color: #2a6ebb;
  box-shadow: 0 0 0 3px rgba(42, 110, 187, 0.1);
}

.alseraj-reset-form .error-message {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
}

.alseraj-reset-form .submit-button {
  background-color: #2a6ebb;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.alseraj-reset-form .submit-button:hover {
  background-color: #1d5294;
}

.alseraj-reset-form .submit-button:disabled {
  background-color: #4f8fd1;
  cursor: not-allowed;
}

.alseraj-reset-form .success-message {
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.alseraj-reset-form .success-message h3 {
  color: #4caf50;
  font-size: 18px;
  margin-bottom: 10px;
}

.alseraj-reset-form .success-icon {
  color: #4caf50;
  font-size: 48px;
  margin-bottom: 15px;
}

.alseraj-reset-form .back-to-login {
  display: inline-block;
  margin-top: 15px;
  color: #2a6ebb;
  text-decoration: none;
}

.alseraj-reset-form .back-to-login:hover {
  text-decoration: underline;
}

/* Password strength meter */
.alseraj-password-strength {
  margin-top: 10px;
  margin-bottom: 10px;
}

.alseraj-strength-meter {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}

.alseraj-strength-indicator {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.alseraj-strength-label {
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.alseraj-password-hint {
  font-size: 13px;
  color: #adb5bd;
  margin-top: 5px;
}

/* Loading indicator */
.alseraj-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: alseraj-spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes alseraj-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .alseraj-reset-form {
    padding: 20px;
  }

  .alseraj-reset-form h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #alseraj-reset-form-container {
    margin: 20px auto;
  }

  .alseraj-reset-form {
    padding: 15px;
  }

  .alseraj-reset-form input[type="email"],
  .alseraj-reset-form input[type="password"] {
    padding: 10px;
    font-size: 14px;
  }

  .alseraj-reset-form .submit-button {
    padding: 10px 15px;
    font-size: 14px;
  }
}
