/* ARQUIVO: estilos.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --cor-primaria: #ff0000;
    --cor-primaria-hover: #cc0000;
    --cor-texto: #333;
    --cor-borda: #ddd;
    --cor-fundo: #eef2f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    height: 100%; width: 100%; overflow-x: hidden;
    font-family: 'Roboto', sans-serif; background: var(--cor-fundo);
}
body { display: flex; flex-direction: column; }

/* WRAPPER LOGIN */
.login-wrapper {
    display: flex; justify-content: center; align-items: center;
    width: 100%; min-height: 100dvh; padding: 20px;
}

.login-card {
    background: white;
    width: 100%;
    /* MUDANÇA 3: Aumentei de 400px para 450px para ficar mais largo no PC */
    max-width: 450px; 
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    margin: auto;
}

/* RESPONSIVIDADE CELULAR */
@media (max-width: 480px) {
    .login-wrapper { padding: 20px; height: auto; min-height: 100dvh; }
    
    .login-card {
        width: 100%; max-width: 100%;
        padding: 30px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-radius: 12px;
    }
    .icon-construcao { font-size: 70px; margin-bottom: 20px; }
    h1 { font-size: 1.8rem; }
}

/* BOTÃO LINK SUAVE */
.input-com-botao {
    display: flex; align-items: center; width: 100%; margin-bottom: 12px; background: white;
}
.input-com-botao input { flex: 1; margin-bottom: 0; width: auto; }

.btn-clean {
    background: transparent; border: none; cursor: pointer; color: #ff9800;
    padding: 0 0 0 10px; display: flex; align-items: center; justify-content: center;
    transition: color 0.3s ease; font-size: 18px; height: 48px; width: 40px;
}
.btn-clean:hover { color: #ff3d00; background: transparent; box-shadow: none; }

/* GERAIS */
h1 { font-size: 2.2rem; color: var(--cor-texto); margin: 0 0 5px 0; }
.destaque { color: var(--cor-primaria); font-weight: 700; }
.subtitulo { color: #666; font-size: 1rem; margin-top: 0; margin-bottom: 30px; font-weight: 400; }
.icon-construcao { font-size: 80px; color: var(--cor-primaria); margin-bottom: 25px; }

input, select { 
    width: 100%; padding: 14px; margin-bottom: 12px; 
    border: 1px solid var(--cor-borda); border-radius: 6px; 
    font-size: 15px; box-sizing: border-box; background: #fafafa;
    color: #333; display: block;
}
input:focus, select:focus { outline: none; border-color: var(--cor-primaria); background: white; }

label { display: block; text-align: left; font-weight: 600; font-size: 13px; color: #555; margin-bottom: 5px; margin-top: 15px; }

.btn-entrar { 
    width: 100%; padding: 14px; background: var(--cor-primaria); 
    color: white; border: none; border-radius: 6px; 
    font-weight: 700; cursor: pointer; font-size: 16px; margin-top: 20px;
    transition: background 0.2s;
}
.btn-entrar:hover { background: var(--cor-primaria-hover); }

.links-ajuda { text-align: left; margin-top: 10px; font-size: 14px; }
.links-ajuda a { color: #007bff; text-decoration: none; }
.separador-ou { display: flex; align-items: center; color: #999; font-size: 12px; font-weight: bold; margin: 25px 0; }
.separador-ou::before, .separador-ou::after { content: ''; flex: 1; border-bottom: 1px solid #ddd; }
.separador-ou::before { margin-right: 15px; } .separador-ou::after { margin-left: 15px; }

.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px;
    background: white; color: #333; font-weight: 500; text-decoration: none; font-size: 15px; box-sizing: border-box;
    transition: 0.2s;
}
.btn-google:hover { background: #f8f9fa; border-color: #ccc; }
.btn-google svg { width: 20px; height: 20px; }

.escondido { display: none; }
.msg-erro { color: #d32f2f; background: #ffebee; padding: 12px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; display: none; text-align: left; border: 1px solid #ffcdd2; }

/* TOP BAR */
.top-bar { 
    background: white; padding: 0 20px; display: flex; justify-content: space-between; 
    align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); height: 60px; 
    width: 100%; position: sticky; top: 0; z-index: 1000; box-sizing: border-box;
    border-bottom: 1px solid #eee; flex-shrink: 0;
}
.logo { font-weight: 900; font-size: 1.2rem; white-space: nowrap; color: #333; text-decoration: none; }
.user-area { display: flex; align-items: center; gap: 10px; }
.link-perfil { 
    display: flex; align-items: center; gap: 10px; 
    text-decoration: none; cursor: pointer; 
    padding: 5px 10px; border-radius: 6px; transition: 0.2s;
}
.link-perfil:hover { background: #f5f5f5; }
.user-name { font-size: 14px; color: #333; font-weight: bold; display: block; }
.avatar-img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.btn-voltar-home { text-decoration:none; color:#333; font-weight:bold; font-size:14px; margin-right:10px; }

@media (max-width: 768px) {
    .user-name { display: none; }
    .top-bar { padding: 0 10px; }
}

