/* RESET E FUNDO */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url(../images/planodefundoaltaresolucao.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* IDEIA DE BLUR PARA A IMAGEM DE FUNDO - OLHAR DPS */
.card-com-blur {
  background: rgba(255, 255, 255, 0.1); /* Fundo branco levemente transparente */
  backdrop-filter: blur(10px);        /* Aplica o desfoque de 10 pixels no fundo */
  -webkit-backdrop-filter: blur(10px); /* Suporte para navegadores Safari */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}



/* CONTAINER E CONTEÚDO */
.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.conteudo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px; /* Aumentei o espaço entre a logo e o card */
    width: 100%;
    max-width: 1200px;
}

/* CARD DE LOGIN (Aumentado) */
.login-box {
    width: 480px; /* Ficou mais robusto */
    background-color: #ffffff;
    border-radius: 25px; /* Bordas mais suaves */
    padding: 60px 40px;  /* Mais respiro interno */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.3);
}

/* ÍCONE DE USUÁRIO */
.icone-usuario {
    width: 120px;  /* Maior como na foto */
    height: 120px;
    background-color: #154694;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
}

.icone-usuario img {
    width: 65px; /* Bonequinho maior */
}

/* FORMULÁRIO */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o botão e o texto */
}

.campo {
    width: 100%; /* Agora ocupa o card todo com margem interna */
    margin-bottom: 30px;
}

form label {
    display: block;
    color: #0E4194;
    font-size: 18px; /* Texto do label maior */
    font-weight: 600;
    margin-bottom: 10px;
    margin-left: 5px;
}

form input {
    width: 100%;
    height: 55px; /* Inputs mais altos */
    border: 1.5px solid #0E4194;
    border-radius: 50px;
    padding: 0 25px;
    outline: none;
    font-size: 18px; /* Texto dentro do input maior */
    color: #333;
    box-sizing: border-box; /* Garante que o padding não quebre a largura */
}

/* BOTÃO DE LOGIN (Poderoso) */
button {
    width: 100%; /* Botão agora acompanha a largura dos inputs */
    height: 60px;
    background-color: #154694;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 22px; /* Letra grande e legível */
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px); /* Efeito de flutuar ao passar o mouse */
}

/* LINK DE CADASTRO */
.footer-text {
    margin-top: 25px;
    font-size: 15px;
    color: #154694;
}

.footer-text a {
    color: #154694;
    text-decoration: underline;
    font-weight: bold;
}

/* Estilo da mensagem de erro profissional */
.msg-erro {
    display: none; /* Começa escondida */
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 12px;
    border-radius: 8px;
    width: 90%;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
    align-items: center;
    gap: 10px;
}

/* Quando houver erro, vamos adicionar essa classe via JS */
.msg-erro.ativo {
    display: flex;
}

.logo-img {
    width: 300px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

/* RESPONSIVIDADE */
@media(max-width: 900px) {
    .conteudo {
        flex-direction: column;
        gap: 40px;
    }
    .login-box {
        width: 90%;
        padding: 40px 20px;
    }
}
