body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main {
  margin-top: 80px;
}
.container-fluid {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth {
  width: 600px;
  height: 400px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Input fieds */
.input-con {
  display: grid;
  grid-template-columns: repeat(2, 50%);
}
/* Input container */
.input-container {
  position: relative;
  margin: 20px;
}

/* Input field */
.input-field {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  background-color: transparent;
}

/* Input label */
.input-label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 16px;
  color: rgba(204, 204, 204, 0);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Input highlight */
.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #007bff;
  transition: all 0.3s ease;
}

/* Input field:focus styles */
.input-field:focus + .input-label {
  top: -20px;
  font-size: 12px;
  color: #007bff;
}

.input-field:focus + .input-label + .input-highlight {
  width: 100%;
}

/* Buttons */

button {
  width: 110px;
  height: 50px;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: #fff;
  transition: 0.4s;
}

button:hover {
  color: #fff;
  background-color: #1a1a1a;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

button:active {
  box-shadow: none;
  transform: translateY(0);
}

.auth a {
  text-decoration: underline;
  font-weight: bolder;
}


.cart-msg {
  position: absolute;
  top: 80px;
  right: 0;
  padding: 15px;
  box-shadow: 10px 10px 40px rgba(75, 74, 74, 0.5);
  margin-right: 15px;
  width: 320px;
  height: max-content;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  transition: 0.7s ease-in-out;
  transform: translateX(380px);
}

body.dark-mode .input-field{
  color: #fff;
}

@media (max-width: 992px){
  .auth{
    width: 95%;
    height: auto;
    padding: 20px;
  }
  .input-con{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px){
  .container-fluid{
    height: auto;
    padding: 20px;
  }
  .input-container{
    margin: 14px 0;
  }
  button{
    width: 100%;
  }
  .cart-msg{
    width: 90%;
    right: 5%;
  }
}