/* ==========================================================
   LOGOTIPO — OVERRIDE LOGIN
========================================================== */

.login-logo .logo-nav {
  height: 86px;
}

@media (max-width: 992px) {
  .login-logo .logo-nav {
    height: 48px;
  }
}


/* ==========================================================
   LOGIN — LAYOUT
========================================================== */

.login-section {
  overflow: hidden;
  position: relative;
  height: 100dvh;
  align-content: center;
}

.login-tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
  width: 100%;
}

.login-tabs .tab {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-weight: 500;
  color: #9c9c9c;
  position: relative;
}

.login-tabs .tab:not(.active):hover {
  background-color: #efefef;
  color: #000000;
}

.login-tabs .tab.active {
  color: var(--color-grey38);
}

.login-tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #000;
}

.bg-white {
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-second-light-grey);
  box-shadow: 0px 0px 10px 0px #6363631a;
  border-radius: 16px;
}

.password-footer {
  text-align: right;
}

.esqueceu {
  color: var(--color-grey93);
  text-decoration: none;
}

.btn-blue {
  width: 100%;
  padding: 10px 12px;
  border-radius: 42px;
  border: none;
  background-color: var(--color-dark-aqua);
}

.form-control {
  height: 48px;
  margin-top: 8px;
}

.div-check {
  cursor: pointer;
}

#lembrar-input.form-check-input {
  margin-right: 12px;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-grey93);
}

.form-check-input:checked {
  background-color: black;
  border-color: black;
}

.form-check-label {
  color: #939393;
}


/* ==========================================================
   LOGIN — CAMPOS DO FORMULÁRIO
========================================================== */

.sessao-form input[type="date"],
.sessao-form input[type="email"],
.sessao-form input[type="password"],
.sessao-form input[type="text"],
.sessao-form input[type="number"] {
  border: 1px solid #F1F2F3;
  background-color: white;
  color: #000000;
  height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
}

.sessao-form input.invalid ~ .floating-label {
  color: #db4444;
}

#alerta-acesso-negado {
  margin-bottom: 32px;
  color: #db4444;
}

.sessao-form .floating-label .error-text {
  display: none;
}

.sessao-form input.invalid ~ .floating-label .error-text {
  display: inline;
}

.sessao-form input::placeholder {
  opacity: 0;
}

.sessao-form input:focus::placeholder {
  color: #a4a4a4;
}

/* Email válido */
.sessao-form input[type="email"].valid,
.sessao-form input[type="email"]:valid:not(:placeholder-shown) {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2310b981'/%3E%3Cpath d='M6 10l2.5 2.5L14 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Email inválido */
.sessao-form input[type="email"].invalid {
  border: 1px solid #db4444;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23DB4444'/%3E%3Cpath d='M10 6v5M10 13v1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Espaço para ícone do olho */
.sessao-form input[type="password"],
.sessao-form input[type="text"],
.sessao-form input[type="number"],
.sessao-form input[type="date"] {
  padding-right: 48px;
}

/* Password / texto inválido */
.sessao-form input[type="password"].invalid,
.sessao-form input[type="text"].invalid,
.sessao-form input[type="number"].invalid,
.sessao-form input[type="date"].invalid {
  border: 1px solid #db4444;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23DB4444'/%3E%3Cpath d='M10 6v5M10 13v1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}


/* ==========================================================
   TOGGLE PASSWORD (ÍCONE OLHO)
========================================================== */

.sessao-form .tab-login .toggle-password {
  position: absolute;
  right: 18px;
  top: 42%;
  transform: translateY(-38%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}

.sessao-form .tab-register .toggle-password {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(16%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}

.sessao-form .toggle-password:hover {
  opacity: 1;
}

.toggle-password .eye-open  { display: block; }
.toggle-password .eye-closed { display: none; }

.toggle-password.hidden .eye-open  { display: none; }
.toggle-password.hidden .eye-closed { display: block; }

.toggle-password img {
  pointer-events: none;
}


/* ==========================================================
   BOTÕES E OUTROS
========================================================== */

.botoes-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.line {
  width: 100%;
  margin-top: 32px;
  margin-bottom: 32px;
  border-radius: 1px;
}

.btn-google {
  width: 100%;
  border: none;
  height: 48px;
  background-color: #efefef;
  border-radius: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
}

.icon-back button {
  background: none;
  border: none;
}

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-dark-blue);
}

.dot.active {
  background-color: var(--color-dark-aqua);
}

.input-wrapper {
  margin-bottom: 24px;
}


/* ==========================================================
   LOGIN — MOBILE
   @media (max-width: 992px)
========================================================== */

@media (max-width: 992px) {
  .bg-white {
    padding: 0px;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0px;
  }

  .login-logo {
    margin-bottom: 32px;
    text-align: center;
  }
}
