/* ══════════════════════════════
   HEADER (login tem nav)
══════════════════════════════ */
.header-logos { display: flex; align-items: center; gap: 1.2rem; }
.header-sep   { color: rgba(255,255,255,.4); font-size: 1.5rem; }
header nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: .9rem;
  transition: color .2s;
}
header nav a:hover { color: #fff; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  background: linear-gradient(160deg, var(--verde) 0%, var(--azul) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem 5rem;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .6rem; }
.hero p  { font-size: 1.05rem; opacity: .88; max-width: 560px; margin: 0 auto; }

/* ══════════════════════════════
   LAYOUT PRINCIPAL
══════════════════════════════ */
.main-grid {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: -2.5rem auto 2.5rem;
  padding: 0 1.5rem;
}
.main-grid .card { width: 100%; max-width: 480px; }

/* ══════════════════════════════
   FORMULÁRIO DE LOGIN
══════════════════════════════ */
.login-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: .3rem;
  margin-top: 1rem;
}
.login-form label:first-child { margin-top: 0; }
.login-form input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #d0d7e2;
  border-radius: 8px;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.login-form input:focus {
  border-color: var(--verde-claro);
  box-shadow: 0 0 0 3px rgba(46,158,91,.15);
}
.cpf-hint { font-size: .75rem; color: #888; margin-top: .25rem; }

.btn-login {
  width: 100%;
  margin-top: 1.4rem;
  padding: .85rem;
  background: linear-gradient(90deg, var(--verde), var(--verde-claro));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn-login:hover  { opacity: .9; }
.btn-login:active { transform: scale(.98); }

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: .8rem;
}
.login-links a { color: var(--azul-claro); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

.login-msg {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  display: none;
}
.login-msg.erro    { background: #fde8e8; color: #b91c1c; border: 1px solid #fca5a5; }
.login-msg.sucesso { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ══════════════════════════════
   BOAS PRÁTICAS (layout login)
══════════════════════════════ */
.bp-section {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.bp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--branco);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.bp-header-icon { font-size: 2rem; }
.bp-header-text h2 { font-size: 1.2rem; color: var(--azul); margin-bottom: .2rem; }
.bp-header-text p  { font-size: .85rem; color: #666; }

.bp-tabs { margin-bottom: 1.2rem; }

.bp-content {
  background: var(--branco);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 1.5rem;
}

/* ══════════════════════════════
   MODAL (login: centralizado)
══════════════════════════════ */
.modal-box { text-align: center; max-width: 380px; }
.modal-box .m-icon { font-size: 3rem; margin-bottom: .8rem; }
.modal-box h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--verde); }
.modal-box p  { font-size: .9rem; color: #555; margin-bottom: 1.2rem; }