/* RESET */

@media (max-width: 850px) {
  .main-grid {
    padding: 20px;
  }

  .card-login, .card-updates {
    width: 100%;
    flex: none; /* Desativa o flex anterior para ocupar 100% */
  }

  .main-section {
    height: auto;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f3f4f6;
  min-height: 100vh;
}

/* VARIÁVEIS */
:root {
  --primary: #1e40af;
  --secondary: #3b82f6;
}

/* UTIL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HEADER */
header {
  background: #e5e7eb;
  height: 70px;
}

.container-header {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
}

/* GRID */
.main-grid {
  min-height: calc(100vh - 160px); /* Usa min-height em vez de height fixa */
  height: auto; /* Permite que o container estique com o conteúdo */
  margin: 0 auto;
  display: flex;
  justify-content: center; /* Centraliza os cards horizontalmente */
  align-items: flex-start; /* Alinha os cards ao topo */
  flex-wrap: wrap; /* Permite empilhar os cards se não houver largura */
  gap: 30px;
  padding: 25px 32px; /* Adicionado padding lateral para segurança */
  box-sizing: border-box;
}

/* CARD */
.card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-login {
  flex: 1 1 350px; /* Cresce, encolhe e tem base de 350px */
  max-width: 500px; /* Limita o crescimento exagerado */
}

.card-updates {
  flex: 1 1 500px; /* Base maior para o painel de atualizações */
}

.card h2 {
  margin-bottom: 24px;
  color: #374151;
  font-size: 24px;
}

.card span {
  color: var(--primary);
}

/* FORM */
.form-group {
  /* background-color: aqua; */
  margin-bottom: 20px;
}

label {
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.3);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1e3a8a;
}

.aviso-bloqueio {
  margin-top: 20px;
  text-align: center;
  color: #c62828;
  background: #fdecea;
  border: 1px solid #f5c2c7;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

  .aviso-bloqueio a {
    color: #b71c1c;
    text-decoration: underline;
  }

/* FILTROS */
.filters {
  background: #f3f4f6;
  padding: 6px;
  border-radius: 99px;
  display: flex;
}

.filter-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 99px;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
}

/* UPDATES */
.updates {
  /* background-color: aqua; */
  height: calc(100% - 80px);
  overflow-y: auto;
  margin-top: 20px;
  padding-right: 6px;
  padding-bottom: 10px;
}

.update-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.update-row {
  /* background-color: aqua; */
  display: flex;
}

.update-icon {
  font-size: 20px;
  color: var(--primary);
  margin-right: 12px;
}

.video iframe {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  margin: 10px 0;
  /* aspect-ratio: 16/9; */
}

.update-item .descr {
  font-size: 14px;
  color: #565656;
  margin-top: 8px;
}

.text-item {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
}

/* FOOTER */
footer {
  /* position: fixed; */
  /* bottom: 0; */
  width: 100%;
  height: 90px;
  background: var(--primary);
  color: white;
  padding: 10px 0;
  box-sizing: border-box;
}

.footer-flex {
  display: flex;
  justify-content: space-between; /* Empurra os itens para as pontas */
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-left img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-right: 12px;
}

.footer-left .dados div {
  font-size: 12px;
  line-height: 1.4;
}

.footer-right {
  display: flex;
  align-items: center;
}

.teamviewer a {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.teamviewer a p {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
}

.teamviewer a p span {
  font-size: 10px;
}

.teamviewer img {
  height: 20px;
}
