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

:root {
  --brand-primary: #4f46e5;
  --brand-secondary: #7c3aed;
  --brand-dark: #0f172a;
  --brand-light: #f8fafc;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
  background: var(--brand-light);
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.logo-mark-lg { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }

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

.btn-nav-login {
  background: var(--brand-dark);
  color: white;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.btn-nav-login:hover { background: #1e293b; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1e1b4b 100%);
  color: white;
  padding: 90px 40px;
  text-align: center;
}

.hero-content { max-width: 720px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}
.btn-hero-cta:hover { opacity: 0.92; }

/* ---------- Features ---------- */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.5; }

.site-footer {
  text-align: center;
  padding: 32px;
  color: #94a3b8;
  font-size: 13px;
}

/* ---------- Login ---------- */
.login-body {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1e1b4b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper { width: 100%; max-width: 380px; padding: 20px; }

.login-card {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.login-brand { margin-bottom: 28px; }
.login-brand h1 { font-size: 22px; margin-top: 12px; }
.login-subtitle { color: #64748b; font-size: 13px; margin-top: 4px; }

.login-form { text-align: left; }

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: #334155;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}
.login-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.login-erro {
  background: #fee2e2;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.login-erro.hidden { display: none; }

.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 20px;
  cursor: pointer;
}
.btn-login-submit:hover { opacity: 0.92; }

.login-voltar {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
}
.login-voltar:hover { color: var(--brand-primary); }
