:root {
  --bg: #0d0e0d;
  --surface: #141615;
  --surface2: #1c1d1c;
  --surface3: #242624;

  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);

  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #475569;

  --blue: #0f3bfe;
  --blue-lt: #3d62fe;
  --blue-dim: #93aaff;
  --blue-dim2: rgba(15, 59, 254, 0.15);

  --green: #c0f58b;
  --green-dk: #86c65a;
  --green-dim: rgba(192, 245, 139, 0.12);

  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);

  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-logo {
  display: block;
  height: 36px;
  margin: 0 auto 32px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 32px;
}

.login-error {
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface3);
}

.btn-primary {
  width: 100%;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 28px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-meta {
  font-size: 12px;
  color: var(--text3);
  font-weight: 400;
  white-space: nowrap;
}

.nav-meta strong {
  color: var(--text2);
  font-weight: 600;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

.hub-hero {
  padding: 80px 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.hub-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hub-title .accent {
  color: var(--green);
}

.hub-subtitle {
  font-size: 15px;
  color: var(--text2);
  max-width: 640px;
}

.empreendimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .empreendimentos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .empreendimentos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.empreendimento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  cursor: pointer;
}

.empreendimento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
}

.empreendimento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 16px 16px 0 0;
}

.empreendimento-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.empreendimento-card-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.empreendimento-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empreendimento-card-cta::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.2s;
}

.empreendimento-card:hover .empreendimento-card-cta::after {
  transform: translateX(3px);
}

.erro-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.erro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.erro-status {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--red);
}

.erro-mensagem {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.5;
}

.erro-link {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.erro-link:hover {
  border-color: var(--blue);
  color: var(--blue-dim);
}
