/* Área Eventos & Materiais */

.events-page {
  min-height: 100vh;
}

.events-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 72px 0 54px;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.events-copy h1 {
  font-size: clamp(46px, 7vw, 82px);
  max-width: 760px;
}

.events-copy .lead {
  max-width: 700px;
}

.event-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.event-principles span {
  border: 1px solid rgba(143,255,210,.24);
  background: rgba(143,255,210,.07);
  color: #dffff1;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.access-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(143,255,210,.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.075));
  border-radius: 30px;
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.access-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  right: -90px;
  top: -100px;
  background: rgba(143,255,210,.16);
  filter: blur(6px);
  pointer-events: none;
}

.access-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #aaffd9, #00c466);
  color: #02130c;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 24px;
}

.eyebrow,
.mini-label {
  color: #9fffd7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.access-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.04em;
}

.access-help {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

#eventAccessForm label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #eafff4;
}

.code-field {
  position: relative;
}

#eventCode {
  width: 100%;
  height: 66px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.24);
  color: #fff;
  outline: none;
  padding: 0 76px 0 18px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#eventCode::placeholder {
  color: rgba(255,255,255,.25);
  letter-spacing: .22em;
}

#eventCode:focus {
  border-color: rgba(143,255,210,.72);
  box-shadow: 0 0 0 4px rgba(143,255,210,.11);
  background: rgba(0,0,0,.30);
}

.code-counter {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 18px;
}

.access-button {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.access-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.access-message.is-error {
  display: block;
  color: #ffdada;
  border: 1px solid rgba(255,130,130,.30);
  background: rgba(255,70,70,.09);
}

.access-message.is-success {
  display: block;
  color: #dffff1;
  border: 1px solid rgba(143,255,210,.30);
  background: rgba(143,255,210,.09);
}

.privacy-note {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.events-info {
  padding-top: 10px;
}

.info-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 38px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: var(--card2);
}

.info-card h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.035em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

@media (max-width: 900px) {
  .events-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .events-layout,
  .info-card {
    grid-template-columns: 1fr;
  }

  .events-layout {
    gap: 34px;
  }
}

@media (max-width: 520px) {
  .events-hero {
    padding: 42px 0 34px;
  }

  .events-copy h1 {
    font-size: clamp(42px, 15vw, 62px);
  }

  .access-card {
    border-radius: 24px;
    padding: 24px 18px;
  }

  #eventCode {
    font-size: 25px;
  }

  .info-card {
    padding: 23px 19px;
  }
}
