:root {
  --primary-color: #3b82f6;
  --text-color: #a6aebd;
  --background-color: #001127;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  background: rgb(23, 41, 64);
  background: linear-gradient(
    90deg,
    rgba(16, 35, 58, 1) 0%,
    rgba(0, 17, 39, 1) 80%
  );
}

.container-custom {
  display: flex;
  flex-wrap: wrap;
  /* width: 100dvh; */
  max-width: 60vw;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 17, 39, 1);
  border-radius: 10px;
  overflow: hidden;
  background-color: #333333;
  padding-right: 0;
}

.left {
  padding: 40px;
  width: 100%;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left img {
  width: 40%;
  height: auto;
  margin-bottom: 20px;
}

.left h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.left p {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.left label {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 5px;
}

.left input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
}

.left .remember-me {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.left .remember-me input {
  margin: 0;
  width: auto;
}

.left .forgot-password {
  font-size: 12px;
  color: #3b82f6;
  margin-left: auto;
}

.left button {
  width: 100%;
  padding: 10px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
}

.left button:hover {
  background-color: #296ad4;
}

.left button:focus {
  border: 0;
  background-color: #1d58b6;
}

.left .signup-link {
  font-size: 14px;
  color: var(--text-color);
}

.left .signup-link a {
  color: #3b82f6;
  text-decoration: none;
}

.right {
  width: 100%;
  max-width: 40%;
  background: url("/assets/img/large/familiaJovemComprandoCarro.jpg") no-repeat
    center center;
  background-size: cover;
}

#btnLogin {
  position: relative;
  width: 100%; /* Garantindo que o botão ocupe todo o espaço */
  padding: 10px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loadingSpinner {
  position: absolute;
  display: none;
}

#btnText {
  visibility: visible;
  z-index: 1;
}

#btnLogin.loading #loadingSpinner {
  display: inline-block;
}

#btnLogin.loading #btnText {
  visibility: hidden;
}

@media (max-width: 860px) {
  .container-custom {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .left,
  .right {
    max-width: 100%;
  }

  .left {
    padding: 20px;
  }
}
