/* Estilo compartilhado da área de membros (hub + páginas de produto). */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --pink: #F5175A;
  --pink-light: #FFF0F4;
  --pink-dark: #C0103F;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e8e8e8;
  --bg: #fafafa;
  --white: #ffffff;
  --radius: 12px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── LOGIN ── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--white);
}

.login-box { width: 100%; max-width: 400px; }

.login-logo {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.login-logo span { color: var(--pink); }

.login-box h1 { font-size: 24px; font-weight: 500; line-height: 1.3; margin-bottom: 0.5rem; }
.login-box h1 em { color: var(--pink); font-style: normal; }
.login-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus { border-color: var(--pink); }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--pink-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.forgot-link:hover { color: var(--pink); }

#login-error {
  display: none;
  background: #FFF0F4;
  border: 1px solid #F5C0CE;
  color: #C0103F;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#reset-msg {
  display: none;
  background: #F0FFF4;
  border: 1px solid #C0E0C8;
  color: #166534;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.first-access-banner {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.first-access-banner .banner-icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.first-access-banner .banner-text { font-size: 13px; color: #5a3e00; line-height: 1.5; }
.first-access-banner .banner-text strong { display: block; font-weight: 600; margin-bottom: 2px; color: #3d2900; }

/* ── CABEÇALHO ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-muted); }
.header-logo span { color: var(--pink); }
.header-right { display: flex; align-items: center; gap: 1rem; }
#user-email { font-size: 13px; color: var(--text-muted); }

.btn-logout,
.btn-voltar {
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-logout:hover,
.btn-voltar:hover { border-color: var(--pink); color: var(--pink); }

main { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.page-title { margin-bottom: 2.5rem; }
.page-title h2 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.page-title h2 em { color: var(--pink); font-style: normal; }
.page-title p { font-size: 14px; color: var(--text-muted); }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.25rem;
}

/* ── CARDS DE PRODUTO (hub) ── */
.produto-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.produto-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.produto-card:hover { border-color: var(--pink); transform: translateY(-1px); }

.produto-icone {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.produto-info { flex: 1; }
.produto-info h3 { font-size: 16px; font-weight: 500; margin-bottom: 3px; }
.produto-info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.produto-seta { color: var(--pink); font-size: 18px; flex-shrink: 0; }

.estado-vazio {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.estado-vazio a { color: var(--pink); }

.carregando { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 14px; }

/* ── SUPORTE / RODAPÉ ── */
.support-bar {
  background: var(--pink-light);
  border: 1px solid #F5C0CE;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.support-bar p { font-size: 14px; color: var(--text); }
.support-bar a { font-size: 14px; font-weight: 500; color: var(--pink); text-decoration: none; white-space: nowrap; }
.support-bar a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 4rem;
}

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── GUARDA DE ACESSO (páginas de produto) ── */
#guarda-carregando { display: none; }
#sem-acesso { display: none; }

html.verificando #conteudo { display: none; }
html.verificando #guarda-carregando { display: flex; }

html.sem-acesso #conteudo { display: none; }
html.sem-acesso #sem-acesso { display: flex; }

.guarda-tela {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--white);
}

.guarda-caixa { max-width: 420px; }
.guarda-caixa h1 { font-size: 20px; font-weight: 500; margin-bottom: 0.75rem; }
.guarda-caixa p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }

.guarda-caixa .btn-primary { width: auto; padding: 12px 22px; text-decoration: none; display: inline-block; }

@media (max-width: 480px) {
  header { padding: 0 1rem; }
  #user-email { display: none; }
  main { padding: 1.5rem 1rem 3rem; }
  .produto-card { padding: 1.25rem; gap: 1rem; }
}
