/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: url('../assets/images/login-image.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

/* Overlay escuro sobre a imagem */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Container do formulário */
.login-container {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* Título */
.login-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
}

/* Mensagem de erro */
.error {
  background-color: rgba(255, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}

/* Labels */
form label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

/* Inputs */
form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px; /* >=16px para evitar zoom automático no mobile */
  background-color: rgba(255, 255, 255, 0.9);
}

/* Botão */
button {
  width: 100%;
  padding: 14px;
  background-color: #348b81;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px; /* >=16px para evitar zoom automático */
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #287269;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
  .login-container {
    width: 95%;
    padding: 50px 25px;
  }

  .login-container h2 {
    font-size: 24px;
  }

  form label,
  form input,
  button {
    font-size: 16px;
  }
}
