form {
  padding: 0 1em 0 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Poppins", sans-serif;
}
body {
  overflow-x: hidden;
}

h2 {
  text-align: center;
  margin-top: 45px;
  margin-bottom: 20px;
  color: #b9282a;
  font-weight: 700;
  letter-spacing: 1px;
}
.bfplogo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: -1;
}
.error_msg.active {
  position: relative;
  margin: 30px 0;
  color: rgb(168, 11, 11);
  padding: 0.5em 1em;
  background-color: rgb(255, 176, 176);
  border-radius: 7px;
}
.bfplogo img {
  width: 90%;
  height: auto;
}

.form-row {
  display: flex;
  gap: 20px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.input-group input,
.input-group select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background: #d9d9d9;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #191818;
  border: 0.5px solid #191818;
  background: #d9d9d9;
  outline: none;
}

button[type="submit"] {
  padding: 10px;
  background: #b9282a;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
  background: #8b1919;
}
/* Terms and Privacy Policy checkbox styling */
.terms_checkbox {
  font-size: 14px;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .terms_checkbox input[type="checkbox"] {
    margin-right: 20px;
    transform: scale(1.2); 
} */

.terms_checkbox a {
  color: #b92828;
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms_checkbox a:hover {
  color: #8b1919;
}

.terms_checkbox label {
  font-size: 14px;
  color: #333;
}

/* .remember_me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
} */

.remember_me {
  margin: 0;
  font-size: 14vw;
  color: #333;
  display: flex;
  align-items: center;
}

form a {
  font-size: 14px;
  color: gray;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.3s;
}

form a:hover {
  color: red;
  text-decoration: underline;
}

/* Login form container */
.form-container {
  max-width: 1400px;
  width: 100%;
  margin: 50px auto;
  padding: 10px;
  background: transparent;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(3px);
  /* position: fixed;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%); */
  z-index: 1;
  overflow: hidden !important;
}

.form_links {
  text-align: center;
  justify-items: center;
}
.form_links a {
  color: #b9282a;
  font-weight: bold;
}
.form_links p {
  color: #8b8989;
}
h3 {
  margin-top: -5vw;
  color: #b9282a;
  text-align: center;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding: 10px;
  padding-right: 40px; /* space for the eye icon */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.input-group img {
  padding-right: 10px; /* space for the eye icon */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(0);
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.input-group img:hover {
  opacity: 1;
}

.btn-text {
  display: inline-block;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  /* .terms_checkbox,
    .remember_me {
  padding-left: 10vw; 
  margin: 0;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
} */
  .terms_checkbox label {
    font-size: 14px;
    color: #333;
    padding-left: 4vw;
  }
  .form-row {
    flex-direction: column;
  }
  .form-container {
    margin: auto;
    overflow: hidden;
  }
  h2 {
    margin-top: 20px;
  }
}

body {
  background: #f2f2f2;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/* Terms and Privacy Policy checkbox styling */
.modal-content h2{
    margin: 0;
    padding: 0;
    color: black;
    
}
.open-modal {
  background: none;
  border: none;
  color: green;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

/* Modal backdrop */
.modal {
  display: none;
  align-items: center;
  justify-items: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

/* Modal content box */
.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.modal-content .close {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* Scrollable body for long terms */
.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.terms_checkbox {
  margin: 10px 0;
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: flex-start;
  align-items: left;
}

.terms_checkbox input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.terms_checkbox a {
  color: #b92828;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-left: 5px;
}

.terms_checkbox a:hover {
  color: #8b1919;
}

.terms_checkbox label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

