/* RESET & BACKGROUND ------------------------------------- */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../img/bg_pec.png') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.9;
  z-index: -1;
}

/* LAYOUT PRINCIPAL --------------------------------------- */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  width: 100%;
  max-width: clamp(300px, 90%, 500px);
  padding: clamp(20px, 5vw, 40px);
  margin: 0 auto;
}

/* CARD TRANSPARENTE -------------------------------------- */
.login-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: clamp(20px, 5vw, 40px);
  text-align: center;
}

/* LOGO & TÍTULO ------------------------------------------ */
.logo {
  /* antes: clamp(120px, 25vw, 200px) */
  width: clamp(250px, 30vw, 350px);
  margin-bottom: clamp(20px, 4vw, 40px);
}

h3 {
  /* opcional: deixa o título em sintonia com o logo */
  font-size: clamp(1rem, 5vw, 2rem);
  margin-bottom: clamp(15px, 3vw, 25px);
}


/* FORMULÁRIO --------------------------------------------- */
.form-group {
  position: relative;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.fa-id-card, .fa-key {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-control::placeholder {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #888;
}

/* BOTÃO “Entrar” ----------------------------------------- */
.login-card .form-group > button {
  width: 100%;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  background: #3789BC;
  color: white;
  border: none;
  border-radius: 6px;
  /* padding: vertical reduzido, horizontal zero (width:100% cobre a largura) */
  padding: clamp(0.5rem, 1vw, 0.75rem) 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.1s;
}

.login-card .form-group > button:hover {
  background: #2f76a3;
}

.login-card .form-group > button:active {
  transform: scale(0.98);
}


/* FOOTER ------------------------------------------------- */
footer {
  padding: 8px 16px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #333;
}

.logo-footer {
  height: 36px;
  object-fit: contain;
}

/* RESPONSIVIDADE ----------------------------------------- */
@media (max-width: 576px) {

  .login-card {
    padding: 20px;
  }
  h2 {
    font-size: 1.5rem;
  }
  .form-control {
    font-size: 0.9rem;
  }
  .oauth-button {
    padding: 0.75rem;
  }
}