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

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

body {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3A4FB0; /* Deep modern blue */
}

::selection {
  color: #fff;
  background: #3A4FB0;
}

.wrapper {
  width: 380px;
  /* padding: 40px 30px 50px 30px; */
  padding: 40px 10px 55px 10px;
  background: #fff;
  border-radius: 5px;
  text-align: center;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.1);
}

.wrapper header {
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 15px;
}
  /* 
.wrapper form {
margin: 40px 0;
}
 */
form .field {
  width: 100%;
  margin-bottom: 5px;
}

form .field.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    margin-left: 0px;
  }
  20%, 80% {
    margin-left: -12px;
  }
  40%, 60% {
    margin-left: 12px;
  }
}

form .field .input-area {
  height: 50px;
  width: 100%;
  position: relative;
}

form input, textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 45px;
  font-size: 18px;
  background: none;
  caret-color: #3A4FB0;
  border-radius: 5px;
  border: 1px solid #bfbfbf;
  border-bottom-width: 2px;
  transition: all 0.2s ease;
}

form .field input:focus,
form .field.valid input {
  border-color: #3A4FB0;
}

form .field.shake input,
form .field.error input {
  border-color: #E63946; /* Updated error red */
}

.field .input-area i {
  position: absolute;
  top: 50%;
  font-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-area .icon {
  left: 15px;
  color: #999;
  transition: color 0.2s ease;
}

.input-area .error-icon {
  right: 15px;
  color: #E63946;
}

.input-area .toggle-password {
  right: 45px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  cursor: pointer;
  z-index: 1;
}

form input:focus ~ .icon,
form .field.valid .icon {
  color: #3A4FB0;
}

form .field.shake input:focus ~ .icon,
form .field.error input:focus ~ .icon {
  color: #999;
}

form input::placeholder {
  color: #999;
  font-size: 17px;
}

form .field .error-txt {
  color: #E63946;
  text-align: left;
  margin-top: 5px;
}

form .field .error {
  display: none;
}

form .field.shake .error,
form .field.error .error {
  display: block;
}

form .pass-txt {
  text-align: left;
  /* margin-top: -10px; */
  text-decoration: none;
  list-style: none;
}

.wrapper a {
  position: relative;
  text-decoration: none;
  color: #007bff;
}

/* Default line */
.wrapper a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #007bff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* Hover state */
.wrapper a:hover::after {
  transform: scaleX(1);
}


form input[type="submit"] {
  height: 50px;
  margin-top: 10px;
  color: #fff;
  padding: 0;
  border: none;
  background: #3A4FB0;
  cursor: pointer;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

form input[type="submit"]:hover {
  background: #2B3A8D;
}

.sign-txt{
  margin-top: 20px;
}

.error-box {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
    font-family: Arial, sans-serif;
  }
  
  .custom-alert {
    position: relative;
    padding: 15px 40px 15px 15px;
    margin: 20px auto;
    border-left: 5px solid #d9534f;
    background-color: #f2dede;
    color: #a94442;
    border-radius: 4px;
    max-width: 500px;
    font-family: Arial, sans-serif;
}

  .custom-alert-success {
    position: relative;
    padding: 15px 40px 15px 15px;
    margin: 20px auto;
    border-left: 5px solid #5cb85c;
    background-color: #dff0d8;
    color: #3c763d;
    border-radius: 4px;
    max-width: 500px;
    font-family: Arial, sans-serif;
}

.custom-alert .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #a94442;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.custom-alert .close-btn:hover {
    color: #843534;
}