.form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    padding: 20px;
  }
  .forgot-password{
    cursor: pointer;
  }
  .toast-center-center {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 999999 !important; /* Ensure it appears on top */
  }
  form {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    direction: rtl;
  }
  
  /* Form field styling */
  .input2 {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  
  /* Styling for error messages */
  mat-error {
    color: #d32f2f;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: -0.5rem;
    padding-top: 0.5rem;
  }
  
  /* Buttons styling */
  button[type="submit"],
  button[mat-raised-button] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
  }
  .spinner-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Adjust height as needed */
    background: rgba(255, 255, 255, 0.9); /* Slightly translucent background */
    border-radius: 10px;
    padding: 1rem;
  }
  
  .loading-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
  }
  
  
  
  /* "Forgot password" link styling */
  a {
    display: block;
    text-align: center;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: bold;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    form {
      padding: 1.5rem;
    }
  }
  .btn-custom {
    background-color: #198754 !important; 
    color: white !important;
    border: 1px solid #28a745 !important; /* same green as btn-success */
    transition: all 0.3s ease; /* smooth transition on hover */
  }
  
  .btn-custom:hover {
    background-color: #21943c !important; /* green background on hover */
    border: 1px solid #28a745 !important; /* maintain the border */
  }
    