@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('./loading.css');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
 
  
  background: linear-gradient(60deg,
    #000,
    #1d2b64,
    #0f2027
  );
  background-size: 300% 300%;
  animation: gradientShift 25s ease infinite;
  padding: 14px;
}


@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
    
  }
  
}

body section{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 60%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}
body section form{
    width: 47%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

section form img{
    width: 10rem;
    height: 7rem;
}
form .input h1{
    text-transform: capitalize;
    color: #154581;
    font-weight: 900;
}
form .input p{
  font-size: 12px;
  text-transform: capitalize;
  color: rgb(93, 0, 0);
  font-style: oblique;
}
.form-group {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 20px 0;
}

/* INPUT */
.form-group input {
  width: 100%;
  padding: 16px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1.5px solid #ccd0d5;
  background: #fff;
  outline: none;
  transition: all 0.25s ease;
}


.form-group input:focus {
  border-color: #154581;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}


.form-group label {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #8a8d91;
  font-size: 15px;
  pointer-events: none;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 6px;
  transition: all 0.25s ease;
}


.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 12px;
  color: #154581;
}


.form-group input::placeholder {
  color: transparent;
}
body section .info{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53%;
    height: 100%;
    
    
}
form .input button{
    width: 8rem;
    height: 2.5rem;
    border: none;
    background-color: #154581;
    color: white;
    text-transform: capitalize;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 900;
}
section .info img{
    width: 90%;
    height: 90%;
}

@media (max-width: 980px) {
  body { padding: 10px; }
  body section{
    width: min(520px, 100%);
    height: auto;
    border-radius: 8px;
  }

  body section form{
    width: 100%;
    padding: 16px 14px 18px;
  }

  body section .info{
    display: none;
  }

  section form img{
    width: 8rem;
    height: auto;
  }

  .form-group{
    max-width: 100%;
    margin: 16px 0;
  }

  form .input button{
    width: 100%;
    height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  body { padding: 8px; }
  body section {
    width: 100%;
    border-radius: 6px;
  }
  .form-group input{
    padding: 12px 10px;
    font-size: 14px;
  }
  .form-group label {
    font-size: 13px;
  }
  form .input button {
    height: 40px;
    font-size: 13px;
  }
  section form img {
    width: 7rem;
  }
}
