/* Tela de acesso no mesmo visual do Criativa Painel: metade preta com a marca, metade marfim com o formulário. */
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-300-italic-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --preto: #0b0b0a;
  --marfim: #e9e9e9;
  --areia: #d0bdad;
  --cinza-claro: #b4b0a9;
  --cinza: #948f87;
  --cinza-texto: #55524d;
  --cinza-icone: #6b6863;
  --borda: #c5c2bc;
  --foco: #67869b;
  --erro-fundo: #ffedea;
  --erro-texto: #831c1e;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Jost", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--marfim);
  color: var(--preto);
  -webkit-font-smoothing: antialiased;
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ---- metade da marca ---- */
.auth-marca {
  position: relative;
  overflow: hidden;
  background: var(--preto);
  color: var(--marfim);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
}

.auth-logo { width: 168px; height: auto; align-self: flex-start; position: relative; }

.auth-simbolo {
  position: absolute;
  right: -96px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  max-width: none;
  opacity: 0.06;
  pointer-events: none;
}

.auth-frase { position: relative; max-width: 28rem; }

.auth-rotulo {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--areia);
}

.auth-titulo { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 400; }

.serif { font-family: "Merriweather", Georgia, serif; font-style: italic; font-weight: 300; color: var(--areia); }

.auth-texto { margin: 24px 0 0; max-width: 24rem; font-size: 15px; line-height: 1.6; color: var(--cinza-claro); }

.auth-rodape-marca { position: relative; margin: 0; font-size: 12px; color: var(--cinza); }

/* ---- metade do formulário ---- */
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

.auth-caixa { width: 100%; max-width: 380px; }

h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 500; }

.auth-sub { margin: 8px 0 32px; font-size: 15px; color: var(--cinza-texto); }

label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; }

input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 6px;
  background: #fff;
  color: var(--preto);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus { border-color: var(--foco); box-shadow: 0 0 0 3px rgba(103, 134, 155, 0.25); }
input:disabled { opacity: 0.6; }

.campo-senha { position: relative; }
.campo-senha input { padding-right: 44px; }

.ver-senha {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--cinza-icone);
  cursor: pointer;
}
.ver-senha:hover { color: var(--preto); }
.ver-senha .olho-fechado { display: none; }
.ver-senha.ativo .olho { display: none; }
.ver-senha.ativo .olho-fechado { display: block; }

.auth-erro,
.auth-info {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.auth-erro { background: var(--erro-fundo); color: var(--erro-texto); }
.auth-info { background: #e6eef3; color: #2f4a5c; }

.auth-botao {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--preto);
  color: var(--marfim);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-botao:hover { background: #2c2b28; }
.auth-botao:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-rodape { margin: 40px 0 0; font-size: 12px; color: var(--cinza-icone); }

/* ---- celular: só uma faixa preta curta com o logo ---- */
@media (max-width: 767px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-marca { padding: 24px; }
  .auth-logo { width: 132px; }
  .auth-simbolo, .auth-frase, .auth-rodape-marca { display: none; }
  .auth-form { align-items: flex-start; padding: 40px 20px; }
}
