/* POB PVP — Login premium. All selectors are scoped to the login page. */
.pob-login-page {
  --pob-ink: #07110d;
  --pob-panel: #0b1712;
  --pob-panel-soft: #102019;
  --pob-line: rgba(193, 224, 201, .12);
  --pob-text: #f1f5ef;
  --pob-muted: #a5b5a8;
  --pob-green: #75d69b;
  --pob-green-bright: #9bf0b5;
  --pob-gold: #d9bd78;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -30px;
  margin-bottom: -80px; /* Compensa o padding inferior global de main e elimina a faixa preta no fim. */
  padding: clamp(34px, 5vw, 68px) 0 clamp(50px, 7vw, 88px);
  min-height: max(680px, calc(100svh - 84px));
  display: grid;
  align-items: center;
  background: #07100c;
}

.pob-login-page::before,
.pob-login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pob-login-page::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 10, 7, .68), rgba(4, 10, 7, .82)),
    url("/assets/img/portal/forest-hero-desktop.webp") center 45% / cover no-repeat;
  transform: scale(1.015);
}

.pob-login-page::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at 14% 24%, rgba(65, 151, 91, .19), transparent 36%),
    radial-gradient(ellipse at 88% 70%, rgba(177, 144, 72, .10), transparent 34%),
    linear-gradient(90deg, rgba(2, 8, 5, .22), transparent 55%, rgba(2, 8, 5, .30));
}

.pob-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .86fr);
  width: min(1160px, calc(100% - 44px));
  max-width: 1160px;
  min-height: 650px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 224, 198, .17);
  border-radius: 30px;
  background: rgba(7, 16, 12, .82);
  box-shadow: 0 36px 110px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.pob-login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 650px;
  padding: clamp(30px, 4.4vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 17, 10, .22) 0%, rgba(5, 16, 10, .55) 42%, rgba(4, 13, 8, .96) 100%),
    linear-gradient(90deg, rgba(5, 13, 8, .54), rgba(5, 13, 8, .06)),
    url("/assets/img/portal/forest-hero-desktop.webp") center / cover no-repeat;
  border-right: 1px solid rgba(202, 226, 199, .13);
}

.pob-login-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 12% 88%, rgba(64, 181, 105, .17), transparent 42%);
}

.pob-story-main {
  position: relative;
  z-index: 1;
}

.pob-story-main {
  max-width: 520px;
  margin: auto 0;
  padding: 65px 0 46px;
}

.pob-login-overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c6e4c9;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.4;
}

.pob-story-main h1 {
  margin: 0 0 17px;
  color: #f6f5e9;
  font-size: clamp(2.55rem, 4.2vw, 4.05rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
}

.pob-story-main h1 em {
  color: #b8dda9;
  font-style: normal;
}

.pob-story-features {
  display: grid;
  gap: 11px;
  margin-top: 34px;
}

.pob-story-feature {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(223, 239, 220, .10);
  border-radius: 14px;
  background: rgba(5, 17, 10, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pob-feature-index {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid rgba(175, 218, 169, .22);
  border-radius: 10px;
  background: rgba(88, 161, 102, .15);
  color: #a8dfa9;
  font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pob-story-feature > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pob-story-feature strong {
  color: #f0f5ed;
  font-size: .79rem;
  font-weight: 800;
}

.pob-story-feature small {
  color: rgba(222, 233, 219, .58);
  font-size: .69rem;
  line-height: 1.45;
}

.pob-login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.4vw, 56px);
  background:
    radial-gradient(ellipse at 95% 5%, rgba(69, 136, 89, .13), transparent 34%),
    linear-gradient(145deg, rgba(11, 24, 17, .96), rgba(7, 14, 11, .98));
}

.pob-login-panel-inner {
  width: 100%;
  max-width: 410px;
  min-width: 0;
}

.pob-login-heading {
  margin-bottom: 31px;
}

.pob-login-overline {
  padding: 8px 11px;
  border: 1px solid rgba(155, 210, 159, .17);
  border-radius: 999px;
  background: rgba(74, 145, 83, .09);
  color: #b9dcb9;
  font-size: .61rem;
  letter-spacing: .14em;
}

.pob-login-overline svg,
.pob-login-security svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pob-login-heading h2 {
  margin: 23px 0 12px;
  color: #f3f5ed;
  font-size: clamp(2.35rem, 3.5vw, 3.15rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.02;
}

.pob-login-heading h2 span {
  color: #a9d49f;
}

.pob-login-intro {
  max-width: 360px;
  margin: 0;
  color: rgba(219, 231, 218, .67);
  font-size: .88rem;
  line-height: 1.7;
}

.pob-login-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: .78rem;
  line-height: 1.55;
}

.pob-login-notice.is-error {
  border-color: rgba(237, 111, 111, .24);
  background: rgba(115, 31, 36, .19);
  color: #f0b4b0;
}

.pob-login-notice.is-success {
  border-color: rgba(111, 211, 151, .22);
  background: rgba(31, 103, 65, .17);
  color: #a9e6bd;
}

.pob-notice-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
}

.pob-discord-callout {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 17px;
  padding: 14px;
  border: 1px solid rgba(197, 218, 200, .10);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.pob-discord-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: rgba(88, 101, 242, .16);
  color: #aab1ff;
}

.pob-discord-icon svg,
.pob-discord-button > svg:first-child {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.pob-discord-callout > span:last-child {
  display: grid;
  gap: 4px;
}

.pob-discord-callout strong {
  color: #e7eee6;
  font-size: .77rem;
  font-weight: 800;
}

.pob-discord-callout small {
  color: rgba(211, 224, 211, .55);
  font-size: .68rem;
  line-height: 1.4;
}

.pob-discord-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 59px;
  padding: 14px 18px;
  border: 1px solid rgba(160, 169, 255, .42);
  border-radius: 14px;
  background: linear-gradient(115deg, #5865f2 0%, #4753d5 58%, #3947bb 100%);
  box-shadow: 0 13px 32px rgba(54, 67, 186, .28), inset 0 1px 0 rgba(255, 255, 255, .19);
  color: #fff;
  font-size: .91rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.pob-discord-button > span {
  flex: 1;
  text-align: center;
}

.pob-discord-button .pob-button-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
}

.pob-discord-button:hover,
.pob-discord-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 39px rgba(54, 67, 186, .38), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.pob-discord-button:focus-visible,
.pob-login-back:focus-visible {
  outline: 3px solid rgba(155, 240, 181, .7);
  outline-offset: 3px;
}

.pob-login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 27px;
  color: rgba(221, 232, 220, .68);
  font-size: .77rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.pob-login-back:hover {
  color: #c1e7bd;
  transform: translateX(-2px);
}

.pob-login-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pob-login-closed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(223, 183, 99, .18);
  border-radius: 14px;
  background: rgba(123, 91, 38, .10);
}

.pob-closed-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #d9b86e;
  box-shadow: 0 0 13px rgba(217, 184, 110, .5);
}

.pob-login-closed > span:last-child {
  display: grid;
  gap: 4px;
}

.pob-login-closed strong {
  color: #e8d6a9;
  font-size: .77rem;
}

.pob-login-closed small {
  color: rgba(227, 211, 171, .59);
  font-size: .68rem;
}

.pob-login-security {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 39px;
  padding-top: 17px;
  border-top: 1px solid rgba(212, 231, 212, .09);
  color: rgba(203, 221, 205, .43);
  font-size: .65rem;
  line-height: 1.5;
}

.pob-login-security svg {
  flex: 0 0 15px;
  color: #88bf91;
}

@media (max-width: 920px) {
  .pob-login-page {
    min-height: auto;
    padding: 34px 0 58px;
  }

  .pob-login-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(680px, calc(100% - 32px));
    min-height: 0;
  }

  .pob-login-story {
    min-height: 0;
    padding: 28px 30px 25px;
    border-right: 0;
    border-bottom: 1px solid rgba(202, 226, 199, .13);
    background-position: center 44%;
  }

  .pob-story-main {
    padding: 43px 0 34px;
  }

  .pob-story-main h1 {
    max-width: 550px;
    font-size: clamp(2.5rem, 7vw, 3.6rem);
  }

  .pob-story-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pob-story-feature {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    min-height: 112px;
    padding: 11px;
  }

  .pob-story-feature small {
    font-size: .64rem;
  }

  .pob-login-panel {
    padding: 36px 30px 30px;
  }

  .pob-login-panel-inner {
    max-width: 480px;
  }

  .pob-login-security {
    margin-top: 29px;
  }
}

@media (max-width: 560px) {
  .pob-login-page {
    margin-top: -20px;
    padding: 20px 0 38px;
  }

  .pob-login-shell {
    width: calc(100% - 22px);
    border-radius: 21px;
  }

  .pob-login-story {
    padding: 21px 20px 18px;
  }


  .pob-story-main {
    padding: 34px 0 28px;
  }

  .pob-story-main h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 11vw, 3.05rem);
  }

  .pob-story-features {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 23px;
  }

  .pob-story-feature {
    align-items: center;
    flex-direction: row;
    min-height: 0;
    padding: 10px 11px;
  }

  .pob-login-panel {
    padding: 29px 21px 23px;
  }

  .pob-login-heading {
    margin-bottom: 24px;
  }

  .pob-login-heading h2 {
    margin-top: 18px;
    font-size: 2.45rem;
  }

  .pob-login-intro {
    font-size: .82rem;
  }

  .pob-discord-button {
    min-height: 56px;
  }

  .pob-login-security {
    margin-top: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pob-login-page *,
  .pob-login-page *::before,
  .pob-login-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
