html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

/* Estilos gerais */

body {
    font-family: Arial, sans-serif;
    background-image: url('../Media/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    transition: background-image 1.5s ease-in-out;
}

.login-container {
    background-color: white;
    opacity: 0.95;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    width: 100px;
    height: auto;
    border-radius: 12px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    width: 100%;
}

input[type="email"],
input[type="password"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

button {
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

button:active {
    transform: scale(0.98);
}

a {
    margin-top: 20px;
    text-decoration: none;
    color: #007bff;
    text-align: center;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
    transform: scale(1.05);
}

/* Media Queries para Mobile */

@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    .login-container {
        padding: 25px 20px;
        max-width: 100%;
        opacity: 0.97;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    img {
        width: 80px;
        margin-bottom: 15px;
    }

    input[type="email"],
    input[type="password"] {
        padding: 12px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    button {
        padding: 14px;
        font-size: 16px;
    }

    a {
        margin-top: 15px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 20px 15px;
        border-radius: 10px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    img {
        width: 70px;
        margin-bottom: 12px;
    }

    input[type="email"],
    input[type="password"] {
        padding: 11px;
        font-size: 15px;
        margin-bottom: 10px;
    }

    button {
        padding: 13px;
        font-size: 15px;
    }

    a {
        font-size: 13px;
    }
}

@media screen and (max-width: 360px) {
    .login-container {
        padding: 15px 12px;
    }

    h2 {
        font-size: 18px;
    }

    img {
        width: 60px;
    }

    input[type="email"],
    input[type="password"] {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }
}