@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');



* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

@keyframes slideDownUp {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    transform: translateY(0);
    opacity: 1;
  }
  90% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

div#senha_incorreta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  background-color: #aa0404;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  animation: slideDownUp 3s ease-in-out forwards;
}

div#usuario_no {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  background-color: #b2be03;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  animation: slideDownUp 3s ease-in-out forwards;
}


body {
    background: black url(../img/bg-01.jpg) no-repeat fixed;
    background-size: cover;
    width: 100vw;
    height: 100vh;


    display: grid;
    align-content: center;
    justify-content: center;


}

div#img {
    display: none;
}
main {
    width: 400PX;
    height: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.438);
}


section > h1 {
    padding-top: 40px;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.295);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5em;
    
}

form {
    margin-top: 100px;
    margin-left: 50px;
}

form > label {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    color: #333333;


}

.input-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #9c9c9c;
  width: 80%;
  margin-bottom: 20px;
  padding: 7px 0px;
}

.input-group i {
  margin-right: 10px;
  color: #666;
  font-size: 18px;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  height: 40px;
  background: transparent;

}


/* Quando o input está focado, o pai .input-group recebe estilo com :has() */
.input-group:has(input:focus) {
  border-bottom-color: #999999; /* azul claro no foco */
  transition: border-bottom-color 1s;
}

.input-group:has(input:focus) i {
    color: #0050fc;
    transition: color 1s;
}

input[type=submit] {
    width: 80%;
    height: 40px;
    border-radius: 20px;
    border: none;
    font-family: "Roboto";
    margin-top: 80px;
    cursor: pointer;

    background: linear-gradient(270deg, rgba(255, 166, 0, 0.658), rgba(255, 255, 0, 0.719), rgba(255, 0, 0, 0.623));
    background-size: 400% 400%; /* maior para animar */
    color: #000000;
    font-weight: bold;
    transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Efeito ao passar o mouse */
input[type=submit]:hover {
    background-position: right center; /* move o gradiente */
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 12px rgba(255, 166, 0, 0.6);
    transform: translateY(-2px); /* eleva o botão levemente */
}

@media screen and (min-width: 768px) {
    main {
        width: 85vw;
        max-width: 1000px;
        display: flex;
        flex-flow: row nowrap;
    }

    div#img {
        background: black url(../img/background1.jpg) no-repeat fixed;
        background-size: cover;
        display: flex;
        width: 50%;
        border-radius: 10px 0px 0px 10px;

    }

    #img {
        perspective: 800px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #img img {
        object-fit: cover;
        transition: transform 0.1s ease, box-shadow 0.2s ease;
        transform-style: preserve-3d;
        border-radius: 10px;
    }

    section#login {
        width: 50%;
        align-self: center;
        
    }     
}

