/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%; /* Ensure the html and body take up the full height of the viewport */
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column; /* Stack children vertically */
}

/* Main Content */
main {
  flex: 1; /* Allow the main content to grow and fill the remaining space */
  padding: 20px; /* Add some padding for spacing */
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  margin-top: auto; /* Push the footer to the bottom */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  direction: rtl; /* Ensure RTL layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure the body takes up the full viewport height */
}

/* Header */
h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 32px;
  color: #2c3e50;
}

/* Login Container */
.container {
  max-width: 400px;
  margin: 20px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.container h3 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

form input:focus {
  border-color: #3498db;
  outline: none;
}

form button {
  padding: 12px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 10px;
  }

  h1 {
    font-size: 28px;
  }

  .container h3 {
    font-size: 20px;
  }

  form input {
    padding: 10px;
    font-size: 14px;
  }

  form button {
    padding: 10px;
    font-size: 14px;
  }
}