* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #edf2f7;
  padding: 5rem 0 60px 0;
}

.forgot-password-container {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 0 0 10px 10px;
  width: 90%;
  max-width: 450px;
  position: relative;
}

.brand-bar {
  background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
  height: 5px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
}

.forgot-password-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.forgot-password-header h1 {
  color: #2d3748;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  background: linear-gradient(120deg, #2d3748 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.forgot-password-header p {
  color: #718096;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group i {
  position: absolute;
  right: 15px;
  top: 45px;
  color: #a0aec0;
}

.form-group input {
  width: 100%;
  padding: 14px 45px;
  text-align: right;
  direction: rtl;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: #ffffff;
  color: #2d3748;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.submit-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #3182ce 0%, #2c5282 100%);
  border: 1px solid rgba(44, 82, 130, 0.1);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(44, 82, 130, 0.2);
}

.submit-button:hover {
  background: linear-gradient(145deg, #2c5282 0%, #2a4365 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(44, 82, 130, 0.3);
}

.navigation-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #718096;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.navigation-links a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navigation-links a:hover {
  color: #2c5282;
  text-decoration: underline;
}

.home-button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.8rem 1.5rem;
  background: white;
  color: #2d3748;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-button i {
  color: #3182ce;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  transform: scaleX(-1);
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
  border-color: #3182ce;
  color: #3182ce;
}

.home-button:hover i {
  transform: translateX(3px) scaleX(-1);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1rem;
  background: #edf2f7;
  color: #718096;
  font-size: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.message {
  display: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.error-message {
  background: linear-gradient(145deg, #dc3545, #c82333);
  color: white;
  border: 1px solid rgba(220, 53, 69, 0.1);
  box-shadow: 0 4px 6px rgba(220, 53, 69, 0.1), 0 1px 3px rgba(220, 53, 69, 0.08);
}

.success-message {
  background: linear-gradient(145deg, #28a745, #218838);
  color: white;
  border: 1px solid rgba(40, 167, 69, 0.1);
  box-shadow: 0 4px 6px rgba(40, 167, 69, 0.1), 0 1px 3px rgba(40, 167, 69, 0.08);
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.message-content {
  flex: 1;
}

.close-message {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.close-message:hover {
  opacity: 1;
  transform: scale(1.1);
}

.close-message i {
  font-size: 1rem;
}

.message i {
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .forgot-password-container {
    padding: 2rem;
    width: 95%;
  }

  .forgot-password-header h1 {
    font-size: 1.75rem;
  }

  .form-group input {
    padding: 12px 40px;
  }

  .home-button {
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  body {
    padding: 4rem 0 60px 0;
  }
}
