/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Home Page */
.home-container {
  height: 100vh;
  background: url('indexbg2.jpg') no-repeat center top/cover;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 50px;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 36px;
  text-align: center;
  border-radius: 10px;
  width: 500px;
}

.welcome-message {
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  animation: typing 3s steps(30, end), blink 0.5s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid white;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: white; }
}

.login-as {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.button {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.ngo-button {
  background-color: #2E8B57;
}

.company-button {
  background-color: #2E8B57;
}

.button:hover {
  transform: scale(1.1);
  background-color: #1E6738;
}

.or-divider {
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* Form Pages */
.form-container {
  height: 100vh;
  background: url('images/login.jpg')no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

form {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 400px;
  text-align: center;
  position: relative;
}

form h2 {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin: 10px 0 5px;
}

form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-bottom: 15px;
  background-color: #2E8B57;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

form button:hover {
  transform: scale(1.1);
}

.back-button {
  position: absolute;
  bottom: 20px; /* Places it at the bottom of the form */
  left: 20px; /* Aligns it to the left side inside the form */
  background-color: #555;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: scale(1.1);
}