/* =====================================================
   FRETE+PRO - AUTENTICAÇÃO 3.8.7
   Visual alinhado à identidade Feno Visual
===================================================== */

.auth-frete-mais {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(207,190,141,.18), transparent 36%),
    linear-gradient(135deg, #f7f5ef 0%, #eeece5 100%);
  color: #243127;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 410px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #ddd9ce;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(45, 53, 42, .12);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-logo-icone {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f2eb;
  border: 1px solid #ddd9ce;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(45,53,42,.08);
  overflow: hidden;
}

.auth-logo-img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.auth-logo > div:last-child {
  min-width: 0;
}

.auth-logo h1 {
  margin: 0;
  color: #263126;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}

.auth-logo p {
  margin: 5px 0 0;
  color: #7a806f;
  font-size: 12.5px;
  line-height: 1.35;
}

.auth-titulo {
  margin-bottom: 24px;
}

.auth-titulo h2 {
  margin: 0 0 7px;
  color: #263126;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.auth-titulo p {
  margin: 0;
  color: #717869;
  font-size: 13.5px;
  line-height: 1.45;
}

.auth-campo {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}

.auth-campo label {
  color: #3d4839;
  font-size: 13px;
  font-weight: 700;
}

.auth-campo input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid #d8d4c8;
  border-radius: 10px;
  background: #fffefb;
  color: #1f2a20;
  font-size: 14px;
  line-height: 1;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-campo input::placeholder {
  color: #9b9f94;
  opacity: 1;
}

.auth-campo input:hover {
  border-color: #bcb7a9;
  background: #ffffff;
}

.auth-campo input:focus {
  outline: none;
  border-color: #6b8052;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(107,128,82,.13);
}

.auth-btn-entrar {
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
  border: 1px solid #53673f;
  border-radius: 10px;
  background: #5f7348;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-btn-entrar:hover {
  background: #52663d;
  box-shadow: 0 8px 18px rgba(82,102,61,.18);
}

.auth-btn-entrar:active {
  transform: translateY(1px);
}

.auth-btn-entrar:disabled {
  opacity: .62;
  cursor: wait;
  box-shadow: none;
}

.auth-resultado {
  min-height: 20px;
  margin-top: 13px;
  color: #a43a32;
  font-size: 13px;
  text-align: center;
}

.auth-mensagem {
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 13px;
}

.auth-mensagem-erro {
  background: #fff1ef;
  color: #9f302b;
  border: 1px solid #efc6c2;
}

.auth-btn-logout {
  width: 100%;
  min-height: 43px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #5b6456;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn-logout:hover {
  background: #f1efe8;
  color: #36412f;
}

/* botão de mostrar/ocultar senha, caso seja criado pelo JS */
.auth-campo .senha-wrapper,
.auth-campo .campo-senha,
.auth-campo .password-wrapper {
  position: relative;
  width: 100%;
}

.auth-campo .senha-wrapper input,
.auth-campo .campo-senha input,
.auth-campo .password-wrapper input {
  padding-right: 46px;
}

.auth-campo button[type="button"],
.auth-campo .toggle-senha,
.auth-campo .btn-senha {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6c7468;
  cursor: pointer;
}

.auth-campo button[type="button"]:hover,
.auth-campo .toggle-senha:hover,
.auth-campo .btn-senha:hover {
  background: #f3f1ea;
  color: #405038;
}

@media (max-width: 560px) {
  .auth-frete-mais {
    align-items: flex-start;
    padding: 18px;
    overflow-y: auto;
  }

  .auth-card {
    margin-top: 7vh;
    max-width: none;
    padding: 26px 22px;
    border-radius: 16px;
  }

  .auth-logo {
    margin-bottom: 24px;
  }

  .auth-logo h1 {
    font-size: 20px;
  }
}


/* 3.8.9 - campo de senha alinhado e botão de visualização */
.auth-campo .senha-campo-wrap {
  position: relative;
  width: 100%;
}

.auth-campo .senha-campo-wrap input {
  padding-right: 50px;
}

.auth-campo .senha-campo-wrap .senha-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #566253;
  cursor: pointer;
}

.auth-campo .senha-campo-wrap .senha-toggle:hover {
  background: #f0eee6;
  color: #34412f;
}

.auth-campo .senha-campo-wrap .senha-toggle:focus-visible {
  outline: 2px solid #6b8052;
  outline-offset: 2px;
}

.senha-icone {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
