@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   Telas de autenticação — visual moderno (Portal Renascer)
   Paleta: preto / cinza chumbo (charcoal) com degradê.
   Compartilhado por: login, forgot, forgot-reset, forgot-sent,
   forgot-reset-success, uncaonacionallogin.
   ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: #15171b;
  background: linear-gradient(135deg, #0e0f12 0%, #1f2228 55%, #34373d 100%);
  position: relative; overflow: hidden;
}
body::before, body::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35; pointer-events: none;
}
body::before { width: 420px; height: 420px; background: #4a4e57; top: -130px; left: -120px; }
body::after  { width: 380px; height: 380px; background: #2c3038; bottom: -120px; right: -100px; }

.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 410px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  overflow: hidden;
  animation: rise .5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.card-head {
  background: linear-gradient(135deg, #16181d, #2a2e35);
  padding: 34px 30px 26px; text-align: center;
  border-bottom: 3px solid #f5a623;   /* faixa de destaque (amarelo-laranja) */
}
.card-head img { max-width: 175px; height: auto; }

.card-body { padding: 30px 30px 26px; }
.login-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #1f2329; }
.login-sub   { margin: 0 0 22px; font-size: 13.5px; color: #8a909c; line-height: 1.5; }

.alert {
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px;
  margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4;
}
.alert i { margin-top: 1px; }
.alert-err  { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.alert-warn { background: #fff8e6; color: #a07d00; border: 1px solid #ffe3a3; }

.field { position: relative; margin-bottom: 15px; }
.field > i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: #a6acb8; font-size: 15px;
}
.field input {
  width: 100%; height: 50px; padding: 0 44px;
  border: 1.6px solid #e3e6ec; border-radius: 12px;
  font-size: 14.5px; color: #2c3038; background: #f6f7f9;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder { color: #a6acb8; }
.field input:focus {
  outline: none; border-color: #f5a623; background: #fff;
  box-shadow: 0 0 0 4px rgba(245,166,35,.18);
}
.field:focus-within > i { color: #f5a623; }
.field .toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #a6acb8; cursor: pointer; padding: 8px; font-size: 15px;
}
.field .toggle:hover { color: #2c3038; }

.login-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 18px; }
.remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #5a606b; cursor: pointer; user-select: none; }
.remember input { width: 16px; height: 16px; accent-color: #f5a623; cursor: pointer; margin: 0; }
.forgot { color: #3a3f47; font-size: 13px; text-decoration: none; }
.forgot:hover { text-decoration: underline; }

.btn-login {
  width: 100%; height: 50px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #fff; letter-spacing: .3px;
  background: linear-gradient(135deg, #3a3f47 0%, #15171b 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .2s, filter .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-login:hover  { transform: translateY(-2px); filter: brightness(1.18); box-shadow: 0 12px 28px rgba(0,0,0,.4); color: #fff; }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

.login-foot { text-align: center; margin-top: 22px; font-size: 12px; color: #a6acb8; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #3a3f47; font-size: 13.5px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Força da senha (forgot-reset) — cores semânticas mantidas */
.strength-bar { height: 6px; border-radius: 3px; background: #eceef2; margin: -6px 0 12px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 3px; transition: width .3s, background .3s; }
.strength-rules { list-style: none; padding: 0; margin: 0 0 16px; font-size: 12.5px; color: #8a909c; }
.strength-rules li { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.strength-rules li::before { content: "\f111"; font-family: FontAwesome; font-size: 7px; color: #cfd3da; }
.strength-rules li.ok { color: #27ae60; }
.strength-rules li.ok::before { content: "\f00c"; font-size: 11px; color: #27ae60; }

/* Estado de sucesso (forgot-sent / forgot-reset-success) */
.success-icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 4px auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  box-shadow: 0 10px 24px rgba(39,174,96,.35);
}
.success-title { font-size: 20px; font-weight: 700; color: #1f2329; margin: 0 0 6px; }
.success-text  { font-size: 14px; color: #7a818c; line-height: 1.55; margin: 0 0 6px; }

@media (max-width: 480px) {
  .card-body { padding: 24px 22px; }
  .card-head { padding: 28px 22px 22px; }
}
