@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f6f3f6f3; /* Dark blue background color */
  overflow: hidden; /* Prevent scrolling */
}

.random-images-container {
  position: fixed; /* Use fixed position to cover the entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.5;
}

.random-image {
  position: absolute;
  transform-origin: center center;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 95%;
}

form {
  padding: 25px;
  background: #fff;
  width: 60%;
  max-width: 1200px;
  border-radius: 7px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  z-index: 2;
}

form h2 {
  font-size: 27px;
  margin: 0px 0 30px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-group {
  flex-basis: calc(50% - 10px);
  margin-bottom: 20px;
}
.form-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 equal-width columns */
        gap: 20px; /* space between items */
    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
.form-columns {
  display: flex;
  justify-content: space-between;
}

.form-column {
  flex-basis: 48%; /* Adjust as needed, considering margin between columns */
}

form label {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
}

form input,
form select {
  height: 50px;
  padding: 12px;
  width: calc(100% - 24px);
  font-size: 15px;
  outline: none;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #bfbfbf;
}

form input:focus,
form select:focus {
  border-color: #9a9a9a;
}
.error {
  color: red;
  font-size: 0.875em;
  margin-top: 0.25em;
}

form input.error,
form select.error {
  border-color: #f91919;
  background: #f9f0f1;
}

form small {
  font-size: 14px;
  margin-top: 5px;
  display: block;
  color: #f91919;
}

.password-container {
  position: relative;
  width: 100%;
  margin-right: 20%;

}

.password-container input {
  padding-right: 50px; 
  box-sizing: border-box; 
}

.password-container i {
  position: absolute;
  right: 35px; 
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px; 
  line-height: 1;
  cursor: pointer;
  color: #939393;
  pointer-events: auto; 
}


.submit-btn {
  margin-top: 30px;
}

.submit-btn input {
  color: white;
  border: none;
  height: auto;
  font-size: 16px;
  width: 400px;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  background: #3949ab;
  transition: 0.2s ease;
}

.submit-btn input:hover {
  background: #0b1374;
 
}

.sign-in-text {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.sign-in-text a {
  color: #3949ab;
  text-decoration: none;
  font-weight: bold;
}

.sign-in-text a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  form {
    width: 80%;
  }
}

@media screen and (max-width: 600px) {
  .form-group {
    flex-basis: 100%;
  }
  
  form input,
  form select {
    width: calc(100% - 16px);
  }
  
  .submit-btn input {
    width: 100%;
  }
}

.required-asterisk {
  color: red;

}
