* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1115;
  color: #e6e8eb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cartao {
  background: #171a21;
  border: 1px solid #262b36;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

h1 {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #9aa4b2;
  margin-bottom: 0.35rem;
}

input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  background: #0f1115;
  border: 1px solid #2c313c;
  border-radius: 8px;
  color: #e6e8eb;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: #4f7cff;
}

button {
  width: 100%;
  padding: 0.65rem;
  background: #4f7cff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover {
  background: #3d63e0;
}

.erro {
  background: #3a1e22;
  border: 1px solid #5c2a30;
  color: #ff9aa5;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Hub */

.hub {
  display: block;
  max-width: 720px;
  width: 100%;
  padding: 2rem 1rem;
}

.hub-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.hub-topo form {
  margin: 0;
}

.hub-topo button {
  width: auto;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid #2c313c;
  font-size: 0.85rem;
}

.hub-topo button:hover {
  background: #1e222b;
}

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.projeto {
  background: #171a21;
  border: 1px solid #262b36;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.projeto:hover {
  border-color: #4f7cff;
}

.projeto h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.projeto p {
  font-size: 0.85rem;
  color: #9aa4b2;
  margin: 0;
  line-height: 1.4;
}

.vazio {
  color: #9aa4b2;
  font-size: 0.9rem;
}
