/* Estilo para o formulário de registro */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-image 2s ease-in-out;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 30px;
    background-color: #f9f9f9;
    opacity: 0.95;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    width: 100px;
    height: auto;
    border-radius: 12px;
}

h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    transition: transform 0.3s ease;
}

h2:hover {
    transform: scale(1.05);
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

button {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    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);
}

/* Estilo para os campos obrigatórios */

input:required,
select:required {
    border-left: 3px solid #007bff;
}

/* Estilo para mensagens de erro */

.error-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

/* Media Queries para Mobile */

@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        max-width: 100%;
        padding: 25px 20px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    img {
        width: 80px;
        margin-bottom: 15px;
    }

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    input,
    select {
        padding: 11px;
        font-size: 16px;
        margin-bottom: 18px;
    }

    button {
        padding: 13px 20px;
        font-size: 17px;
    }

    .error-message {
        font-size: 13px;
        margin-top: -13px;
        margin-bottom: 13px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px 15px;
        border-radius: 8px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    img {
        width: 70px;
        margin-bottom: 12px;
    }

    label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    input,
    select {
        padding: 10px;
        font-size: 15px;
        margin-bottom: 16px;
    }

    button {
        padding: 12px 18px;
        font-size: 16px;
    }

    .error-message {
        font-size: 12px;
        margin-top: -12px;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 360px) {
    .container {
        padding: 15px 12px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    img {
        width: 60px;
        margin-bottom: 10px;
    }

    label {
        font-size: 12px;
    }

    input,
    select {
        padding: 9px;
        font-size: 14px;
        margin-bottom: 14px;
    }

    button {
        padding: 11px 16px;
        font-size: 15px;
    }

    .error-message {
        font-size: 11px;
    }
}