:root {
  --primary:    #1351b4;
  --primary-dk: #0d3d8e;
  --primary-lt: #e8f0fb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.login-page {
  width: 100%; display: flex; justify-content: center; align-items: center;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 40px 36px;
  max-width: 420px; width: 100%;
}

/* ── Header ── */
.login-header { text-align: center; margin-bottom: 28px; }

.logo-placeholder {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--primary-lt);
  border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.9rem; color: var(--primary);
}

.brand-name {
  font-size: 1.65rem; font-weight: 800;
  color: var(--primary); letter-spacing: .04em; margin-bottom: 4px;
}
.brand-sub  { font-size: .82rem; color: #64748b; margin-bottom: 2px; }
.brand-sub2 { font-size: .78rem; color: #94a3b8; font-weight: 500; }

/* ── Erro ── */
.erro-box {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #dc2626; border-radius: 8px;
  padding: 10px 14px; font-size: .83rem;
  margin-bottom: 16px; display: none;
}

/* ── Campos ── */
.field-group { position: relative; margin-bottom: 14px; }

.field-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8; font-size: .88rem; pointer-events: none;
}

.field-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: .9rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  color: #1e293b; background: #fff;
}
.field-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19,81,180,.12);
}
.field-input::placeholder { color: #94a3b8; }

/* ── Botão ── */
.btn-entrar {
  width: 100%; padding: 12px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  font-size: .92rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-entrar:hover:not(:disabled) { background: var(--primary-dk); transform: translateY(-1px); }
.btn-entrar:active  { transform: translateY(0); }
.btn-entrar:disabled { opacity: .65; cursor: not-allowed; }

/* ── Rodapé ── */
.login-footer {
  text-align: center; margin-top: 24px;
  font-size: .7rem; color: #94a3b8;
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
  .brand-name { font-size: 1.4rem; }
}
