body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Outer Container */
.form-outer {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Fade-in animation (optional, nice touch) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Container */
.form-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 380px;
  max-height: 85vh;           /* ⬅️ Limits height */
  overflow-y: auto;           /* ⬅️ Allows scroll if needed */
  animation: fadeInUp 1s ease-in-out;
}

form h2 {
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

label {
  display: block;
  font-weight: bold;
  margin-top: 12px;
}

input,
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 2px solid orange;
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
  box-sizing: border-box;
}

span {
  color: red;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  background-color: orange;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: darkorange;
}

.login-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.login-link a {
  color: #f57c00;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}


/* ✅ Error & Success Messages */
.error-message {
  color: red;
  background-color: #ffe5e5;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
}

.success-message {
  color: green;
  background-color: #e8f5e9;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
}
