/* ============================================================
   LOGIN — formulário à esquerda + painel de marca à direita
   Estilo flat (Reddit/YouTube): superfícies sólidas, sem glow
   neon nem vidro. Identidade azul do Horus. Tokens do global.css.
   ============================================================ */
:root {
  --accent: #5da8ff;
  --bg: #0e1117;
}

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: #edf4ff;
}

/* ── SHELL: duas colunas ── */
.login-shell {
  display: flex;
  min-height: 100vh;
}

/* ════════════════════════════════════════
   ESQUERDA — formulário
   ════════════════════════════════════════ */
.login-main {
  flex: 0 0 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}

.login-form {
  width: 100%;
  max-width: 340px;
}

.form-head { margin-bottom: 26px; }
.form-head h2 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.form-head p {
  color: #8da3bf;
  font-size: 14px;
}

/* labels */
label {
  display: block;
  margin-bottom: 4px;
  margin-top: 18px;
  font-size: 11px;
  color: #8da3bf;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* inputs estilo underline (limpo, sem caixa) */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a3850;
  transition: border-color .15s ease;
}
.input-wrap:focus-within { border-bottom-color: var(--accent); }

.input-wrap > i {
  color: #5a708f;
  font-size: 13px;
  width: 22px;
  flex-shrink: 0;
  transition: color .15s ease;
}
.input-wrap:focus-within > i { color: var(--accent); }

input {
  flex: 1;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0 4px;
  color: #edf4ff;
  font-size: 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
}
input::placeholder { color: #5a6b85; }

.eye-toggle {
  background: transparent; border: none; box-shadow: none;
  color: #5a708f; font-size: 15px;
  cursor: pointer; padding: 6px; line-height: 1; transition: color .15s;
}
.eye-toggle:hover,
.eye-toggle:focus,
.eye-toggle:active { background: transparent; box-shadow: none; color: var(--accent); }

/* linha de ação: botão entrar */
.form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 30px;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #08111f;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
button[type="submit"]:hover { filter: brightness(1.08); }
button[type="submit"]:active { transform: translateY(1px); }

/* erro */
.erro {
  margin-top: 20px;
  background: #2a1517;
  border: 1px solid #5a2a2e;
  color: #ff8c8c;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}

/* rodapé do form */
.footer {
  margin-top: 32px;
  color: #4a5e7a;
  font-size: 10px;
  letter-spacing: .04em;
}

/* ════════════════════════════════════════
   DIREITA — painel de marca
   ════════════════════════════════════════ */
.login-brand {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 48px;
  background: linear-gradient(155deg, #16345f 0%, #102744 48%, #0c1a30 100%);
  overflow: hidden;
}

/* hexágono decorativo sutil ao fundo (flat, baixa opacidade) */
.login-brand::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  transform: rotate(45deg);
  z-index: 0;
}
.login-brand > * { position: relative; z-index: 1; }

.brand-welcome {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}

.brand-logo { margin-bottom: 18px; }
.brand-logo-img {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

/* "Hornink Organization..." — easter egg konami: oculto até o código.
   Quando revelado, aparece acima do wordmark HORUS. */
.login-brand p {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition: opacity .6s ease, max-height .6s ease, margin-bottom .6s ease;
}
.login-brand p.revealed {
  opacity: 1;
  max-height: 40px;
  margin-bottom: 8px;
}

.login-brand h1 {
  font-family: 'Cinzel', serif;
  font-size: 66px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  color: #fff;
  margin-bottom: 16px;
}

.brand-tag {
  display: block;
  max-width: 320px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.brand-credits {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: 10.5px;
  letter-spacing: .05em;
  z-index: 1;
}

/* ── LOGO DA EMPRESA USUÁRIA (topo do formulário, acima de "Entrar no HORUS") ── */
.login-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  width: 100%;
}
.login-client-sep {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.10);
}
.login-client-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #fbfdff 0%, #e9eef6 100%);
  border: 1px solid rgba(93,168,255,.28);
  border-radius: 14px;
  padding: 13px 22px;
  box-shadow: 0 6px 18px rgba(8,15,30,.30), inset 0 1px 0 rgba(255,255,255,.7);
}
.login-client-logo {
  max-height: 48px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ════════════════════════════════════════
   RESPONSIVO — tela apertada cai no card enxuto (modelo antigo)
   Marca compacta (logo + HORUS) em cima e o formulário num card.
   ════════════════════════════════════════ */
@media (max-width: 820px) {
  .login-shell {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 20px;
  }

  /* painel de marca vira cabeçalho compacto — sem gradiente nem painel */
  .login-brand {
    flex: none;
    width: 100%;
    max-width: 380px;
    padding: 0;
    background: transparent;
    text-align: center;
  }
  .login-brand::before { display: none; }
  .brand-welcome { display: none; }
  .brand-tag { display: none; }
  .brand-credits { display: none; }
  .brand-logo { margin-bottom: 10px; }
  .brand-logo-img { width: 100px; filter: none; }
  .login-brand h1 { font-size: 36px; margin-bottom: 0; }

  /* formulário vira card */
  .login-main {
    flex: none;
    width: 100%;
    max-width: 380px;
    padding: 0;
  }
  .login-form {
    max-width: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
  }
  .form-head { text-align: center; }
  .form-head h2 { font-size: 22px; }
  .footer { text-align: center; }
}
