body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #fff;
  font-family: "montserrat", sans-serif;
  font-weight: 500;
  color: #fff;
  background:
    linear-gradient(rgb(0 0 0 / 24%), rgb(0 0 0 / 65%)), url(../Imgs/background2.jpg);
  background-size: cover;
  background-position: center;
  margin: 0;
}

.pic {
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  width: 150px;
  height: auto;
  margin-top: -50px;
}

h1 {
  padding-bottom: 5px;
  font-weight: 900;
  font-size: 28px;
  color: rgb(255, 255, 255);
}

.Wrapper {
  width: 90%;
  max-width: 420px;
  color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  border: 2px solid rgba(225, 225, 225, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  /* background: #ce222e2e; */
}

.Wrapper h1 {
  font-size: 30px;
  /* Adjusted font size for smaller screens */
  text-align: center;
  color: #fff;
}

.form {
  width: 100%;
  position: relative;
  height: 60px;
  overflow: hidden;
  margin-bottom: 15px;
  /* Adjusted margin for smaller screens */
}

.form input {
  width: calc(100% - 40px);
  height: 100%;
  color: #fff;
  padding-top: 20px;
  border: none;
  background-color: transparent;
  margin-right: 40px;
  font-size: 18px
}

.form i {
  position: absolute;
  right: 10px;
  /* Adjusted right margin for smaller screens */
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.content-name {
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.form label {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-bottom: 1px solid white;
}

.form label::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0px;
  width: 100%;
  height: 100%;
  border-bottom: 1px solid #ff5a5a;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

.form input:focus {
  outline: none;
}

.form input:focus+.label-name .content-name,
.form input:valid+.label-name .content-name {
  transform: translateY(-150%);
  font-size: 14px;
  left: 0px;
  color: #fff;
}

.form input:focus+.label-name::after,
.form input:valid+.label-name::after {
  transform: translateX(0%);
}

.login-btn {
  width: 100%;
  height: 40px;
  background: #d8202d;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 15px;
  /* Adjusted margin for smaller screens */
}

.login-btn:hover {
  background: #6b1313;
  color: #fff;
}

@media (min-width: 280px) {

  /* Apply additional styles for larger screens if needed */
  .Wrapper {
    width: 90%;
    /* Adjusted width for larger screens */
    margin: 50px auto;
    /* Center the wrapper with top margin */
    padding: 80px 50px;
    /* Adjusted padding for larger screens */
    box-sizing: border-box;
    /* Include padding and border in the total width */
    border: 1px solid rgb(255 103 103 / 57%);
    box-shadow: 0 0 50px 2px rgba(142, 14, 14, 0.5);
  }

  h1 {
    font-size: 35px;
    /* Adjusted font size for larger screens */
  }

  .form input {
    width: calc(100% - 40px);
    /* Adjusted input width for larger screens */
  }

  .form i {
    right: 20px;
    /* Adjusted right margin for larger screens */
  }

  .login-btn {
    margin-top: 20px;
    /* Adjusted margin for larger screens */
  }
}

/* Existing styles for larger screens */

/* New styles for smaller screens */