body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
}

/* CONTAINER */
.login-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("/uploads/img-nova-crm.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 365px;
}

/* LEVE CAMADA PARA DESTACAR */
.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* WRAPPER */
.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-form-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-card {
  position: relative;
  top: -230px;
  background: transparent;
  border-radius: 24px;
  padding: 35px 30px;
  width: 100%;
  max-width: 500px;
}

.login-card .form-control {
  background: transparent !important;
  border-color: #42187e !important;
}

.login-card .form-control:hover {
  border-color: #42187e;
}

.login-card .mb-3 {
  color: #8541ea;
}

.login-card .form-control,
.login-card input {
  background-color: #d6c4f2 !important;
  color: #2f145f !important;
  border: 2px solid #4b1fa3 !important;
  box-shadow: none !important;
}

.login-card .form-control:focus,
.login-card input:focus {
  background-color: #d6c4f2 !important;
  color: #2f145f !important;
  border-color: #4b1fa3 !important;
  box-shadow: none !important;
  outline: none;
}

/* Chrome, Safari e autofill */
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus,
.login-card input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #d6c4f2 inset !important;
  -webkit-text-fill-color: #2f145f !important;
  border: 2px solid #4b1fa3 !important;
  transition: background-color 9999s ease-in-out 0s;
}

.btn-entrar {
  background: #42187e;
  color: #fff;
  border: none;
}

.btn-entrar:hover {
  background: #8541ea;
  color: #fff;
}

.topo-aivy {
   display: none;
}

@media (max-width: 768px) {
  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }

  .topo-aivy {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .topo-aivy img {
     position: relative;
     width: 90%;
     height: auto;
  }

  body {
    background: url("/uploads/aivy-crm-mobile.png") no-repeat center center;
    background-size: 100% 100%;
  }

  .login-container {
    width: 100%;
    min-height: 100vh;
    padding: 0 20px 40px;
    background: transparent !important;
    background-image: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .login-overlay {
    display: none;
  }

  .login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 150px;
  }

  .login-form-box {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .login-form {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .login-card {
    position: relative;
    width: 100%;
    max-width: 250px;
    padding: 0;
    margin: 0 auto;
    background: transparent;
  }

  .login-card .card-body {
    padding: 0 !important;
  }

  .login-card .mb-3 {
    margin-bottom: 20px !important;
  }

  .login-card .form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #6e43d6 !important;
    margin-bottom: 8px;
  }

  .login-card .form-control,
  .login-card input {
    width: 100%;
    height: 54px;
    border-radius: 20px;
    font-size: 16px;
    padding: 0 18px;
    background-color: #d6c4f2 !important;
    color: #2f145f !important;
    border: 2px solid #4b1fa3 !important;
    box-shadow: none !important;
  }

  .login-card .form-control:focus,
  .login-card input:focus {
    background-color: #d6c4f2 !important;
    color: #2f145f !important;
    border-color: #4b1fa3 !important;
    box-shadow: none !important;
    outline: none;
  }

  .btn-entrar,
  .login-card button {
    width: 100%;
    height: 54px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    background: #42187e;
    color: #fff;
    border: none;
  }

  .btn-entrar {
     width: 100%;
     height: 54px;
     border-radius: 20px;
     font-size: 16px;
     font-weight: 700;
     margin-top: 8px;
     background: #42187e;
     color: #fff;
     border: none;
  }

  #toggleSenha {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: auto !important;
    height: auto !important;
    min-width: auto !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #toggleSenha i {
    font-size: 24px;
    color: #8541ea;
  }
}
