body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f1f1f1;
  font-size: 14px;
  color: #333;
}

/* Faixa colorida no topo */
.faixa-degrade {
  height: 4px;
  background: linear-gradient(to right, #00c3ff, #7f00ff, #ff00c8);
}

/* Topo */
.topo {
  background: #2b292f;
  color: white;
}

.container-topo {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* IMPORTANTE para alinhar tudo na esquerda */
  padding: 20px 0;
  gap: 20px;
}

/* Parte esquerda toda */
.lado-esquerdo {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Portal do cartão */
.portal-cartao {
  text-align: left;
}

.portal-cartao strong {
  font-size: 16px;
  font-weight: 700;
  display: block;
}

.portal-cartao small {
  font-size: 11px;
  color: #bbb;
  display: block;
  margin-top: 6px;
}

.linha-colorida {
  width: 120px;
  height: 4px;
  margin-top: 5px;
  background: linear-gradient(to right, #00c3ff, #7f00ff, #ff00c8);
  border-radius: 5px;
}

/* Divisor vertical */
.divisor-vertical {
  width: 1px;
  height: 40px;
  background-color: #aaa;
}

/* Logo + Texto */
.logo-credsystem {
  display: flex;
  align-items: center;
  gap: 10px; /* espaço entre logo e texto */
}

.logo-circulo {
  height: 36px;
}

.texto-credsystem {
  font-size: 24px;
  font-weight: bold;
  color: white;
  white-space: nowrap; /* NÃO QUEBRA o texto embaixo! */
}

/* Responsivo Mobile */
@media (max-width: 768px) {
  .container-topo {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lado-esquerdo {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .divisor-vertical {
    display: none;
  }

  .linha-colorida {
    width: 100px;
  }

  .texto-credsystem {
    font-size: 22px;
  }
}


/* Área de login */
.login-area {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.login-box {
  width: 90%;
  max-width: 1000px;
  display: flex;
}

/* Lados */
.login-left, .login-right {
  flex: 1;
  padding: 40px;
}

.login-left {
  border-right: 1px solid #ddd;
}

/* Títulos */
.login-left h4, .login-right h4 {
  font-size: 14px;
  color: #6200ee;
  margin-bottom: 5px;
  font-weight: 600;
}

.login-left h2, .login-right h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.2;
}

.login-left p, .login-right p {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px 5px;
  margin: 5px 0 25px 0;
  border: none;
  border-bottom: 1px solid #888;
  background: transparent;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

/* Campo senha com olho */
.input-senha-container {
  position: relative;
  width: 100%;
}

.input-senha-container input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  cursor: pointer;
}

/* Botões */
button.btn-login, button.btn-primeiro-acesso {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

/* Botão Login */
button.btn-login {
  background-color: #28255e;
  color: white;
  font-weight: 600;
}

button.btn-login:disabled {
  background-color: #d3d3d3;
  color: white;
  cursor: not-allowed;
}

button.btn-login:not(:disabled):hover {
  background-color: #3a3370;
}

/* Botão Primeiro Acesso */
button.btn-primeiro-acesso {
  background: transparent;
  border: 1px solid #6200ee;
  color: #6200ee;
  font-weight: 600;
}

button.btn-primeiro-acesso:hover {
  background-color: #f0f0f0;
}

/* Link esqueci minha senha */
a.forgot-password {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #6200ee;
  text-align: center;
  text-decoration: none;
}

/* Ambiente protegido */
.ambiente-protegido-wrapper {
  width: 100%;
  background: #f5f5f5;
  margin-top: 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.ambiente-protegido {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.ambiente-protegido img {
  width: 18px;
}

/* Rodapé */
.rodape {
  background: #f1f1f1;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 90%;
  margin: 0 auto;
}

.footer-grid h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

.footer-grid p {
  margin: 5px 0;
  color: #333;
  font-size: 14px;
}

.footer-grid a {
  text-decoration: none;
  color: #6200ee;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-grid img {
  width: 140px;
  margin: 10px 0;
}

/* Rodapé final */
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 40px;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
  .login-box {
    flex-direction: column;
    width: 90%;
    padding: 0;
  }

  .login-left, .login-right {
    border: none;
    padding: 20px;
  }

  .login-left {
    border-bottom: 1px solid #ddd;
  }

  .container-topo {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    gap: 10px;
  }

  .lado-esquerdo {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .divisor-vertical {
    display: none;
  }

  .linha-colorida {
    width: 100px;
  }

  .texto-credsystem {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid img {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
  }
}
