/* Geral */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

/* Container principal */
.container {
  display: flex;
  height: calc(100vh);
  position: relative;
}

/* Formulário de autenticação */
.auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.auth-form-content {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  background-color: rgb(246, 247, 249);
  box-shadow: rgba(0, 0, 0, 0.6) 0px 4px 9px;
  border-radius: 4px;
}

.auth-form-logo {
  position: absolute;
  bottom: 5%;
  max-width: 40%;
  align-self: center;
}

.auth-form-logo img {
  width: 100%;
  height: auto;
}

.register-form-container {
  position: relative;
}

html {
  height: 100%;
  background-color: var(--primary-color);
}

.register-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: var(--primary-color);
  position: relative;
  box-sizing: border-box;
}

.register-form-content {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background-color: rgb(246, 247, 249);
  box-shadow: rgba(0, 0, 0, 0.6) 0px 4px 9px;
  border-radius: 4px;
}

.register-form-logo img {
  width: 100%;
  max-width: 420px;
  margin-top: 32px;
  height: auto;
}

/* Ajustes nos labels e inputs */
.form-row {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  gap: 3%;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
  flex: 1;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #aaa;
}

input {
  width: 100%;
  padding: 15px 10px 15px 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #333 !important;
}

.submit {
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s ease-in-out;
  width: 100%;
  padding: 9px 16px;
  background-color: var(--primary-color);
}

.error {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
  text-align: center;
}

.auth-actions-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.forget-password {
  display: flex;
  align-items: center;
  justify-content: right;
  color: var(--primary-color);
  font: 0.75em sans-serif;
  cursor: pointer;
  gap: 5px;
}

label {
  position: absolute;
  top: -8px;
  left: 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
  padding: 0 4px;
  z-index: 1;
}

button {
  padding: 10px;
  background-color: var(--primary-color);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
}

/* Links */
a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* Rodapé */
.footer {
  position: absolute;
  bottom: 0;
  right: 0;
  color: white;
  font: 0.75em sans-serif;
  text-align: right;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: #ffffff;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px 15px 15px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 98;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.custom-option {
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 10px;
  cursor: pointer;
}

.custom-option input[type="checkbox"] {
  margin-right: 10px;
  max-width: 16px;
  max-height: 16px;
}

.custom-option.search-option {
  padding: 10px;
  background: #f4f4f4;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 99;
}

.custom-option:hover {
  background: #f4f4f4;
}

.custom-select.open .custom-options {
  display: block;
}

/* Media Queries para dispositivos móveis */
@media (max-width: 768px) {
  .carousel-container {
    display: none;
  }

  .container {
    flex-direction: column;
  }

  .auth-form {
    padding: 10px;
  }

  .auth-form-content {
    max-width: 90%;
  }

  .register-form-content {
    max-width: 90%;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .auth-form-logo {
    bottom: 80%;
    width: auto;
    max-width: 80%;
  }

  .register-form-logo {
    display: none;
  }

  .footer {
    padding-bottom: 5px;
  }

  input {
    font-size: 16px;
  }
}
