/* Estilo da tela de login (spec 004). Externo (style-src 'self'), sem inline, sem
   fonte remota. Mobile-first: no celular so o formulario; em >= 700px, split com a
   imagem de marketing a ESQUERDA. Paleta ancorada no azul Promedico, igual a
   ativacao.css/telas.css. Claro/escuro por prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --fundo: #f1f5fa;
  --cartao: #ffffff;
  --texto: #1a2b3c;
  --acento: #1256a0;
  --acento-texto: #ffffff;
  --campo-borda: #cfd9e6;
  --campo-fundo: #f5f8fc;
  --erro: #c0322b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0f1a28;
    --cartao: #172433;
    --texto: #e7edf4;
    --campo-borda: #33465a;
    --campo-fundo: #101a27;
    --erro: #f2837b;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

/* coluna unica no celular; a imagem de marketing fica escondida */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--fundo);
}

.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.4rem;
  background: var(--fundo);
}
.cartao {
  width: 100%;
  max-width: 25rem;
}
.marca {
  text-align: center;
  margin-bottom: 1.5rem;
}
.marca-logo {
  display: block;
  width: 200px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 1.1rem;
}
.marca h1 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}
.marca p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.7;
}

form.login {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.campo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.campo label {
  font-size: 0.83rem;
  font-weight: 600;
}
.campo .dica {
  font-size: 0.72rem;
  opacity: 0.6;
}
.inp {
  width: 100%;
  padding: 0.72rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--texto);
  background: var(--campo-fundo);
  border: 1px solid var(--campo-borda);
  border-radius: 10px;
}
.inp::placeholder {
  color: var(--texto);
  opacity: 0.38;
}
.inp:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 1px;
  border-color: var(--acento);
}

.senha-wrap {
  position: relative;
  display: flex;
}
.senha-wrap .inp {
  padding-right: 4.6rem;
}
.toggle-senha {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--acento);
  padding: 6px 8px;
  border-radius: 8px;
}

#entrar {
  display: inline-block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--acento-texto);
  background: var(--acento);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.erro-login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--erro);
  background: color-mix(in srgb, var(--erro) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--erro) 35%, transparent);
  border-radius: 9px;
  padding: 9px 11px;
}
.esqueci-nota {
  text-align: center;
  font-size: 0.84rem;
  opacity: 0.75;
  margin: 1rem 0 0;
}
.nota-phishing {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 0.6;
}

/* painel de marketing — some no celular, aparece em >= 700px (a ESQUERDA) */
.auth-mkt {
  display: none;
}
@media (min-width: 700px) {
  .auth {
    grid-template-columns: 1fr 1fr;
  }
  .auth-form {
    padding: 2.5rem 2rem;
  }
  .auth-mkt {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 2.6rem 2.3rem;
    color: #eaf3ff;
    overflow: hidden;
    background: linear-gradient(135deg, #1256a0 0%, #1e78d0 55%, #0a3d6b 100%);
  }
}
.auth-mkt::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  top: -90px;
  right: -70px;
}
.auth-mkt::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  bottom: -80px;
  left: -60px;
}
.mkt-brand {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  opacity: 0.92;
}
.mkt-main {
  position: relative;
}
.auth-mkt h2 {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.mkt-main p {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 34ch;
}
.mkt-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mkt-bullets li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  opacity: 0.96;
}
.mkt-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #a9d3ff;
}
.mkt-note {
  position: relative;
  font-size: 0.74rem;
  opacity: 0.62;
}
