@charset "UTF-8";

/*
    Paleta de cores
    Verde #49a09d
    Lilás: #5f2c82
*/

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body, html {
    background-color: #5f2c82;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

section#login {
    position: absolute;
    top: 50%;
    left: 50%;
    
    overflow: hidden;
    
    background-color: white;
    width: 250px;
    height: 555px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.459);

    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s; /* Animação para transição de tamanhos */
    transition-timing-function: ease;  
}

section#login > div#imagem {
    display: block;
    background: #5f2c82 url(../imagens/pattern-building.jpg) no-repeat;
    background-size: cover;
    background-position: left bottom;
    height: 200px;
}

section#login > div#formulario {
    display: block; 
    padding: 8px;
    box-sizing: border-box;
}

/* Talvez apagar essas duas configurações */

div#formulario > h1 {
    margin-bottom: 5px; 
    text-align: center;
}

div#formulario > p {
    margin-bottom: 20px; 
    font-size: 0.8em;
}

form > div.campo {
    background-color: #5f2c82;
    border: 2px solid #5f2c82;
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    margin: 5px 0px;
}

div.campo > label {
    display: none;
}

div.campo > span {
    color: white;
    /*background-color: black;*/
    font-size: 2em;
    width: 40px;
    padding: 5px;
}

div.campo > input {
    background-color: #94cfcd;
    font-size: 1em;
    width: calc(100% - 44px);

    
    height: 100%;
    border: 0px;
    border-radius: 8px;
    padding: 4px;
    transform: translate(44px, -42px);
}

div.campo > input:focus-within {
    background-color: white;
    border: none;
}

form > input[type=submit] {
    display: block;
    font-size: 1em;
    width: 100%;
    height: 40px;
    background-color: #49a09d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form > input[type=submit]:hover {
    background-color: #2d6462;
}

form > a.botao {
    display: block;
    text-align: center;
    font-size: 1em;
    width: 100%;
    /* Ajuste o height para 'auto' ou um valor fixo igual ao do botão Entrar */
    height: 40px; 
    line-height: 30px; /* Ajuda a centralizar o texto verticalmente se usar height fixo */
    
    padding: 4px; /* Use o mesmo padding que aplicou no botão Entrar */
    margin-top: 5px;
    background-color: white;
    color: #2d6462;
    border: 1px solid #6cd3cf;
    border-radius: 5px;
    text-decoration: none;
    
    /* ESSENCIAL: Garante que o padding não aumente o tamanho total da caixa */
    box-sizing: border-box; 
}

form > a.botao > i {
    font-size: 0.8em;
}

form > a.botao:hover {
    background-color: #6cd3cf;
}

div#formulario > hr {
    margin: 10px; 
}

div#formulario > a {
    display: block;      /* Faz o link respeitar o padding e margens corretamente */
    margin-top: 5px;
    width: fit-content;  /* A área clicável fica restrita ao texto */
    color: #5f2c82;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.8em;
}

div#formulario > a:hover {
    text-decoration: underline;
}

/* Texto oculto para o link */

.link-magico {
  text-decoration: none;
  color: #007bff;
  position: relative;
}

/* Estado inicial do texto */
.texto-escondido {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  
  /* Posicionamento à direita */
  position: absolute;
  left: 100%;        /* Começa exatamente onde o link termina */
  top: 50%;          /* Alinha ao meio da altura */
  transform: translateY(-50%); /* Centraliza verticalmente de fato */
  margin-left: 10px; /* Dá um espacinho para não grudar no link */
  
  /* Estilo do balão */
  background: #5f2c82;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.9em;
}

/* Quando o link ganha hover, o span muda */
.link-magico:hover .texto-escondido {
  opacity: 1;
  visibility: visible;
  left: calc(100% + 15px); /* Pequeno efeito de deslize para a direita */
}
