/* LogonInfo · Área Reservada — tela de login (tema dark, casado com o site) */
:root {
  --brand: #6f87f5;
  --brand-2: #4f6ce0;
  --body: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: #6f87f5;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --danger: #f87171;
  --ok: #34d399;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--body);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
/* fundo do próprio site, escurecido */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(111, 135, 245, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(79, 108, 224, 0.14), transparent 55%),
    url('/img/fundo_02_image.jpg') center / cover no-repeat;
  opacity: 0.5;
  filter: saturate(0.9);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.72), rgba(11, 15, 26, 0.92));
}

.card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: rgba(15, 20, 34, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.4rem 2.2rem 2rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.logo img { height: 34px; width: auto; }
.lock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(111, 135, 245, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sub {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

form { margin-top: 1.7rem; display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.inp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.inp:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(111, 135, 245, 0.28);
}
.inp i { color: var(--muted); font-size: 1.05rem; }
.inp input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.98rem;
}
.inp input::placeholder { color: #5b667a; }
.toggle {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.1rem;
  display: inline-flex;
}
.toggle:hover { color: var(--brand); }

/* captcha (exigido a partir da 3ª tentativa de senha inválida) */
.captcha[hidden] { display: none; } /* .field{display:flex} venceria o [hidden] do UA */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.captcha-row img {
  flex: 1;
  max-width: 220px;
  height: 70px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b1220;
}
.captcha-reload {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.captcha-reload:hover {
  color: var(--brand);
  border-color: var(--border-focus);
  transform: rotate(90deg);
}
.captcha input { font-family: var(--mono); letter-spacing: 0.25em; text-transform: uppercase; }

.erro {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--danger);
  font-size: 0.86rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.erro.show { display: flex; animation: shake 0.3s; }
@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn {
  margin-top: 0.3rem;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 14px 30px -14px rgba(111, 135, 245, 0.8);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.foot {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.foot a { color: var(--muted); text-decoration: none; transition: color 0.18s ease; }
.foot a:hover { color: var(--brand); }
.hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #5b667a;
}
