/* Importing Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Ensures the logo and form are stacked vertically */
  height: 100vh;
  padding: 15px;
  background: #fdffff;
  overflow: hidden;
}

.logo {
  text-align: center;
  margin-bottom: 20px; 
}

.logo img {
  width: 150px; 
  height: auto;
}

.wrapper {
  max-width: 380px;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.1);
}

.wrapper .title {
  height: 60px;
  background: #3D365C;
  border-radius: 5px 5px 0 0;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper form {
  padding: 25px 35px;
}

.wrapper form .row {
  height: 60px;
  margin-top: 15px;
  position: relative;
}

.register .row {
  height: 60px;
  margin-top: 13px !important;
  position: relative;
}
.register .row .invalid-feedback {
  margin-top: 2px; 
}
.is-invalid ~ .invalid-feedback + input {
  margin-top: 10px; /* Push confirm password down */
}

.wrapper form .row input {
  height: 40px;
  width: 100%;
  outline: none;
  padding-left: 45px;
  border-radius: 5px;
  border: 1px solid lightgrey;
  font-size: 14px;
  transition: all 0.3s ease;
}

form .row input:focus {
  border-color: #7C4585;
}

form .row input::placeholder {
  color: #999;
}

.wrapper form .row i {
  position: absolute;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 22px;
  background: #3D365C;
  border: 1px solid #3D365C;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper form .pass {
  margin-top: 1px;
}

.wrapper form .pass a {
  color: #3D365C;
  font-size: 15px;
  text-decoration: none;
}

.wrapper form .pass a:hover {
  text-decoration: underline;
}

.wrapper form .button input {
  margin-top: 15px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  padding-left: 0px;
  background: #3D365C;
  border: 1px solid #3D365C;
  cursor: pointer;
}

form .button input:hover {
  background: #3D365C;
}

.wrapper form .signup-link {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
}

.wrapper form .signup-link a {
  color: #3D365C;
  text-decoration: none;
}

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

/* Ensure proper styling for the error messages */
.invalid-feedback {
  display: none; /* Hide by default */
  color: red; /* Error message color */
  font-size: 12px; /* Slightly smaller font size for error messages */
  margin-top: 5px; /* Add space between input field and error message */
}

/* Show error messages only when there's an invalid input */
.is-invalid ~ .invalid-feedback {
  display: block; /* Show the error message */
}

/* Input fields with errors */
.is-invalid {
  border-color: red; /* Red border for invalid inputs */
  background-color: #f8d7da; /* Light red background to indicate error */
}

/* Optional: Add focus styling to the invalid input */
.is-invalid:focus {
  border-color: red; /* Darker red border on focus */
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Shadow to highlight focus */
}
