@charset "UTF-8";

body {
    margin: 0px;
    height: 100vh; /* altura total da tela */
    display: flex;
    justify-content: center; /* centraliza horizontalmente o container */
    align-items: center;     /* centraliza verticalmente */
    font-family: Arial, Helvetica, sans-serif;
    gap: 150px;
}

.box {
    width: 480px;
    height: 200px;
    align-items: center;
}

/* Quando a tela for menor que 768px (tablet/celular), fica em coluna */
@media (max-width: 750px) {
    body {
        flex-direction: column; /* agora fica um em cima do outro */
        align-items: center;    /* centraliza no meio */
        gap: 30px;
        padding-top: 30px;
    }

    .p{
        width: 95%;
    }
}


form{
    width: 380px;
    background-color: white;
    padding: 20px;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.255);
}

.title{
    font-size: 40px;
    text-align: center;
    color: black;
    font-weight: bold;
    margin-bottom: 5px;
    max-width: 500px; /* não deixa o texto abrir demais */
}

span{
    color: lightseagreen;
}

h2{
    text-align: center;
    color: lightseagreen;
    margin-bottom: 2px;
}

p{
    text-align: center;
    color: rgba(128, 128, 128, 0.797);
}

p > a{
    text-decoration: none;
    color: lightseagreen;
}

p>a:hover{
    text-decoration: underline;
}

.p{
    font-size: 18px;
    text-align: center;
}

label{
    margin-bottom: 10px;
}

input{
    margin-top: 5px;
    margin-bottom: 10px;
    width: 360px;
    padding: 8px ;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid rgba(0, 0, 0, 0.518);
}

input:focus{
    border: 2px solid lightseagreen;
    outline: none;
}

button{
    width: 380px;
    padding: 15px;
    color: white;
    font-size: 17px;
    background-color: lightseagreen;
    border: none;
    border-radius: 5px 5px 5px 5px;
    margin-bottom: 5px;
    margin-top: 10px;
}

button:hover{
    background-color: rgb(34, 138, 131);
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }

  .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

