/*
 * Layout padrão de autenticação (login / esqueci senha) usado em:
 * - sistema/login.php e sistema/index.php (administrativo)
 * - parceiros/padrao/login.php, divulgador.php, login-dependente.php (cliente/divulgador, modelo de todos os contratos)
 * - parceiros/1651527904 e parceiros/penielclube (cópias legadas que não usam o modelo padrao/)
 *
 * Cada página define as variáveis --cor1/--cor2/--cor3 (cores do contrato) num wrapper .authpage-wrap
 * antes de usar as classes abaixo, para manter a marca de cada cliente com o mesmo layout.
 */

.authpage-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--cor2, #2c3e50) 0%, var(--cor1, #1a252f) 100%);
  box-sizing: border-box;
}

.authpage-card {
  width: 100%;
  max-width: 900px;
  min-height: 480px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.authpage-brand {
  flex: 1 1 340px;
  background: linear-gradient(160deg, var(--cor2, #2c3e50) 0%, var(--cor3, #1a252f) 100%);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.authpage-brand img {
  max-width: 190px;
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 8px;
}

.authpage-brand h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.authpage-brand p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.authpage-brand ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.authpage-brand ul li {
  padding: 4px 0;
}

.authpage-brand ul li i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.authpage-form {
  flex: 1 1 360px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.authpage-form .authpage-form-logo {
  display: none;
  max-width: 150px;
  max-height: 70px;
  margin: 0 auto 20px;
}

.authpage-form h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.authpage-form .authpage-subtitle {
  color: #8a94a6;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.authpage-field {
  margin-bottom: 16px;
}

.authpage-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #55606e;
  margin-bottom: 6px;
  display: block;
}

.authpage-field .authpage-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.authpage-field .authpage-input-group i.icon-left {
  position: absolute;
  left: 14px;
  color: #a7b0bd;
  font-size: 0.95rem;
  pointer-events: none;
}

.authpage-field input.form-control {
  padding: 11px 14px 11px 40px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #dfe3e8;
  font-size: 0.95rem;
  background: #f8f9fb;
}

.authpage-field input.form-control:focus {
  border-color: var(--cor2, #2c3e50);
  box-shadow: 0 0 0 0.18rem rgba(var(--cor2rgb, 44, 62, 80), 0.18);
  background: #fff;
}

.authpage-field .toggle-senha {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #a7b0bd;
}

/* honeypot: campo isca, invisível para humanos mas presente no DOM para bots que preenchem tudo */
.authpage-honeypot {
  /* display:none (não apenas fora da tela) evita que gerenciadores de senha do navegador
     autopreencham este campo com o login salvo, o que faria o honeypot barrar usuários reais */
  display: none;
}

.authpage-naorobo {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  padding: 10px 14px;
  background: #f8f9fb;
  margin-bottom: 18px;
}

.authpage-naorobo input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.authpage-naorobo label {
  margin: 0;
  font-size: 0.88rem;
  color: #55606e;
  cursor: pointer;
  flex: 1;
}

.authpage-naorobo i {
  color: #8aa532;
  font-size: 1.2rem;
}

.authpage-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  background: var(--cor2, #2c3e50);
  transition: background .2s;
}

.authpage-btn:hover {
  background: var(--cor3, #1a252f);
  color: #fff;
}

.authpage-btn:disabled {
  opacity: 0.7;
}

.authpage-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
}

.authpage-links a {
  color: #55606e;
  text-decoration: none;
}

.authpage-links a:hover {
  color: var(--cor2, #2c3e50);
  text-decoration: underline;
}

.authpage-codigo-input {
  letter-spacing: 6px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 767px) {
  .authpage-brand {
    display: none;
  }

  .authpage-form .authpage-form-logo {
    display: block;
  }

  .authpage-form {
    padding: 36px 24px;
  }
}
