/* Tela de login no padrão O7 (/opt/marca-open7/PADRAO-LOGIN-O7.md).
 * Valores exatos do padrão; só ícone, nome, subtítulo e cor de destaque
 * (verde #0d9488 -> #10b981) são do CRM. Tema escuro sempre. */

* {
  box-sizing: border-box;
}

body.login {
  margin: 0;
  background: #0f1216;
  color: #e6e9ed;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.topo {
  margin-top: 80px;
  text-align: center;
}

.topo img {
  width: 84px;
  height: 84px;
}

.topo h1 {
  font-size: 30px;
  font-weight: 600;
  margin: 14px 0 8px;
}

.topo h1 b {
  color: #f38a33;
  font-weight: 700;
}

.sub {
  color: #9aa4b2;
  font-size: 16px;
  margin: 0 0 34px;
  white-space: nowrap;
}

.cx {
  width: 342px;
  max-width: calc(100vw - 32px);
  background: #171b21;
  border: 1px solid #262c35;
  border-radius: 16px;
  padding: 24px;
}

.cx label {
  display: block;
  text-align: left;
  color: #c9d1d9;
  font-size: 15px;
  margin: 0 0 8px;
}

.cx input {
  display: block;
  width: 100%;
  height: 42px;
  background: #0f1216;
  color: #e6e9ed;
  font: inherit;
  border: 1px solid #262c35;
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 18px;
  outline: none;
}

.cx input:focus {
  border: 2px solid #10b981;
  padding: 0 11px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.cx .erro {
  color: #f87171;
  font-size: 14px;
  margin: 0 0 18px;
}

.cx .erro[hidden] {
  display: none;
}

.cx button {
  display: block;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: linear-gradient(90deg, #0d9488, #10b981);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cx button:hover {
  background: linear-gradient(90deg, #0d9488, #10b981);
  filter: brightness(1.06);
}

/* Rodapé da casa no pé da página, no fluxo (não sobrepõe em tela baixa). */
body.login .rodape-open7 {
  margin-top: auto;
}

@media (max-height: 640px) {
  .topo {
    margin-top: 24px;
  }
}
