body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;

    background: url("./img/weather.jpg");
    background-size: 160% auto; 
    background-repeat: no-repeat;
    background-position: center; 
    animation: gradientBG 35s ease infinite; /* animação contínua */
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

@keyframes gradientBG { 
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.glass-container {
    width: 90%;
    max-width: 320px; 
    padding: 35px 28px; 
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    z-index: 10; 
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
}

form {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
}

form input {
    width: 90%;
    margin: 3px; 
    padding: 8px;
    border-radius: 30px; 
    border: none;
    outline: none;
    text-align: center; 
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

h1 {
    font-weight: 500; 
    color: white;
    margin-bottom: 25px; 
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); 
    text-align: center; 
    font-size: 26px;    
}
.enviar {
    width: 60%;
    padding: 10px;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(120, 150, 175, 0.45), rgba(80, 110, 135, 0.45));
    border: none;
    border-radius: 30px; 
    outline: none; 
    color: white;
    font-size: 14px;
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}

form [type="submit"]:hover {
    background: linear-gradient(135deg, rgba(150, 180, 200, 0.9), rgba(100, 130, 160, 0.9));
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
}

body.pag2 {
    display: flex;
    flex-direction: column; 
    align-items: center;   
    justify-content: center; 
    height: 100vh;      
    position: relative;
    overflow: hidden; 
}
.pag2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(2px);
    z-index: -1;
}
.enviado{
    font-weight: 200; 
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); 
    text-align: center; 
    font-size: 24px;
    line-height: 25px;

}
.voltar {
    font-weight: 200; 
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); 
    text-align: center; 
    font-size: 20px; 
}
.voltar a {
    text-decoration: none; 
    color: white; 
}

@media (max-width: 480px) {

    body {
        background-size: 180% auto;
        background-position: center;
    }

    .glass-container {
        width: 90%;
        max-width: 300px;
        padding: 25px 20px;
    }

    h1 {
        font-size: 22px;
    }

    .enviar {
        width: 80%;
        font-size: 18px;
    }

    .voltar,
    .enviado {
        font-size: 18px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {

    body {
        background-size: cover;
        background-position: center;
    }

    .glass-container {
        width: 80%;
        max-width: 350px;
        padding: 30px 25px;
    }

    h1 {
        font-size: 24px;
    }

    .enviar {
        width: 70%;
        font-size: 20px;
    }

    .voltar,
    .enviado {
        font-size: 20px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
