/* Unified login / register — full site content width (matches header) */
.pb-auth-page {
  min-height: calc(100vh - 120px);
  padding: 28px 0 48px;
  background: linear-gradient(180deg, #f7f7f7 0%, #fff 40%);
  box-sizing: border-box;
  width: 100%;
}

/*
 * Outer shell = same track as .top-nav-inner
 * (max-width + horizontal padding). Do NOT put grid columns here —
 * a single child would only occupy the first column and leave a
 * blank half-page (the bug in the previous screenshot).
 */
.pb-auth-shell {
  max-width: var(--header-max-width, 1280px);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
  display: block;
}

.pb-auth-shell-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  min-height: 640px;
}

.pb-auth-panel {
  position: relative;
  padding: 44px 40px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(22, 33, 62, 0.82) 55%, rgba(255, 56, 92, 0.55) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1400&q=70') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  min-width: 0;
}

.pb-auth-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}

.pb-auth-panel h1 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}

.pb-auth-panel .lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
}

.pb-auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.pb-auth-benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(6px);
}

.pb-auth-benefits .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.pb-auth-benefits strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: #fff;
}

.pb-auth-benefits span {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.pb-auth-panel-foot {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.pb-auth-form-col {
  padding: 36px 48px 44px;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #222;
  min-width: 0;
}

.pb-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f2f2f2;
  border-radius: 999px;
  margin-bottom: 22px;
  max-width: 100%;
}

.pb-auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #6a6a6a;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s, color .15s, box-shadow .15s;
}

.pb-auth-tab.is-active {
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pb-auth-panel-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #222;
}

.pb-auth-panel-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6a6a6a;
  line-height: 1.45;
}

.pb-auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.pb-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #222;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}

.pb-auth-social-btn:hover {
  border-color: #ccc;
  background: #fafafa;
  color: #222;
  text-decoration: none;
}

.pb-auth-social-btn .pb-soc-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.pb-auth-social-btn.is-google .pb-soc-icon { color: #ea4335; }
.pb-auth-social-btn.is-facebook .pb-soc-icon { color: #1877f2; }
.pb-auth-social-btn.is-linkedin .pb-soc-icon { color: #0a66c2; }
.pb-auth-social-btn.is-x .pb-soc-icon { color: #000; }
.pb-auth-social-btn.is-apple .pb-soc-icon { color: #111; }

.pb-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: #929292;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pb-auth-divider::before,
.pb-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ebebeb;
}

.pb-auth-form-col .alert {
  margin-bottom: 14px;
  border-radius: 12px;
}

.pb-auth-pane[hidden] {
  display: none !important;
}

.pb-auth-form-col .pb-field {
  margin-bottom: 14px;
  position: relative;
}

.pb-auth-form-col label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.pb-auth-form-col .text-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  min-height: 48px;
  background: #fafafa;
  color: #222;
}

.pb-auth-form-col .text-input:focus {
  outline: none;
  border-color: #ff385c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
}

.pb-auth-form-col .button-toggle-password {
  position: absolute;
  right: 10px;
  top: 36px;
  border: 0;
  background: transparent;
  color: #929292;
  cursor: pointer;
  padding: 6px;
}

.pb-auth-form-col .button-primary {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: #ff385c;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
}

.pb-auth-form-col .button-primary:hover {
  background: #e00b41;
}

.pb-auth-form-col .pb-auth-links {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}

.pb-auth-form-col .pb-auth-links a {
  color: #ff385c;
  font-weight: 600;
  text-decoration: none;
}

.pb-auth-form-col .pb-radio-row {
  display: flex;
  gap: 16px;
}

.pb-auth-form-col .pb-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.pb-auth-form-col .text-danger {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
}

.pb-auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 1180px) {
  .pb-auth-shell {
    padding: 0 18px;
  }

  .pb-auth-form-col {
    padding: 32px 32px 36px;
  }
}

@media (max-width: 900px) {
  .pb-auth-shell {
    padding: 0 16px;
  }

  .pb-auth-shell-inner {
    grid-template-columns: 1fr;
  }

  .pb-auth-panel {
    min-height: auto;
    padding: 28px 24px;
  }

  .pb-auth-benefits {
    display: none;
  }

  .pb-auth-form-col {
    padding: 24px 20px 32px;
  }

  .pb-auth-social {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pb-auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .pb-auth-page {
    padding: 12px 0 32px;
  }

  .pb-auth-shell {
    padding: 0 12px;
  }
}
