/* Login EyeForest — split-screen fiel ao protótipo (port de apps/prototype/src/app/login/page.module.css).
 * Marca: preto #1a1a1a + amarelo #f6c110 (texto sobre amarelo = SEMPRE preto), âmbar #8a5a06 para
 * links/badge, painel claro #f4f5f7. Sem PatternFly (parent=base): todo o CSS é deste arquivo. */

/* ── Fonte da marca (Saira Semi Condensed, latin, self-hosted no tema) ── */
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/saira-semicondensed-400.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/saira-semicondensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/saira-semicondensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/saira-semicondensed-800.woff2") format("woff2");
}

:root {
  --ef-yellow: #f6c110;
  --ef-yellow-hover: #e3b00d;
  --ef-dark: #1a1a1a;
  --ef-amber: #8a5a06;
  --ef-ink: #111827;
  --ef-light: #f4f5f7;
  --ef-error: #b42318;
  --ef-font: "Saira Semi Condensed", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html.ef-html,
.ef-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--ef-font);
}

/* ═══ Split ═══ */
.ef-page {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ═══ Painel de marca (escuro) ═══ */
.ef-brand {
  background: var(--ef-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  position: relative;
  border-right: 3px solid var(--ef-yellow);
}

.ef-logo {
  height: 170px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  flex: none;
  object-fit: contain;
}

.ef-rule {
  width: 64px;
  height: 4px;
  background: var(--ef-yellow);
  border-radius: 2px;
  margin: 30px 0 26px;
}

.ef-title {
  margin: 0;
  font-size: 29px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 15ch;
}

.ef-title span {
  color: var(--ef-yellow);
}

.ef-sub {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 42ch;
}

.ef-systems {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  width: 100%;
  max-width: 430px;
}

.ef-systems img {
  height: 18px;
  width: auto;
  opacity: 0.92;
}

.ef-brandfoot {
  position: absolute;
  left: 52px;
  bottom: 36px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.ef-brandfoot b {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ═══ Painel do formulário (claro) ═══ */
.ef-formside {
  background: var(--ef-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.ef-formcard {
  width: min(420px, 100%);
}

.ef-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ef-amber);
}

#kc-page-title {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ef-ink);
}

#kc-form,
#kc-content {
  margin-top: 20px;
}

/* Campos (form do base: .ef-field agrupa label+input) */
.ef-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.ef-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ef-ink);
}

.ef-input {
  height: 44px;
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 9px;
  background: #fff;
  font-size: 14.5px;
  font-family: var(--ef-font);
  color: var(--ef-ink);
  padding: 0 12px;
}

.ef-input::placeholder {
  color: #9aa2ae;
}

/* Foco ÚNICO (âmbar) — sem sistema de foco concorrente (não há PatternFly aqui). */
.ef-input:focus,
.ef-input:focus-visible {
  border-color: var(--ef-amber);
  box-shadow: 0 0 0 3px rgba(138, 90, 6, 0.12);
  outline: none;
}

/* Wrapper do campo de senha: o olhinho fica DENTRO do campo (como no protótipo). */
.ef-inputwrap {
  position: relative;
}

.ef-inputwrap .ef-input {
  padding-right: 42px;
}

.ef-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #5b616e;
  cursor: pointer;
  border-radius: 7px;
  padding: 0;
}

.ef-eye:hover {
  color: var(--ef-ink);
  background: rgba(16, 24, 40, 0.05);
}

/* Ícones do olhinho: SVG embutido via mask (sem FontAwesome). O passwordVisibility.js do base troca
 * as classes ef-eye-show/ef-eye-hide no <i>. */
.ef-eye i {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
}

.ef-eye-show {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>') center / contain no-repeat;
}

.ef-eye-hide {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/></svg>') center / contain no-repeat;
}

/* Linha de opções (lembrar / esqueci a senha) */
.ef-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ef-setting .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ef-ink);
}

input[type="checkbox"] {
  accent-color: var(--ef-yellow);
}

.ef-options a,
#kc-form-options a,
#kc-info a,
#try-another-way,
a {
  color: var(--ef-amber);
  text-decoration: none;
  font-size: 13.5px;
}

a:hover {
  color: #6e4805;
  text-decoration: underline;
}

/* Botão primário (Entrar) */
.ef-btn-primary {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  background: var(--ef-yellow);
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ef-font);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s;
}

.ef-btn-primary:hover {
  background: var(--ef-yellow-hover);
}

.ef-btn-default {
  width: 100%;
  height: 44px;
  background: #fff;
  color: var(--ef-ink);
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 9px;
  font-family: var(--ef-font);
  cursor: pointer;
}

/* Alertas (erro de login etc.) e erro por campo */
.ef-alert {
  border: 1px solid rgba(180, 35, 24, 0.4);
  background: rgba(180, 35, 24, 0.08);
  color: var(--ef-error);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.ef-alert-success {
  border-color: rgba(21, 128, 61, 0.4);
  background: rgba(21, 128, 61, 0.08);
  color: #15803d;
}

.ef-alert-info,
.ef-alert-warning {
  border-color: rgba(138, 90, 6, 0.4);
  background: rgba(138, 90, 6, 0.08);
  color: var(--ef-amber);
}

.ef-input-error {
  color: var(--ef-error);
  font-size: 12.5px;
}

/* Rodapé do card */
.ef-formfoot {
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ef-ink);
  text-align: center;
}

/* Textos auxiliares dos fluxos do base (reset/info) herdam o ink */
#kc-content,
#kc-info-wrapper {
  color: var(--ef-ink);
  font-size: 14px;
}

/* ═══ Mobile: empilha ═══ */
@media (max-width: 880px) {
  .ef-page {
    grid-template-columns: 1fr;
  }

  .ef-brand {
    padding: 44px 32px;
    border-right: none;
    border-bottom: 3px solid var(--ef-yellow);
  }

  .ef-logo {
    height: 120px;
  }

  .ef-title {
    font-size: 24px;
  }

  .ef-brandfoot {
    position: static;
    margin-top: 28px;
  }
}
