
/* Reset básico */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 10px 20px;
  border-bottom: 4px solid #0597FA;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.menu {
  display: flex;
  gap: 15px;
}

.menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1f2937;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.2s;
}

.menu a:hover {
  background-color: #e0e0e0;
}

/* Layout principal */
.content-wrapper {
  display: flex;
  padding: 30px;
  gap: 40px;
  align-items: flex-start;
}

.table-box {
  flex: 1;
}


/* Títulos */
h2 {
  margin-top: 0;
  text-align: center;
}


/* Tabelas */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 0px;
  background: white;
}

th,
td {
  border: 1px solid #ccc;
  padding: 5px;
  text-align: left;
  vertical-align: middle;
}

th {
  background-color: #f0f0f0;
}


/* Login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px 20px;
  width: 100%; /* já está OK */
}

.logo-container {
  margin-bottom: 20px;
}

.logo-container img {
  margin-top: -40px;
  margin-bottom: 180px;
  max-width: 350px;
  height: auto;
}

.login-box {
  width: 100%;
  max-width: 18%;
}
/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  background-color: #fff;
  color: #000 !important;
  z-index: 1000;
  /*box-shadow: 0 -2px 1px rgba(0,0,0,0.8);*/
  
  height: 0px; /* define uma altura fina */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px; /* elimina o padding vertical */
  
  border-top: 4px solid #0597FA;
}


/* Fundos */
body.login-fundo {
    background-image: 
    url('imagens/fundo.png'), 
    url('imagens/fundo_motiv4r_login2.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-attachment: fixed, fixed;
  background-size: contain, cover;
}

body.main-fundo {
  position: relative;
  background: url('imagens/fundo_motiv4r.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.main-fundo::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: -1;
}

/* Garante que paddings não "rebentam" larguras */
*, *::before, *::after {
  box-sizing: border-box;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: #fff;
  padding: 24px 22px 26px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: left; /* força alinhamento consistente */
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  height: 46px;              /* todos com a mesma altura */
  padding: 0 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #cfd6e0;
  background: #eef4ff;
}

.btn-login {
  width: 100%;
  height: 48px;              /* mesma altura visual dos inputs */
  margin-top: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  background: #2e86de;
  border: none;
  color: #fff;
  cursor: pointer;
}

.login-links {
  text-align: center;
  margin-top: 14px;
}

.login-links a {
  text-decoration: none;
  color: #2e86de;
  font-size: 14px;
}

.login-erro {
  background: #ffe5e5;
  color: #b00020;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 14px;
}


.exame-container {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;
}

.exame-container h2 {
  margin-bottom: 15px;
}

.btn-iniciar {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  background: #27ae60;
  color: #fff;
  cursor: pointer;
}

.btn-iniciar:hover {
  background: #1f8a4d;
}

/* Mobile first: ocupar toda a largura no telemóvel */
@media (max-width: 768px) {
  .exame-container {
    width: 100%;
    max-width: 100%;
    border-radius: 0;     /* opcional: fica tipo app */
    padding: 16px;       /* ajusta o respiro */
    margin: 0;           /* remove margens laterais */
  }

  .main-container {
    padding: 0;          /* aproveita o ecrã todo */
  }
}

.resposta {
    display: block;
    margin-left: 15px;
    cursor: pointer;
	color: #b7b7b7; 	/* cinzento claro */
    padding: 8px 6px;
    border-radius: 6px;
	font-size: 14px !important;
}

.resposta:hover {
    background: rgba(255,255,255,0.06);  /* leve highlight ao passar o dedo/rato */
}

.resposta input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.1);   /* um bocadinho maior para toque no telemóvel */
}
</style>
