/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Roboto', sans-serif; }

/* ===== Background gradiente ===== */
.background-container{
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  z-index: -1;
}

/* ===== Layout ===== */
.login-wrapper{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.login-box{
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 24px 24px 40px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  position: relative;
}

/* ===== Branding ===== */
.logo-container{ display: flex; justify-content: center; margin-bottom: 10px; }
.logo-img{
  width: clamp(180px, 40vw, 280px);
  max-height: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.app-title{
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #143a7b;
  margin-bottom: 12px;
}

/* ===== Flash ===== */
.flash-container{ margin-bottom: 10px; }
.flash-message{
  font-size: .95rem;
  padding: .65rem .8rem;
  border-radius: 8px;
  margin-bottom: 8px;
}
.flash-message.error{
  background: #fde2e2; color:#7a1f1f; border:1px solid #ffb7b7;
}
.flash-message.success{
  background:#e6ffef; color:#1d6b3a; border:1px solid #b9f5cc;
}
.flash-message.warning{
  background:#fff7e6; color:#6a4c00; border:1px solid #ffe2a6;
}
.flash-message.info{
  background:#e6f0ff; color:#1f3b88; border:1px solid #bfd2ff;
}

/* ===== Form ===== */
.login-form label{
  display:block;
  margin-top: 12px;
  margin-bottom: 6px;
  color:#334155;
  font-weight: 500;
}

.login-form input{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.login-form input:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.btn-login{
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #1e3c72;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .1s ease, background .2s ease;
}

.btn-login:hover{ background:#18345f; }
.btn-login:active{ transform: translateY(1px); }

/* ===== Rodapé ===== */
.watermark{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  font-size: .8rem;
  color: rgba(0,0,0,.6);
}

/* ===== Responsivo ===== */
@media (max-width: 420px){
  .login-box{ padding: 18px 16px 36px; }
  .logo-img{ width: clamp(160px, 60vw, 240px); max-height: 64px; }
}
