@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, #0a1628 0%, #06101e 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: #000e1f;
  border: 1px solid rgba(26, 140, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  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: #ffffff;
  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: #1a8cff;
}

.login-input {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-input:focus {
  border: 1.5px solid #1a8cff;
}

.login-btn {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #1a8cff 0%, #00d4ff 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(26, 140, 255, 0.25);
}

.login-btn:hover {
  background: linear-gradient(90deg, #0066cc 0%, #00aaff 100%);
  box-shadow: 0 4px 16px rgba(26, 140, 255, 0.35);
}

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

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