* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #8ab1eba1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 20px;
  flex-direction: column;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 150px;
  height: auto;
}

/* Modal / Form Container */
.modal {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Headings */
.login-form h2,
.modal-content h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  color: #333;
}

/* Input Fields */
form input[type="email"],
form input[type="password"],
form input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

/* Labels */
label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  display: block;
  margin-top: 12px;
}

/* Submit Button */
button[type="submit"] {
  width: 60%;
  background-color: #ff6f61;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #e8574d;
}

/* Message Styling */
.message {
  margin-top: 15px;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
}

.error {
  background: #f8d7da;
  color: #721c24;
}

.success {
  background: #d4edda;
  color: #155724;
}

/* Show modal class */
.modal.show {
  display: flex;
}


/* Tablets */
@media (max-width: 1024px) {
  .modal {
    max-width: 90%;
    padding: 25px;
  }

  .logo img {
    max-width: 130px;
  }

  button[type="submit"] {
    width: 70%;
  }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
   body{
    min-height: 800px;
  }
  .modal {
    padding: 20px;
    max-width: 95%;
  }

  .login-form h2,
  .modal-content h3 {
    font-size: 22px;
  }

  form input,
  button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }

  button[type="submit"] {
    width: 80%;
  }
}
.developed-by {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #444;
  font-family: Arial, sans-serif;
}
/* Mobile Phones */
@media (max-width: 480px) {
  .modal {
    padding: 18px;
    border-radius: 8px;
  }

  .logo img {
    max-width: 110px;
  }

  .login-form h2,
  .modal-content h3 {
    font-size: 20px;
  }

  label {
    font-size: 13px;
  }

  form input {
    padding: 10px;
    font-size: 13px;
  }

  button[type="submit"] {
    width: 100%;
    font-size: 15px;
  }

  .message {
    font-size: 13px;
    padding: 10px;
  }
  .developed-by {
    font-size: 13px;
    margin-top: 15px;
    padding: 10px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .modal {
    padding: 15px;
  }

  .logo img {
    max-width: 100px;
  }

  .login-form h2,
  .modal-content h3 {
    font-size: 18px;
  }

  form input,
  button[type="submit"] {
    font-size: 13px;
    padding: 8px;
  }
}
