* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #F4F6F8;
  color: #243746;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer {
  background: #0C3B5E;
  color: #fff;
}

.trilho {
  max-width: 1120px; /* mesma largura usada no site principal (--largura) */
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 18px;
  font-weight: 700;
}

.logo b {
  font-weight: 700;
  color: #00A9E0;
}

header h1 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #E3EDF3;
  border-left: 1px solid #2A5A7D;
  padding-left: 16px;
  letter-spacing: .3px;
  opacity: 1;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.login-card {
  background: #fff;
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  border: 1px solid #DDE3E8;
  box-shadow: 0 6px 20px rgba(12, 59, 94, 0.12);
  overflow: hidden;
}

.faixa {
  background: #0C3B5E;
  color: #fff;
  padding: 24px;
  text-align: center;
}

.faixa .ico {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.faixa h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.corpo {
  padding: 28px 24px;
}

.alerta-erro {
  background: #FFECE3;
  color: #D64000;
  border-left: 4px solid #D64000;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #0C3B5E;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.campo input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #DDE3E8;
  border-radius: 6px;
  font-size: 14px;
  background: #FAFBFC;
  color: #243746;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo input:focus {
  outline: none;
  border-color: #00A9E0;
  box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.15);
}

.btn-entrar {
  width: 100%;
  padding: 12px;
  background: #00A9E0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.btn-entrar:hover {
  background: #0090c0;
}

footer {
  margin-top: auto;
}

footer .trilho {
  justify-content: center;
}

footer .logo {
  font-size: 15px;
  opacity: 1;
}

@media (max-width: 480px) {
  main {
    padding: 30px 16px;
  }
  header h1 {
    border: none;
    padding-left: 0;
    flex-basis: 100%;
    text-align: center;
  }
  .trilho {
    justify-content: center;
    text-align: center;
  }
}
