/* Reset de estilos e configuração básica */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ecf0f1;
    margin: 0;
    padding: 0;
    background: url('LGIM/fundosistem.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Sobreposição de fundo */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    filter: brightness(0.6);
    z-index: -1;
}

/* Container centralizado */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
    align-items: flex-end; /* Move o conteúdo para a direita */
    padding: 20px;
    height: 100%; /* Ocupa a altura total do body */
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 0;
    margin-right: 10%; /* Dá um espaço à direita para não colar na borda */
}

/* Estilo do título */
h2 {
    margin-bottom: 25px;
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilo dos campos de entrada, incluindo select */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

/* Estilo específico do select */
select {
    appearance: none;
    background: rgba(153, 141, 141, 0.1) url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Cor do texto das opções dentro do select */
select option {
    background: #2c3e50;
    color: #fff;
}

/* Efeito ao focar */
select:focus {
    border-color: #1abc9c;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(26, 188, 156, 0.5);
}

/* Placeholder do select (primeira opção) */
select:invalid {
    color: rgba(255, 255, 255, 0.7);
}

/* Estilo do formulário */
form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Estilo dos botões */
button {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    background-color: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Efeito hover nos botões */
button:hover {
    background-color: #16a085;
    transform: scale(1.05);
}

/* Botão "Criar conta" */
.criar-conta-btn {
    background-color: #2c3e50;
    margin-top: 15px;
}

/* Hover do botão "Criar conta" */
.criar-conta-btn:hover {
    background-color: #34495e;
    transform: scale(1.05);
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsividade */
@media (max-width: 768px) {



    .login-card {
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro e opaco para leitura */
    color: #ffffff; /* Garante contraste */
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

body{
    background: url('LGIM/fundosistem2.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

    .container {
        align-items: center; /* Centraliza novamente em telas menores */
        padding: 10px;
        margin-right: 0; /* Remove o deslocamento à direita */
    }

    h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .login-card {
        padding: 20px;
        max-width: 90%;
    }

    form {
        max-width: 100%;
    }

    button {
        font-size: 16px;
        padding: 12px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .login-card {
        padding: 15px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Estilo do modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Conteúdo do modal */
.modal-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

/* Título do modal */
.modal-content h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #1abc9c;
}

/* Texto do modal */
.modal-content p {
    margin: 0 0 20px;
    font-size: 16px;
}

/* Botão do modal */
.modal-content button {
    background-color: #1abc9c;
    padding: 10px 20px;
    font-size: 16px;
    width: auto;
    max-width: none;
}

.modal-content button:hover {
    background-color: #16a085;
}