/* ==========================================================================
   Board Talents — Auth UI
   X-inspired near-black shell, sapphire / sky accent, BT branding
   ========================================================================== */

:root {
  --pt-blue: #1d9bf0;
  --pt-blue-deep: #1a8cd8;
  --pt-blue-soft: rgba(29, 155, 240, 0.16);
  --pt-sapphire: #1d6feb;
  --pt-ink: #e7e9ea;
  --pt-ink-soft: #71767a;
  --pt-line: #2f3336;
  --pt-surface: #000000;
  --pt-surface-2: #16181c;
  --pt-mist: #000000;
  --pt-success: #00ba7c;
  --pt-danger: #f4212e;
  --pt-radius: 16px;
  --pt-shadow: none;
  --font-display: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  color-scheme: dark;
}

body.pt-auth-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--pt-ink);
  background: #000;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pt-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #8ecdf8;
  text-decoration: underline;
}

.pt-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #000;
}

/* -------------------------------------------------------------------------- */
/* Brand panel                                                                */
/* -------------------------------------------------------------------------- */

.pt-auth__brand {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #e7e9ea;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(29, 155, 240, 0.16), transparent 58%),
    radial-gradient(700px 480px at 90% 88%, rgba(29, 111, 235, 0.12), transparent 52%),
    #000;
}

.pt-auth__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 28% 38%, #000 18%, transparent 72%);
  pointer-events: none;
}

.pt-auth__brand::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -160px;
  border-radius: 50%;
  border: 1px solid rgba(29, 155, 240, 0.18);
  box-shadow: inset 0 0 0 48px rgba(29, 155, 240, 0.04);
  pointer-events: none;
}

.pt-auth__brand-top,
.pt-auth__brand-copy,
.pt-auth__brand-foot {
  position: relative;
  z-index: 1;
}

.pt-auth__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #e7e9ea;
  text-decoration: none;
}

.pt-auth__logo:hover {
  color: #e7e9ea;
  text-decoration: none;
}

.pt-auth__logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--pt-line);
}

.pt-auth__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pt-auth__brand-copy h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #e7e9ea;
}

.pt-auth__brand-copy p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #e7e9ea;
  font-weight: 500;
}

.pt-auth__stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
}

.pt-auth__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pt-auth__stat span {
  font-size: 0.85rem;
  color: var(--pt-ink-soft);
}

.pt-auth__brand-foot {
  font-size: 0.85rem;
  color: var(--pt-ink-soft);
}

/* -------------------------------------------------------------------------- */
/* Form panel                                                                 */
/* -------------------------------------------------------------------------- */

.pt-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  background: #000;
  border-left: 1px solid var(--pt-line);
}

.pt-auth__form-wrap {
  width: min(100%, 420px);
}

.pt-auth__form-wrap--wide {
  width: min(100%, 560px);
}

.pt-auth__eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-blue);
}

.pt-auth__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e7e9ea;
}

.pt-auth__subtitle {
  margin: 0 0 28px;
  color: var(--pt-ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.pt-auth__alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pt-auth__alert--danger {
  background: rgba(244, 33, 46, 0.12);
  color: #ff7a82;
  border: 1px solid rgba(244, 33, 46, 0.35);
}

.pt-auth__alert--success {
  background: rgba(0, 186, 124, 0.12);
  color: #6ef2c2;
  border: 1px solid rgba(0, 186, 124, 0.35);
}

.pt-field {
  margin-bottom: 16px;
}

.pt-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #e7e9ea;
}

.pt-field input,
.pt-field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: #000;
  color: #e7e9ea;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pt-field input:focus,
.pt-field select:focus {
  outline: none;
  border-color: var(--pt-blue);
  box-shadow: 0 0 0 1px var(--pt-blue);
}

.pt-field input::placeholder {
  color: #71767a;
}

.pt-field input[type="date"] {
  color-scheme: dark;
}

.pt-field--otp input {
  height: 64px;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  font-variant-numeric: tabular-nums;
  border-radius: 16px;
}

.pt-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pt-field-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.pt-captcha {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 44px;
  align-items: stretch;
  height: 52px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: #000;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pt-captcha:focus-within {
  border-color: var(--pt-blue);
  box-shadow: 0 0 0 1px var(--pt-blue);
}

.pt-captcha img {
  display: block;
  width: 120px;
  height: 50px;
  margin: 1px;
  object-fit: contain;
  background: #16181c;
  border-right: 1px solid var(--pt-line);
}

.pt-captcha input {
  height: 52px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 10px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  min-width: 0;
  background: transparent !important;
}

.pt-captcha__refresh {
  width: 44px;
  height: 52px;
  border: 0;
  border-left: 1px solid var(--pt-line);
  border-radius: 0;
  background: #16181c;
  color: var(--pt-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.pt-captcha__refresh:hover {
  background: var(--pt-blue-soft);
  color: #8ecdf8;
}

.pt-captcha__refresh svg {
  width: 16px;
  height: 16px;
}

.pt-password {
  position: relative;
}

.pt-password input {
  padding-right: 48px;
}

.pt-password__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--pt-ink-soft);
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  line-height: 0;
}

.pt-password__toggle:hover {
  background: var(--pt-blue-soft);
  color: var(--pt-blue);
}

.pt-password__toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.pt-password__toggle .pt-eye-off {
  display: none;
}

.pt-password__toggle.is-visible .pt-eye {
  display: none;
}

.pt-password__toggle.is-visible .pt-eye-off {
  display: block;
}

/* Select2 — match auth fields */
.pt-field .select2-container {
  width: 100% !important;
}

.pt-field .select2-container--default .select2-selection--single {
  height: 52px;
  padding: 0 10px 0 10px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: #000;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pt-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px;
  padding-left: 8px;
  color: #e7e9ea;
  font-size: 0.95rem;
}

.pt-field .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #71767a;
}

.pt-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px;
  right: 10px;
}

.pt-field .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #71767a transparent transparent transparent;
}

.pt-field .select2-container--default.select2-container--focus .select2-selection--single,
.pt-field .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--pt-blue);
  box-shadow: 0 0 0 1px var(--pt-blue);
  outline: none;
}

.select2-dropdown {
  border: 1px solid var(--pt-line) !important;
  border-radius: 16px;
  overflow: hidden;
  background: #16181c !important;
  color: #e7e9ea;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  font-family: var(--font-body);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  outline: none;
  background: #000;
  color: #e7e9ea;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--pt-blue);
}

.select2-container--default .select2-results__option {
  background: #16181c;
  color: #e7e9ea;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--pt-blue) !important;
  color: #fff;
}

.select2-container--default .select2-results__option--selected {
  background: #202327;
}

.pt-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 22px;
  font-size: 0.9rem;
}

.pt-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pt-ink-soft);
  cursor: pointer;
  user-select: none;
}

.pt-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--pt-blue);
}

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--pt-blue);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, filter 0.15s ease;
}

.pt-btn:hover {
  background: var(--pt-blue-deep);
  filter: none;
  transform: none;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
}

.pt-btn:active {
  transform: none;
  filter: brightness(0.92);
}

.pt-auth__links {
  margin-top: 22px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--pt-ink-soft);
}

.pt-auth__links p {
  margin: 0 0 8px;
}

.pt-auth__links a {
  font-weight: 700;
}

.pt-auth__mobile-logo {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-decoration: none;
  color: #e7e9ea;
}

.pt-auth__mobile-logo:hover {
  text-decoration: none;
  color: #e7e9ea;
}

.pt-auth__mobile-logo img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.pt-auth__mobile-logo span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.pt-auth__message-box {
  padding: 22px;
  border-radius: 16px;
  background: #16181c;
  border: 1px solid var(--pt-line);
}

.pt-auth__message-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #e7e9ea;
}

.pt-auth__message-box p {
  margin: 0 0 10px;
  color: var(--pt-ink-soft);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .pt-auth {
    grid-template-columns: 1fr;
  }

  .pt-auth__brand {
    min-height: auto;
    padding: 24px 22px 28px;
    border-bottom: 1px solid var(--pt-line);
  }

  .pt-auth__panel {
    border-left: 0;
  }

  .pt-auth__brand-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .pt-auth__stats {
    gap: 18px;
  }

  .pt-auth__brand-foot {
    display: none;
  }

  .pt-auth__mobile-logo {
    display: inline-flex;
  }

  .pt-auth__brand .pt-auth__logo {
    display: none;
  }
}

@media (max-width: 640px) {
  .pt-field-row,
  .pt-field-row--3 {
    grid-template-columns: 1fr;
  }

  .pt-auth__panel {
    padding: 24px 18px 40px;
  }

  .pt-auth__brand-copy p {
    font-size: 1rem;
  }

  .pt-captcha {
    grid-template-columns: 110px minmax(0, 1fr) 44px;
    border-radius: 16px;
  }
}
