@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #266546 0%, #38f9d7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Vídeo de fundo */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.25; /* Ligeiramente mais visível que a imagem anterior */
    pointer-events: none;
    /* Transições suaves para o loop */
    filter: blur(0px);
    transition: opacity 0.3s ease-in-out;
}

/* Fallback caso o vídeo não carregue */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background: url('/img/bd-login.jpg') no-repeat center center/cover;
    opacity: 0.1;
    pointer-events: none;
}
  
  /* Garante que o conteúdo fique acima do fundo */
.login-container, .login-form {
    position: relative;
    z-index: 1;
}

.login-container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  padding: 40px 32px 32px 32px;
  width: 75%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 24px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-left: 18px;
  padding-right: 18px;
}

.input-group {
  position: relative;
  width: 88%;
  min-width: 140px;
  max-width: 100%;
  margin: 1 auto;
}

.input-group svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #43e97b;
}

.login-input {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.login-input:focus {
  border: 1.5px solid #43e97b;
}

.login-btn {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #266546 0%, #38f9d7 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(67, 233, 123, 0.15);
}

.login-btn:hover {
  background: linear-gradient(90deg, #55f938 0%, #43e97b 100%);
  box-shadow: 0 4px 16px rgba(67, 233, 123, 0.18);
}

.usuario-group {
  margin-left: -80px;
}

@media (max-width: 500px) {
  .login-container {
    padding: 24px 8px;
    max-width: 95vw;
  }
  .login-title {
    font-size: 1.5rem;
  }
}