/*
 * POOLBAAS AUTH CURRENT V3
 * Gedeelde actuele vormgeving voor login en wachtwoordherstel.
 */

:root {
  --pba-bg: #080b18;
  --pba-bg-deep: #050711;
  --pba-surface: rgba(19, 22, 43, 0.96);
  --pba-surface-soft: rgba(255, 255, 255, 0.055);
  --pba-border: rgba(255, 255, 255, 0.1);
  --pba-border-strong: rgba(150, 104, 255, 0.34);
  --pba-purple: #7845f5;
  --pba-purple-light: #a37cff;
  --pba-purple-deep: #4c24b8;
  --pba-text: #ffffff;
  --pba-muted: #aeb4c8;
  --pba-danger: #ff657d;
  --pba-success: #32d899;
  --pba-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

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

body.pb-login-page {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--pba-text);
  background:
    radial-gradient(
      circle at 12% 4%,
      rgba(120, 69, 245, 0.23),
      transparent 31rem
    ),
    radial-gradient(
      circle at 92% 84%,
      rgba(76, 36, 184, 0.18),
      transparent 29rem
    ),
    linear-gradient(
      145deg,
      #0c1021 0%,
      #080b18 48%,
      #050711 100%
    );
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.pb-login-page::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.pb-login-stadium {
  display: none !important;
}

.pb-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(300px, 0.88fr)
    minmax(390px, 0.72fr);
  width: min(1160px, calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  padding:
    max(34px, env(safe-area-inset-top))
    0
    max(34px, env(safe-area-inset-bottom));
  gap: 22px;
  align-items: stretch;
}

.pb-login-story,
.pb-login-panel {
  border: 1px solid var(--pba-border);
  border-radius: 30px;
  box-shadow: var(--pba-shadow);
}

.pb-login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(164, 124, 255, 0.24),
      transparent 22rem
    ),
    linear-gradient(
      145deg,
      rgba(91, 47, 197, 0.96),
      rgba(42, 23, 101, 0.97)
    );
}

.pb-login-story::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -145px;
  width: 380px;
  height: 380px;
  border: 56px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.pb-login-brand,
.pb-login-story-copy,
.pb-login-match-card,
.pb-reset-security-card,
.pb-login-benefits {
  position: relative;
  z-index: 1;
}

.pb-login-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.pb-login-brand img {
  display: block;
  width: min(270px, 72%);
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}

.pb-login-brand-kicker,
.pb-login-eyebrow,
.pb-reset-security-card__kicker {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pb-login-story-copy {
  margin-top: auto;
  padding-top: 48px;
}

.pb-login-story-copy h1 {
  max-width: 650px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.pb-login-intro {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 1rem;
  line-height: 1.7;
}

.pb-login-panel {
  display: flex;
  min-width: 0;
  background:
    linear-gradient(
      155deg,
      rgba(24, 27, 51, 0.98),
      rgba(12, 15, 31, 0.985)
    );
}

.pb-login-panel-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  margin: auto;
  padding: clamp(30px, 4vw, 56px);
}

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

.pb-login-language {
  align-self: flex-end;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 34px;
  padding: 4px;
  border: 1px solid var(--pba-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.pb-login-language a {
  display: grid;
  min-width: 41px;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--pba-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 850;
}

.pb-login-language a.is-active {
  color: #fff;
  background: var(--pba-purple);
}

.pb-login-heading {
  margin-bottom: 28px;
}

.pb-login-heading h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.04;
  font-weight: 930;
  letter-spacing: -0.04em;
}

.pb-login-heading > p:last-child {
  margin: 0;
  color: var(--pba-muted);
  line-height: 1.55;
}

.pb-login-form,
.pb-reset-form {
  display: grid;
  gap: 17px;
}

.pb-login-field,
.pb-reset-field {
  display: grid;
  gap: 8px;
  color: #eef0f9;
  font-size: 0.82rem;
  font-weight: 760;
}

.pb-login-field input,
.pb-reset-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--pba-border);
  border-radius: 14px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.pb-login-field input::placeholder,
.pb-reset-field input::placeholder {
  color: #777f95;
}

.pb-login-field input:hover,
.pb-reset-field input:hover {
  border-color: rgba(255, 255, 255, 0.19);
}

.pb-login-field input:focus,
.pb-reset-field input:focus {
  border-color: var(--pba-purple-light);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(120, 69, 245, 0.18);
}

.pb-login-submit,
.pb-reset-submit,
.pb-reset-primary-link {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--pba-purple),
      var(--pba-purple-deep)
    );
  box-shadow: 0 13px 30px rgba(93, 49, 214, 0.3);
  text-decoration: none;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 150ms ease,
    filter 150ms ease,
    box-shadow 150ms ease;
}

.pb-login-submit:hover,
.pb-reset-submit:hover,
.pb-reset-primary-link:hover {
  filter: brightness(1.09);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(93, 49, 214, 0.4);
}

.pb-login-submit:active,
.pb-reset-submit:active,
.pb-reset-primary-link:active {
  transform: translateY(0);
}

.pb-login-actions,
.pb-reset-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pb-login-actions a,
.pb-reset-actions a {
  color: #bba5ff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 760;
}

.pb-login-actions a:hover,
.pb-reset-actions a:hover {
  color: #fff;
  text-decoration: underline;
}

.pb-login-messages {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.pb-login-message {
  padding: 13px 15px;
  border: 1px solid var(--pba-border);
  border-radius: 13px;
  color: #e9ecf6;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pb-login-message--error,
.pb-login-message--danger {
  border-color: rgba(255, 101, 125, 0.32);
  color: #ffdce2;
  background: rgba(255, 101, 125, 0.1);
}

.pb-login-message--success {
  border-color: rgba(50, 216, 153, 0.3);
  color: #d4ffef;
  background: rgba(50, 216, 153, 0.09);
}

.pb-reset-privacy-note,
.pb-reset-state {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--pba-border);
  border-radius: 14px;
  color: var(--pba-muted);
  background: var(--pba-surface-soft);
}

.pb-reset-privacy-note span,
.pb-reset-state__icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pba-purple);
  font-weight: 900;
}

.pb-reset-privacy-note p,
.pb-reset-state p {
  margin: 1px 0 0;
  line-height: 1.5;
}

.pb-reset-state h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1rem;
}

.pb-reset-state--success {
  border-color: rgba(50, 216, 153, 0.28);
  background: rgba(50, 216, 153, 0.08);
}

.pb-reset-state--success .pb-reset-state__icon {
  background: var(--pba-success);
}

.pb-reset-state--error {
  border-color: rgba(255, 101, 125, 0.3);
  background: rgba(255, 101, 125, 0.08);
}

.pb-reset-state--error .pb-reset-state__icon {
  background: var(--pba-danger);
}

.pb-reset-security-note {
  margin: 19px 0 0;
  color: #737c91;
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}

.pb-reset-panel-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 34px;
  color: #747c91;
  text-align: center;
}

.pb-reset-panel-footer span {
  color: #a794dc;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.pb-auth-public-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 18px;
  width: min(1160px, calc(100% - 40px));
  margin: -18px auto 0;
  padding:
    0
    0
    max(24px, env(safe-area-inset-bottom));
  color: #7e879d;
  font-size: 0.76rem;
}

.pb-auth-public-footer a {
  color: #9c8bcc;
  text-decoration: none;
}

.pb-auth-public-footer a:hover {
  color: #fff;
}

.pb-login-match-card,
.pb-reset-security-card {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(8, 10, 25, 0.26);
  backdrop-filter: blur(14px);
}

.pb-login-match-card {
  overflow: hidden;
}

.pb-login-match-card header,
.pb-login-match-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pb-login-match-card header {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 750;
}

.pb-login-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pba-success);
  font-weight: 900;
}

.pb-login-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pb-login-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 17px;
  align-items: center;
  padding: 19px 16px;
}

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

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

.pb-login-team-badge {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.68rem;
  font-weight: 900;
}

.pb-login-team strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-login-score {
  text-align: center;
}

.pb-login-score small {
  display: block;
  margin-bottom: 4px;
  color: var(--pba-success);
  font-size: 0.66rem;
  font-weight: 850;
}

.pb-login-score strong {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.pb-login-match-card footer {
  gap: 8px;
  padding: 13px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-login-match-card footer div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.pb-login-match-card footer span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.6rem;
}

.pb-login-match-card footer strong {
  color: #fff;
  font-size: 0.82rem;
}

.pb-login-match-card .is-positive {
  color: var(--pba-success);
}

.pb-reset-security-card {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 18px;
}

.pb-reset-security-card__icon {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.pb-reset-security-card h2 {
  margin: 4px 0 5px;
  color: #fff;
  font-size: 1rem;
}

.pb-reset-security-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.79rem;
  line-height: 1.5;
}

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

.pb-login-benefits > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(8, 10, 25, 0.2);
  font-size: 0.7rem;
  font-weight: 730;
}

.pb-login-benefits b {
  width: 7px;
  height: 7px;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0;
}

.pb-login-benefits > span:first-child b {
  background: var(--pba-success);
}

@media (max-width: 820px) {
  body.pb-login-page {
    background:
      radial-gradient(
        circle at 50% -10%,
        rgba(120, 69, 245, 0.25),
        transparent 27rem
      ),
      var(--pba-bg-deep);
  }

  .pb-login-shell {
    display: block;
    width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 0;
  }

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

  .pb-login-panel {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background:
      linear-gradient(
        180deg,
        rgba(23, 19, 51, 0.97),
        rgba(7, 9, 20, 0.99) 42%
      );
  }

  .pb-login-panel-inner {
    max-width: 520px;
    min-height: 100svh;
    padding:
      max(24px, env(safe-area-inset-top))
      22px
      max(26px, env(safe-area-inset-bottom));
  }

  .pb-login-mobile-brand {
    display: block;
    margin: 28px auto 45px;
    text-align: center;
  }

  .pb-login-mobile-brand img {
    width: min(220px, 70vw);
    max-height: 68px;
    object-fit: contain;
  }

  .pb-login-language {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    margin: 0;
  }

  .pb-login-heading {
    margin-bottom: 25px;
  }

  .pb-login-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .pb-auth-public-footer {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 16px;
    background: var(--pba-bg-deep);
  }
}

@media (max-width: 420px) {
  .pb-login-panel-inner {
    padding-right: 17px;
    padding-left: 17px;
  }

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

  .pb-login-field input,
  .pb-reset-field input {
    min-height: 56px;
    font-size: 16px;
  }

  .pb-login-submit,
  .pb-reset-submit,
  .pb-reset-primary-link {
    min-height: 56px;
  }

  .pb-reset-panel-footer small {
    font-size: 0.7rem;
    line-height: 1.45;
  }
}

@media (max-height: 720px) and (max-width: 820px) {
  .pb-login-mobile-brand {
    margin-top: 14px;
    margin-bottom: 24px;
  }

  .pb-login-heading {
    margin-bottom: 18px;
  }

  .pb-reset-panel-footer {
    padding-top: 22px;
  }
}

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