* {
    direction: rtl;
    font-family: "Vazirmatn", sans-serif;
}

body {
    background: linear-gradient(to right, #147854, #2cfcb0);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
  }
  
  form {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
  }

  h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    margin: 10px 0 5px;
    color: #555;
    font-weight: bold;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
    align-self: center;
  }
  
  input:focus {
    border-color: #147854;
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.3);
  }
  
  button {
    width: 100%;
    padding: 12px;
    background-color: #147854;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    margin-top: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #116848;
  }
  
  p {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
  }
  
  a {
    color: #147854;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  .error {
    background-color: #ffe0e0;
    color: #c0392b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  .success {
    background-color: #e0ffe5;
    color: #27ae60;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  @media (max-width: 1000px) {
    form {
      width: 70%;
      max-height: 90vh;
      max-width: none;
      /* padding: 20px 15px; */
      border-radius: 12px;
      box-shadow: none;
    }

    label {
        font-size: 30px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"] {
        padding: 35px 10px;
        font-size: 30px;
    }
  
    h2 {
      font-size: 35px;
    }
  
    button {
      font-size: 30px;
      padding: 20px;
      margin-top: 50px;
    }
  
    .error, .success {
      font-size: 22px;
      padding: 13px;
    }

    p {
        font-size: 25px;
    }
  }  
  