/* ANIMATION FOR IMG MATT */
@keyframes enhancedReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body {
  font-family: 'Poppins', sans-serif;
  font-display: swap; /* Ensure optimal font loading */
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #d9edff;
}

.login-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  max-width: 5000px;

  /* MATT */
  background-color: white;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
}

#login-form {
  flex: 1 0 100%;
  max-width: 480px;
  width: 100%;
  padding: 60px;
}

#login-form p {
  margin-bottom: 30px;
}

#login-form p.form-title {
  color: #333333;
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0;
}

#login-form p.form-author {
  color: #333333;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0;
  text-align: center;
}

#login-form .ant-form-item-label > label.ant-form-item-required::before {
  display: none;
}

.ant-form-item-control-input-content {
  text-align: left;
}

#login-form .ant-input-affix-wrapper {
  padding: 12px 15px;
}

#login-form .ant-btn {
  height: 42px;
  letter-spacing: 1px;
  border-radius: 6px;
}

.login-form-button {
  width: 100%;
  font-size: 16px;
}

.illustration-wrapper {
  display: flex;
  align-items: flex-end;
  max-width: 800px;
  min-height: 100%;

  /* MATT */
  background-color: white;
}

.illustration-wrapper img {
  display: block;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  animation: enhancedReveal 1.2s ease-out; /* MATT animation */
}

/* Small screens */
@media screen and (max-width: 1023px) {
  .login-box {
    flex-direction: column;
    box-shadow: none;
  }

  .illustration-wrapper {
    max-width: 100%;
    min-height: auto;
  }

  #login-form {
    max-width: 100%;
  }
  
  /* MATT */
  #login-form p.form-title {
    font-size: 26px; /* Adjust the font size for smaller screens */
  }

  /* MATT */
  .login-page {
    background: white;
    border: 5px solid #d9edff; /* Adjust the color (#d9edff) and thickness (5px) as needed */
    border-radius: 8px; /* Adjust the radius to control the roundness of the corners */
  }   

  /* MATT */
  #login-form .ant-input-affix-wrapper {
    padding: 13px 18px;
  }
  
  /* MATT */
  #login-form .ant-btn {
    height: 45px;
    letter-spacing: 1px;
    border-radius: 6px;
  }
}

