:root {
  --pb-bg: #050a14;
  --pb-bg-soft: #081221;
  --pb-panel: rgba(8, 17, 31, 0.92);
  --pb-panel-strong: #091525;
  --pb-line: rgba(179, 200, 230, 0.12);
  --pb-line-strong: rgba(179, 200, 230, 0.2);
  --pb-text: #f7f9ff;
  --pb-muted: #8c99ae;
  --pb-muted-strong: #b8c2d2;
  --pb-purple: #7938f4;
  --pb-purple-light: #a65cff;
  --pb-purple-deep: #48209d;
  --pb-green: #28d391;
  --pb-red: #ff3f60;
  --pb-gold: #f6b829;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--pb-bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--pb-text);
  background:
    radial-gradient(
      circle at 19% 8%,
      rgba(83, 45, 180, 0.22),
      transparent 32rem
    ),
    linear-gradient(145deg, #040913, #07111f 58%, #040811);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.pb-login-page {
  position: relative;
  overflow-x: hidden;
}

.pb-login-stadium {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pb-login-stadium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 8, 17, 0.15),
      rgba(3, 8, 17, 0.65) 56%,
      rgba(3, 8, 17, 0.94)
    ),
    radial-gradient(
      circle at 25% 34%,
      rgba(127, 64, 238, 0.18),
      transparent 30%
    );
}

.pb-login-floodlight {
  position: absolute;
  top: -12vh;
  width: 48vw;
  height: 65vh;
  opacity: 0.42;
  filter: blur(10px);
  background:
    linear-gradient(
      105deg,
      transparent 28%,
      rgba(197, 217, 255, 0.25) 48%,
      transparent 70%
    );
}

.pb-login-floodlight--left {
  left: -9vw;
  transform: rotate(11deg);
}

.pb-login-floodlight--right {
  right: -20vw;
  transform: rotate(-17deg);
  opacity: 0.2;
}

.pb-login-crowd {
  position: absolute;
  left: 0;
  right: 35%;
  top: 35%;
  bottom: 22%;
  opacity: 0.2;
  background:
    radial-gradient(
      circle at 8% 32%,
      rgba(255, 255, 255, 0.55) 0 1px,
      transparent 2px
    ) 0 0 / 14px 17px,
    radial-gradient(
      circle at 43% 55%,
      rgba(156, 105, 255, 0.8) 0 1px,
      transparent 2px
    ) 0 0 / 21px 19px,
    linear-gradient(180deg, transparent, rgba(5, 9, 17, 0.9));
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}

.pb-login-pitch {
  position: absolute;
  left: -8vw;
  right: 37%;
  bottom: -17vh;
  height: 55vh;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: bottom;
  border-top: 1px solid rgba(109, 210, 160, 0.16);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(24, 90, 65, 0.09) 0 8%,
      rgba(12, 62, 47, 0.06) 8% 16%
    ),
    linear-gradient(
      180deg,
      rgba(19, 86, 62, 0.18),
      rgba(2, 15, 14, 0.04)
    );
  box-shadow: 0 -30px 100px rgba(26, 198, 127, 0.06);
}

.pb-login-pitch-line {
  position: absolute;
  top: 48%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(203, 240, 221, 0.14);
}

.pb-login-centre-circle {
  position: absolute;
  top: 27%;
  left: 49%;
  width: 24%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(203, 240, 221, 0.14);
  border-radius: 50%;
}

.pb-login-glow {
  position: absolute;
  left: 6%;
  bottom: 7%;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  opacity: 0.38;
  background: radial-gradient(
    circle,
    rgba(116, 51, 242, 0.24),
    transparent 68%
  );
  filter: blur(22px);
}

.pb-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(430px, 0.72fr);
}

.pb-login-story {
  min-height: 100vh;
  padding:
    clamp(34px, 4vw, 72px)
    clamp(32px, 6vw, 104px);
  display: flex;
  flex-direction: column;
}

.pb-login-brand img,
.pb-login-mobile-brand img {
  display: block;
  width: min(220px, 48vw);
  height: auto;
}

.pb-login-story-copy {
  max-width: 680px;
  margin-top: auto;
}

.pb-login-eyebrow {
  margin: 0 0 12px;
  color: var(--pb-purple-light);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.pb-login-story-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.3rem, 6.7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.pb-login-intro {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--pb-muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.65;
}

.pb-login-match-card {
  width: min(620px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 50% -30%,
      rgba(117, 57, 244, 0.24),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      rgba(14, 29, 48, 0.9),
      rgba(7, 15, 28, 0.92)
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
}

.pb-login-match-card > header {
  min-height: 46px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--pb-line);
  color: var(--pb-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pb-login-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6b82;
  font-weight: 900;
}

.pb-login-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pb-red);
  box-shadow: 0 0 0 5px rgba(255, 63, 96, 0.11);
  animation: pb-login-pulse 1.6s infinite;
}

@keyframes pb-login-pulse {
  50% {
    opacity: 0.35;
  }
}

.pb-login-matchup {
  padding: 22px 18px 20px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.pb-login-team {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.pb-login-team-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background:
    linear-gradient(145deg, #ec2047, #182e8a 54%, #f5f7ff 55%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  font-size: 0.73rem;
  font-weight: 950;
}

.pb-login-team:last-child .pb-login-team-badge {
  background:
    linear-gradient(90deg, #191919 0 33%, #f0d225 33% 66%, #d82936 66%);
}

.pb-login-team strong {
  overflow: hidden;
  max-width: 145px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.pb-login-score {
  min-width: 92px;
  text-align: center;
}

.pb-login-score small {
  display: block;
  margin-bottom: 5px;
  color: #ff6680;
  font-size: 0.75rem;
  font-weight: 900;
}

.pb-login-score strong {
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.pb-login-match-card > footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pb-line);
  background: rgba(255, 255, 255, 0.018);
}

.pb-login-match-card > footer div {
  padding: 12px 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
}

.pb-login-match-card > footer div + div {
  border-left: 1px solid var(--pb-line);
}

.pb-login-match-card > footer span {
  color: var(--pb-muted);
  font-size: 0.7rem;
}

.pb-login-match-card > footer strong {
  font-size: 0.94rem;
}

.pb-login-match-card > footer .is-positive {
  color: var(--pb-green);
}

.pb-login-benefits {
  margin-top: 24px;
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}

.pb-login-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pb-muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.pb-login-benefits b {
  font-size: 1rem;
}

.pb-login-panel {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  align-items: center;
  border-left: 1px solid var(--pb-line);
  background:
    radial-gradient(
      circle at 85% 0,
      rgba(126, 55, 240, 0.16),
      transparent 35%
    ),
    rgba(4, 9, 17, 0.84);
  backdrop-filter: blur(28px);
}

.pb-login-panel-inner {
  width: min(470px, 100%);
  margin: auto;
  padding: clamp(27px, 4vw, 46px);
  border: 1px solid var(--pb-line);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(12, 25, 43, 0.94),
      rgba(6, 15, 27, 0.96)
    );
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.46),
    inset 0 1px rgba(255, 255, 255, 0.035);
}

.pb-login-mobile-brand {
  display: none;
}

.pb-login-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.pb-login-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--pb-muted);
}

.pb-login-messages {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.pb-login-message {
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 72, 101, 0.24);
  border-radius: 11px;
  background: rgba(255, 58, 89, 0.08);
  color: #ffafbb;
  font-size: 0.85rem;
  line-height: 1.45;
}

.pb-login-message--success {
  border-color: rgba(40, 211, 145, 0.23);
  background: rgba(40, 211, 145, 0.08);
  color: #9ff0ce;
}

.pb-login-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.pb-login-field {
  display: grid;
  gap: 8px;
}

.pb-login-field > span {
  color: #d3d9e4;
  font-size: 0.82rem;
  font-weight: 720;
}

.pb-login-field > div {
  min-height: 53px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pb-line-strong);
  border-radius: 12px;
  background: rgba(3, 9, 18, 0.64);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pb-login-field > div:focus-within {
  border-color: rgba(166, 92, 255, 0.72);
  background: rgba(10, 17, 31, 0.92);
  box-shadow: 0 0 0 4px rgba(121, 56, 244, 0.11);
}

.pb-login-field svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #727f95;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pb-login-field input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pb-text);
}

.pb-login-field input::placeholder {
  color: #526078;
}

.pb-login-password-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.pb-login-password-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pb-login-options {
  margin-top: -2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pb-muted);
  font-size: 0.78rem;
}

.pb-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pb-login-options input {
  width: 15px;
  height: 15px;
  accent-color: var(--pb-purple);
}

.pb-login-options a,
.pb-login-register a {
  color: #bd93ff;
  font-weight: 750;
  text-decoration: none;
}

.pb-login-options a:hover,
.pb-login-register a:hover {
  color: #d8beff;
}

.pb-login-submit {
  min-height: 54px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid rgba(184, 121, 255, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(
      135deg,
      var(--pb-purple-light),
      var(--pb-purple) 58%,
      var(--pb-purple-deep)
    );
  color: #fff;
  box-shadow:
    0 18px 38px rgba(84, 27, 184, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.16);
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.pb-login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 22px 44px rgba(84, 27, 184, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

.pb-login-submit:active {
  transform: translateY(1px);
}

.pb-login-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pb-login-register {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid var(--pb-line);
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--pb-muted);
  font-size: 0.82rem;
}

.pb-login-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #59677d;
  font-size: 0.67rem;
}

@media (max-width: 980px) {
  .pb-login-shell {
    grid-template-columns: 1fr;
  }

  .pb-login-story {
    display: none;
  }

  .pb-login-panel {
    min-height: 100svh;
    padding:
      max(18px, env(safe-area-inset-top))
      16px
      max(18px, env(safe-area-inset-bottom));
    border-left: 0;
    background:
      radial-gradient(
        circle at 50% -8%,
        rgba(126, 55, 240, 0.25),
        transparent 42%
      ),
      rgba(4, 9, 17, 0.78);
  }

  .pb-login-panel-inner {
    padding: 25px 20px;
  }

  .pb-login-mobile-brand {
    margin-bottom: 36px;
    display: block;
  }

  .pb-login-mobile-brand img {
    width: 176px;
  }
}

@media (max-width: 520px) {
  .pb-login-panel {
    align-items: stretch;
    padding: 0;
  }

  .pb-login-panel-inner {
    width: 100%;
    min-height: 100svh;
    padding:
      calc(27px + env(safe-area-inset-top))
      20px
      calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: none;
    background:
      radial-gradient(
        circle at 50% -12%,
        rgba(127, 58, 243, 0.2),
        transparent 35%
      ),
      linear-gradient(
        170deg,
        rgba(10, 22, 38, 0.96),
        rgba(4, 10, 19, 0.98)
      );
  }

  .pb-login-mobile-brand {
    margin-bottom: 32px;
  }

  .pb-login-heading h2 {
    font-size: 2rem;
  }

  .pb-login-options {
    align-items: flex-start;
  }

  .pb-login-footer {
    margin-top: 30px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

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


/* =========================================================
   POOLBAAS LOGIN — FINAL POLISH
   ========================================================= */

.pb-login-panel-inner {
  position: relative;
}

.pb-login-language {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(183, 199, 225, 0.12);
  border-radius: 10px;
  background: rgba(3, 9, 18, 0.58);
  backdrop-filter: blur(14px);
}

.pb-login-language a {
  min-width: 34px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #76859c;
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.pb-login-language a:hover {
  color: #ffffff;
}

.pb-login-language a.is-active {
  color: #ffffff;
  background: rgba(132, 69, 249, 0.88);
  box-shadow: 0 5px 15px rgba(84, 35, 180, 0.3);
}

.pb-login-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.pb-login-brand-kicker {
  padding-left: 21px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #8e9aae;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-login-story-copy {
  position: relative;
}

.pb-login-story-copy::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 0;
  width: 3px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    #a45aff,
    rgba(116, 56, 240, 0)
  );
}

.pb-login-story-copy h1 {
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.pb-login-intro {
  text-wrap: pretty;
}

.pb-login-match-card {
  position: relative;
  isolation: isolate;
}

.pb-login-match-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  opacity: 0.28;
  background:
    linear-gradient(
      115deg,
      transparent,
      rgba(155, 89, 255, 0.2),
      transparent 70%
    );
  pointer-events: none;
}

.pb-login-matchup {
  position: relative;
}

.pb-login-football {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.1);
  font-size: 4.4rem;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}

.pb-login-score {
  position: relative;
  z-index: 1;
}

.pb-login-score strong {
  display: inline-block;
  min-width: 98px;
  padding: 9px 12px;
  border: 1px solid rgba(158, 103, 255, 0.2);
  border-radius: 13px;
  background: rgba(5, 11, 21, 0.7);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 13px 30px rgba(0, 0, 0, 0.25);
}

.pb-login-heading {
  padding-right: 70px;
}

.pb-login-heading h2 {
  text-wrap: balance;
}

.pb-login-field > div {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.pb-login-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pb-login-submit::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -50%;
  left: -30%;
  width: 38%;
  height: 200%;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.16);
  transition: left 0.45s ease;
}

.pb-login-submit:hover::before {
  left: 110%;
}

.pb-login-message--error {
  border-left: 3px solid #ff526d;
}

@media (min-width: 981px) {
  .pb-login-story {
    justify-content: space-between;
  }

  .pb-login-story-copy {
    margin-top: clamp(80px, 12vh, 170px);
  }

  .pb-login-panel-inner {
    animation: pb-login-card-in 0.56s ease both;
  }

  @keyframes pb-login-card-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 980px) {
  .pb-login-language {
    top: calc(18px + env(safe-area-inset-top));
    right: 18px;
  }

  .pb-login-mobile-brand {
    padding-right: 78px;
  }

  .pb-login-heading {
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .pb-login-language {
    top: calc(20px + env(safe-area-inset-top));
    right: 18px;
  }

  .pb-login-mobile-brand img {
    width: min(170px, 52vw);
  }

  .pb-login-panel-inner {
    justify-content: flex-start;
    padding-top: calc(88px + env(safe-area-inset-top));
  }

  .pb-login-mobile-brand {
    margin-bottom: 45px;
  }

  .pb-login-heading h2 {
    max-width: 290px;
  }

  .pb-login-submit {
    min-height: 57px;
  }
}
