/* =========================
   Tema / Variáveis — versão verde
========================= */
:root {
  --bg1: #0a1b14; /* fundo escuro com leve tom esverdeado */
  --bg2: #0f2b1f;
  --text: #e8f7ed;
  --muted: #a7cbb3;
  --input-bg: rgba(255,255,255,.08);
  --input-border: rgba(255,255,255,.28);
  --placeholder: rgba(255,255,255,.8);
  --primary: #16a34a; /* verde principal */
  --accent: #22c55e;  /* verde claro */
  --shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* =========================
   Fundo + centralização
========================= */
body.bg-login {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% 30%, rgba(34,197,94,.15), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(22,163,74,.15), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

/* =========================
   Card
========================= */
.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 26px 24px;
  animation: cardIn .45s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  font-size: 2.2rem;
  color: #a7f3d0; /* verde menta */
  margin-bottom: 8px;
  text-align: center;
}
.title {
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 2px;
}
.subtitle {
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  margin: 0 0 20px;
}

/* =========================
   Campos / labels
========================= */
.form-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.input-neo {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}
.input-neo::placeholder { color: var(--placeholder); }
.input-neo:focus {
  outline: 0;
  border-color: rgba(34,197,94,.7);
  box-shadow: 0 0 0 4px rgba(34,197,94,.25);
  transform: translateY(-1px);
}
.pr-eye { padding-right: 3rem; }

/* =========================
   “Olhinho” da senha
========================= */
.password-wrapper { position: relative; }
.password-wrapper .form-floating .form-control {
  padding-right: 3rem;
}
.toggle-password {
  position: absolute; top: 68%; right: 5px; transform: translateY(-50%);
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #eaecef; cursor: pointer; transition: all .2s ease;
}
.toggle-password:hover {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.55);
  color: #fff;
}
.toggle-password:active { transform: translateY(-50%) scale(.98); }

/* =========================
   Botão entrar
========================= */
.btn-login {
  margin-top: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .12s ease, filter .2s ease;
}
.btn-login:hover { filter: brightness(1.05); }
.btn-login:active { transform: translateY(1px); }

/* =========================
   Links / alerta
========================= */
.login-links, .legal {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.link { color: var(--text); text-decoration: none; }
.link:hover { text-decoration: underline; }
.dot { margin: 0 .5rem; opacity: .6; }

.custom-alert {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.45);
  color: #ffd9d9;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* =========================
   Responsivo
========================= */
@media (max-width:520px){
  .login-card { max-width:100%; padding:24px 20px; }
  .title { font-size:1.35rem; }
}
/* =========================
   Botões pequenos inferiores
========================= */
.login-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-mini {
  background: rgba(34,197,94,.1);
  color: #a7f3d0;
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-mini:hover {
  background: rgba(34,197,94,.25);
  color: #fff;
  border-color: rgba(34,197,94,.45);
  transform: translateY(-1px);
}
.btn-mini i {
  font-size: .95rem;
  opacity: .9;
}

/* =========================
   Divisor e área legal
========================= */
.divider {
  margin: 18px auto 12px;
  width: 60%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-legal {
  color: #a7cbb3;
  font-size: .85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease;
}
.btn-legal:hover {
  color: #22c55e;
  text-decoration: underline;
}
.btn-legal i {
  opacity: .7;
}
