:root {
  --bg: #eef6f3;
  --panel: #ffffff;
  --ink: #14213d;
  --muted: #617186;
  --brand: #00796b;
  --brand-dark: #00594f;
  --line: #d7e4df;
  --danger: #b42318;
  --shadow: 0 18px 60px rgba(20, 33, 61, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, #d8f4ed, transparent 34%), var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.member-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.brand-row,
.dash-top,
.dash-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-row,
.dash-top {
  justify-content: space-between;
}

.brand-mark {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.plain-link,
.ghost {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
  padding: 10px 13px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 120px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 620px;
  color: #324258;
  font-size: 20px;
  line-height: 1.45;
}

.auth-copy ul {
  display: grid;
  gap: 10px;
  max-width: 560px;
  padding-left: 20px;
  color: #26364c;
  font-weight: 700;
}

.auth-card,
.notice,
.material-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 20px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button,
.auth-form button,
.ghost {
  cursor: pointer;
}

.tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5faf8;
  color: var(--muted);
  font-weight: 900;
  padding: 10px;
}

.tabs button.active,
.auth-form button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.auth-form .link-button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 900;
  padding: 4px 0;
  text-align: left;
}

.auth-form .link-button:hover {
  text-decoration: underline;
}

.auth-form {
  display: grid;
  gap: 13px;
}

/* respeita o atributo hidden: mostra SO a aba ativa (login/cadastro/esqueci/redefinir),
   uma tela por vez — antes o display:grid acima vencia o [hidden] e empilhava tudo */
.auth-form[hidden] {
  display: none !important;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  padding: 12px;
  outline: none;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.14);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #324258;
  line-height: 1.35;
}

.check input {
  width: 18px;
  min-width: 18px;
  margin-top: 2px;
}

.auth-form button {
  border: 0;
  border-radius: 6px;
  min-height: 46px;
  font-weight: 900;
}

.form-msg {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.hp {
  position: absolute;
  left: -9999px;
}

.dashboard {
  padding-top: 14px;
}

.dash-top h1 {
  font-size: clamp(28px, 5vw, 46px);
}

.muted {
  color: var(--muted);
}

.notice {
  margin: 18px 0;
  color: #294035;
  background: #f7fffc;
  padding: 14px;
}

.bonus-section {
  border: 1px solid #badfd5;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f2fffb 100%);
  box-shadow: var(--shadow);
  margin: 18px 0;
  padding: 16px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.bonus-badge {
  border-radius: 999px;
  background: #d8f4ed;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin-top: 12px;
}

.bonus-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bonus-card.planner-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 280px) 1fr;
  border-color: #96d2c6;
}

.bonus-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfece7;
}

.bonus-card > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.planner-card > div {
  align-content: center;
  padding: 16px 16px 16px 0;
}

.bonus-card h3 {
  margin: 0;
  font-size: 18px;
}

.planner-card h3 {
  font-size: 24px;
}

.bonus-card p {
  margin: 0;
}

.bonus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bonus-tags span {
  border-radius: 999px;
  background: #ecf8f4;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.bonus-meta {
  color: #314258;
  font-size: 13px;
  font-weight: 800;
}

.bonus-download {
  width: fit-content;
  border-radius: 6px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
  padding: 11px 14px;
}

.bonus-download:hover {
  background: var(--brand-dark);
}

.materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.material-card {
  overflow: hidden;
}

.material-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfece7;
}

.material-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.material-card h2 {
  margin: 0;
  font-size: 17px;
}

.material-card a {
  color: var(--brand-dark);
  font-weight: 900;
}

@media (max-width: 820px) {
  .auth-grid,
  .materials,
  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    min-height: 0;
    padding-top: 38px;
  }

  .brand-row,
  .dash-top {
    align-items: stretch;
    flex-direction: column;
  }

  .dash-actions {
    flex-wrap: wrap;
  }

  .bonus-card,
  .bonus-card.planner-card {
    grid-template-columns: 1fr;
  }

  .bonus-card > div,
  .planner-card > div {
    padding: 14px;
  }

  .bonus-card img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
