.form {
    --input-focus: #e74c3c;
    --font-color: #fff;
    --font-color-sub: #ccc;
    --bg-color: #2c3e50;
    --main-color: #e74c3c;
    padding: 20px;
    background: #34495e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 10px;
    height: 600px;
    border: 2px solid #e74c3c;
    box-shadow: 4px 4px #e74c3c;
    width: 450px;
    text-align: center;
  }
  
  .title {
    color: var(--font-color);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .title span {
    color: var(--font-color-sub);
    font-weight: 600;
    font-size: 18px;
  }
  
  .input {
    width: 300px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid #e74c3c;
    background-color: var(--bg-color);
    box-shadow: 4px 4px #e74c3c;
    font-size: 16px;
    font-weight: 600;
    color: white;
    padding: 5px 10px;
    outline: none;
  }
  
  .input::placeholder {
    color: var(--font-color-sub);
    opacity: 0.8;
  }
  
  .input:focus {
    border: 2px solid var(--input-focus);
  }
  
  .login-with {
    display: flex;
    gap: 20px;
  }
  
  .button-log {
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    border: 2px solid #e74c3c;
    background-color: var(--bg-color);
    box-shadow: 4px 4px #e74c3c;
    color: var(--font-color);
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .icon {
    width: 24px;
    height: 24px;
    fill: #e74c3c;
  }
  
  .button-log:active,
  .button-confirm:active {
    box-shadow: 0px 0px #e74c3c;
    transform: translate(3px, 3px);
  }
  
  .button-confirm {
    margin: 50px auto 0 auto;
    width: 140px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid #e74c3c;
    background-color: var(--bg-color);
    box-shadow: 4px 4px #e74c3c;
    font-size: 18px;
    font-weight: 600;
    color: var(--font-color);
    cursor: pointer;
  }
.flip-animation {
    perspective: 1000px;
    position: relative;
    width: 450px;
    height: 600px;
}
.flip-object {
    width: 100%;
    height: 100%;
    transition: transform 1500ms;
    transform-style: preserve-3d;   
    position: relative;
}
.flip-animation:hover > .flip-object {
    cursor: pointer;
    transform: rotateX(180deg) rotateZ(-180deg);
}
.front-object {
  height: 100%;
  width: 100%;
  border-radius: 2rem;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  pointer-events: none; /* Disable interaction on un-hovered state */
}

.back-object {
  height: 100%;
  width: 100%;
  border-radius: 2rem;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.flip-animation:not(:hover) > .flip-object {
  pointer-events: none; /* Disable interaction on un-hovered state */
}

.back-object {
    transform: rotateX(180deg) rotateZ(-180deg);
}
.team {
    width: 100%;
    position: absolute;
    bottom: 20px;
}
.qr-zalo {
    width: 180px;
    margin-bottom: 120px;
}
.front-object p {
    position: absolute;
    bottom: 45px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-style: italic;
    letter-spacing: 2px;
}
.front-object h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    position: absolute;
    top: 100px;
}
.front-object h2:first-of-type {
    font-size: 40px;
    top: 30px;
}
  /* END OF LOGIN FORM */
.login-bg {
    background-image: url("https://images.unsplash.com/photo-1559131397-f94da358f7ca?q=80&w=1469&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    width: 100%;
    height: 100vh;
    min-height: 800px;
    object-fit: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    filter: opacity(0.8) blur(3px);
}
  .login-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 2;
  }
  .login-wrapper .form {
    position: absolute;
    top: 0;
    left: 50px;
  }
  h1 {
    color: #2c3e50;
    font-size: 35px;
    letter-spacing: 2px;
    text-align: center;
    margin: 50px 180px;
    font-weight: 900;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    filter: drop-shadow(2px 4px 6px rgb(1, 14, 29));
  }
  #error-message {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .error-fade {
    animation: error-fade 1s ease-in-out 2s;
  }
  @keyframes error-fade {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @media only screen and (max-width: 500px) {
    h1 {
      margin: 20px 25px;
      font-size: 20px;
    }
    .form {
      height: 500px;
      width: 350px;
    }
    .login-wrapper .form {
      left:20px;
    }
    .flip-animation {
      height: 500px;
      width: 350px;
    }
    .button-confirm {
      margin: 10px;
      width: 170px;
  
    }
    .qr-zalo {
      width: 120px;
      margin-bottom: 80px;
    }
    .input {
      width: 260px;
      height: 50px;
      box-shadow: 0px 10px #e74c3c;
      padding: 20px 10px;
      margin: 5px 0;
    }
  }
  @media only screen and (max-width: 370px) {

    .form {
      height: 500px;
      width: 310px;
    }

    .flip-animation {
      height: 500px;
      width: 310px;
    }

  }