/* Tela de login do VK Monitor — mesmas cores do painel (static/style.css) */
:root {
  --bg: #16140f;
  --surface: #1f1c15;
  --surface-2: #27231a;
  --line: #322d22;
  --gold: #caa45c;
  --gold-lt: #e3c789;
  --gold-dark: #9c7c39;
  --texto: #ece7db;
  --texto-sub: #b0a892;
  --texto-fraco: #857d6d;
  --vermelho: #e58179;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --raio-sm: 9px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.tela { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

/* ---------- foto da fachada ---------- */
.foto { position: relative; overflow: hidden; background: #0e0d0a; }
.foto img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
  filter: saturate(0.92) brightness(0.88);
}
.foto::after {          /* funde a foto no painel escuro da direita */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 20, 15, 0) 55%, rgba(22, 20, 15, 0.85) 92%, var(--bg) 100%),
    linear-gradient(0deg, rgba(14, 13, 10, 0.7) 0%, rgba(14, 13, 10, 0) 35%);
}
.foto-legenda {
  position: absolute; left: 44px; bottom: 40px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  color: var(--gold-lt); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
}
.foto-linha { width: 36px; height: 1px; background: var(--gold); }

/* ---------- formulário ---------- */
.lado-form { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.caixa { width: 100%; max-width: 380px; }
.logo { width: 280px; max-width: 100%; display: block; margin-bottom: 40px; }

.rotulo-topo {
  color: var(--gold); font-size: 11.5px; letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
h1 { font-size: 26px; font-weight: 600; line-height: 1.2; color: #fff; }
.sub { color: var(--texto-sub); font-size: 14px; margin: 6px 0 28px; }
.sub strong { color: var(--texto); font-weight: 600; }

.passo { display: flex; flex-direction: column; }
.passo[hidden] { display: none; }

label { font-size: 13px; color: var(--texto-sub); margin-bottom: 6px; font-weight: 500; }
input:not([type="checkbox"]) {
  width: 100%; height: 46px; padding: 0 14px; margin-bottom: 16px;
  background: var(--surface); color: var(--texto);
  border: 1px solid var(--line); border-radius: var(--raio-sm);
  font: inherit; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:not([type="checkbox"]):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202, 164, 92, 0.18); }
input:-webkit-autofill { -webkit-text-fill-color: var(--texto); -webkit-box-shadow: 0 0 0 40px var(--surface) inset; }

.campo-senha { position: relative; }
.campo-senha input { padding-right: 84px; }
.mostrar {
  position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px;
  background: none; border: 0; border-radius: 7px; cursor: pointer;
  color: var(--texto-fraco); font: inherit; font-size: 13px;
}
.mostrar:hover, .mostrar:focus-visible { color: var(--gold-lt); background: var(--surface-2); outline: none; }

.codigo { font-size: 24px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }

.lembrar {
  display: flex; align-items: center; gap: 9px; margin: 2px 0 18px;
  color: var(--texto-sub); font-size: 13.5px; cursor: pointer; user-select: none;
}
.lembrar input { width: 16px; height: 16px; accent-color: var(--gold); }

.erro { color: var(--vermelho); font-size: 13.5px; min-height: 0; }
.erro:not(:empty) { margin: -4px 0 14px; }

.btn {
  height: 48px; border: 0; border-radius: var(--raio-sm); cursor: pointer;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 55%, var(--gold-dark));
  color: #1a160d; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }
.btn[disabled] { filter: grayscale(.4) brightness(.8); cursor: progress; }

.link {
  margin-top: 16px; align-self: center; background: none; border: 0; cursor: pointer;
  color: var(--texto-sub); font: inherit; font-size: 13.5px; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
}
.link:hover { color: var(--gold-lt); }

.credito { margin-top: 40px; color: var(--texto-fraco); font-size: 12px; letter-spacing: .5px; }

/* ---------- telas estreitas: foto vira faixa no topo ---------- */
@media (max-width: 860px) {
  .tela { grid-template-columns: 1fr; grid-template-rows: 210px auto; }
  .foto img { object-position: 60% 40%; }
  .foto::after { background: linear-gradient(180deg, rgba(22, 20, 15, 0) 40%, var(--bg) 100%); }
  .foto-legenda { display: none; }
  .lado-form { padding: 8px 16px 40px; align-items: flex-start; }
  .logo { width: 230px; margin-bottom: 28px; }
}
