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


/* ---------------------------------- */
/* ---------------------------------- */
/* ---------------------------------- */

.btn1 {
  width: 100%;
  padding: 15px;
  background-color: rgb(38, 38, 233);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  
  &:hover {
    background-color: rgb(27, 27, 168);
  }
  
}


.btn2 {
  width: 100%;
  padding: 15px;
  background-color: rgb(233, 38, 38);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;

  &:hover {
    background-color: rgb(129, 31, 31);
  }
}

.forgot-btn {
  color: white;
  cursor: pointer;
  &:hover {
    text-decoration: underline;
    color: red;
  }
}

/* ---------------------------------- */
/* ---------------------------------- */
/* ---------------------------------- */

body {
  background: linear-gradient(338deg, black, grey);
    /* background: url(garfield.jpg) center no-repeat;
  background-size: cover;
  backdrop-filter:b; */
}

main {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: fit-content;
  min-height: 100vh;
}

.details h2 {
  font-size: 3rem;
  text-align: center;
  font-family: math;
  margin: 0;
  color: red;
  cursor: default;
}

.details h1 {
  text-align: center;
  font-size: 5rem;
  font-family: cursive;
  filter: drop-shadow(2px 4px 6px black);
  color: white;
  cursor: default;
}

.details p {
  cursor: default;
  border-top: 1px solid red;
  border-bottom: 1px solid #0071e2;
  padding: 5px;
  margin-top: 10px;
  color: white;
}

.form-container {
  position: relative;
  background-color: #ffffff1c;
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
  transition: 0.3s all;
  max-width: 85vw;
  box-shadow: 0px 0px 5px black;
  overflow: hidden;
}

.loading-spinner {
  display: none;
  --height-of-loader: 6px;
  --loader-color: #0071e2;
  width: 108%;
  height: var(--height-of-loader);
  border-radius: 30px;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: -4%;
}

.loading-spinner::before {
  content: "";
  position: absolute;
  background: var(--loader-color);
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 30px;
  animation: moving 1s ease-in-out infinite;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}

.title-area {
  display: none;
}

.title-area h1,
h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 10px;
  cursor: default;
}

.title-area p {
  font-size: 16px;
  border-top: 1px solid red;
  border-bottom: 1px solid #0071e2;
  color: white;
  margin-bottom: 20px;
  filter: drop-shadow(2px 4px 6px red);
}

a {
  text-decoration: none;
}

.error-msg,.success-msg {
  text-transform: capitalize;
  color: white;
  margin: 5px auto;
  filter: drop-shadow(2px 4px 8px red);
}

.success-msg{
filter: drop-shadow(2px 4px 8px green);
}

input {
  width: 100%;
  padding: 15px 3px 15px 35px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  background-color: #f5f5f5;
  margin: 10px 0;

  &:focus {
    outline: none;
    background-color: rgb(216, 214, 214);
  }
}

input[type=password]{
padding-right: 40px;
}

.password-container{
  position: relative;
}

.fas{
  position: absolute;
  top: 38%;
  right: 3%;
}

.emailcontainer,.namecontainer{
  position: relative;
}

.left-icon{
  position: absolute;
  top: 37%;
  left: 2%;
  font-size: 1.3rem;
  opacity: 50%;
}

.signup-area,.forgot-area {
  display: none;
}

.line {
  margin: 5px auto 8px;
}


@media (max-width: 768px) {

  main{
   height: 100vh;
  }

.form-container{
  padding: 20px 100px;
  width: 100vw;
  border-radius: 0;
  height: 100vh;
  max-width: 100vw;
   display: grid;
  place-content: center;
}

  .details {
    display: none;
  }

  .title-area {
    display: block;
  }

   .title-area p{
    padding: 8px 0;
  }

  .form-container h2 {
    display: none;
  }

  .forgot-btn{
    margin: 10px 0;

  }
}

@media (max-width: 500px) {
  .form-container{
    padding: 20px 30px;
  }
}
@media (max-width: 450px) {
  .title-area p {
    font-size: 0.8rem;
  }

  .btn1,.btn2{
    font-size: 14px;
  }

}
@media (max-width: 360px) {
  .title-area p {
    font-size: 0.7rem;
  }
}

