@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f0f8ff; /* Light blue background */
  overflow: hidden;
}

::selection {
  background: rgba(8, 83, 162, 0.3); /* Blue selection color */
}

.container {
  max-width: 440px;
  padding: 0 20px;
  margin: 100px auto; /* Adjusted for better centering */
}

.wrapper {
  width: 100%;
  background: #ffffff; /* White background for the form */
  border-radius: 10px;
  box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.1);
}

.wrapper .title {
  height: 80px;
  background: #007bff; /* Blue background for title */
  border-radius: 10px 10px 0 0;
  color: #ffffff; /* White text */
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper form {
  padding: 30px 25px 25px 25px;
}

.wrapper form .row {
  height: 45px;
  margin-bottom: 15px;
  position: relative;
}

.wrapper form .row input {
  height: 100%;
  width: 100%;
  outline: none;
  padding-left: 60px;
  border-radius: 5px;
  border: 1px solid #cfd8dc; /* Light grey border */
  font-size: 16px;
  transition: all 0.3s ease;
}

form .row input:focus {
  border-color: #007bff; /* Blue border on focus */
  box-shadow: inset 0px 0px 2px 2px rgba(0, 122, 255, 0.25); /* Blue shadow */
}

form .row input::placeholder {
  color: #9e9e9e; /* Light grey placeholder text */
}

.wrapper form .row i {
  position: absolute;
  width: 47px;
  height: 100%;
  color: #ffffff; /* White icon color */
  font-size: 18px;
  background: #0056b3; /* Darker blue background for icon */
  border: 1px solid #0056b3;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper form .row .error-message {
  position: absolute;
  top: 100%; /* Position it below the input */
  left: 0;
  width: 100%;
  color: #e74c3c; /* Red color for error messages */
  font-size: 14px;
  padding-top: 5px;
  z-index: 10; /* Ensure error message appears above other elements */
}

.wrapper form .pass {
  margin: -8px 0 20px 0;
}

.wrapper form .pass a {
  color: #007bff; /* Blue color for links */
  font-size: 17px;
  text-decoration: none;
}

.wrapper form .pass a:hover {
  text-decoration: underline;
}

.wrapper form .button input {
  color: #ffffff; /* White text */
  font-size: 20px;
  font-weight: 500;
  padding: 10px;
  background: #0056b3; /* Darker blue background */
  border: 1px solid #0056b3;
  cursor: pointer;
  border-radius: 5px;
}

form .button input:hover {
  background: #004494; /* Even darker blue on hover */
}

.wrapper form .signup-link {
  text-align: center;
  margin-top: 20px;
  font-size: 17px;
}

.wrapper form .signup-link a {
  color: #007bff; /* Blue color for links */
  text-decoration: none;
}

form .signup-link a:hover {
  text-decoration: underline;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it appears on top of other content */
}

.popup.hidden {
  display: none; /* Hide the popup by default */
}

.popup-content {
  margin: 5px;
  background: #ffffff; /* White background for popup */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
  position: relative; /* Ensure close button is positioned correctly */
}

.popup-content span {
  font-size: 18px;
  color: #333; /* Dark text color */
  margin-right: 20px;
}

.popup-close-btn {
  background: #007bff; /* Blue background for close button */
  border: none;
  color: #ffffff; /* White text */
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
}

.popup-close-btn:hover {
  background: #004494; /* Even darker blue on hover */
}
