/* =========================================================
   BIVA V2
   TALENT CLIENT INVITATION
   PREMIUM / WORLD-CLASS UI
========================================================= */

.talent-invitation-shell {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 24px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #f4f7fb 0%,
      #edf3fb 100%
    );

  color: #0f172a;
}


/* =========================================================
   BACKGROUND
========================================================= */

.talent-invitation-background {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.talent-invitation-background::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(37, 99, 235, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 84% 16%,
      rgba(124, 196, 35, 0.08),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.75),
      rgba(241, 245, 249, 0.3)
    );
}

.talent-invitation-background::after {
  content: "";

  position: absolute;

  width: 760px;
  height: 760px;

  right: -280px;
  bottom: -360px;

  border-radius: 50%;

  border:
    1px solid rgba(37, 99, 235, 0.07);

  box-shadow:
    0 0 0 90px rgba(37, 99, 235, 0.025),
    0 0 0 180px rgba(37, 99, 235, 0.018);
}

.talent-invitation-glow-one,
.talent-invitation-glow-two {
  position: absolute;

  border-radius: 50%;

  filter: blur(14px);
}

.talent-invitation-glow-one {
  width: 420px;
  height: 420px;

  left: -170px;
  top: -120px;

  background:
    rgba(37, 99, 235, 0.11);
}

.talent-invitation-glow-two {
  width: 360px;
  height: 360px;

  right: -100px;
  top: 12%;

  background:
    rgba(132, 204, 22, 0.08);
}


/* =========================================================
   CONTAINER
========================================================= */

.talent-invitation-container {
  position: relative;
  z-index: 2;

  width: min(
    760px,
    100%
  );
}


/* =========================================================
   INVITATION CARD
========================================================= */

.talent-invitation-card {
  position: relative;

  width: 100%;

  padding: 36px;

  overflow: hidden;

  border:
    1px solid rgba(148, 163, 184, 0.2);

  border-radius: 28px;

  background:
    rgba(255, 255, 255, 0.94);

  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.05);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.talent-invitation-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #142f63 0%,
      #2563eb 55%,
      #7cc423 100%
    );
}

.talent-invitation-card::after {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  right: -120px;
  top: -130px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(37, 99, 235, 0.09),
      transparent 70%
    );

  pointer-events: none;
}


/* =========================================================
   BRAND
========================================================= */

.talent-invitation-brand {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 24px;
}

.talent-invitation-logo {
  width: 50px;
  height: 50px;

  flex: 0 0 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      #071a35,
      #123c78
    );

  color: #d9ff4f;

  font-size: 1.35rem;
  font-weight: 900;

  box-shadow:
    0 10px 24px rgba(15, 47, 99, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.talent-invitation-brand > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.talent-invitation-brand strong {
  color: #0b1730;

  font-size: 1rem;
  font-weight: 850;

  letter-spacing: -0.015em;
}

.talent-invitation-brand span {
  color: #64748b;

  font-size: 0.78rem;
  font-weight: 600;
}


/* =========================================================
   SECURITY BADGE
========================================================= */

.talent-invitation-badge {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 20px;

  padding:
    8px
    12px;

  border:
    1px solid #bfdbfe;

  border-radius: 999px;

  background: #eff6ff;

  color: #1d4ed8;

  font-size: 0.74rem;
  font-weight: 800;

  letter-spacing: 0.03em;
}

.talent-invitation-badge::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.12);
}


/* =========================================================
   TITLE
========================================================= */

.talent-invitation-card h1 {
  position: relative;
  z-index: 1;

  margin: 0;

  max-width: 650px;

  color: #0b1730;

  font-size: clamp(
    2rem,
    5vw,
    3.15rem
  );

  font-weight: 900;

  line-height: 1.08;

  letter-spacing: -0.045em;
}


/* =========================================================
   INTRO
========================================================= */

.talent-invitation-intro {
  position: relative;
  z-index: 1;

  max-width: 650px;

  margin:
    18px 0
    26px;

  color: #64748b;

  font-size: 0.98rem;
  font-weight: 500;

  line-height: 1.75;
}


/* =========================================================
   DETAILS GRID
========================================================= */

.talent-invitation-details {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 14px;

  margin-bottom: 22px;
}

.talent-invitation-details > div {
  min-width: 0;

  padding:
    16px
    17px;

  border:
    1px solid #e2e8f0;

  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      #fbfdff,
      #f8fafc
    );

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.talent-invitation-details > div:hover {
  border-color:
    #cbd5e1;

  transform:
    translateY(-1px);

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.04);
}

.talent-invitation-details span {
  display: block;

  margin-bottom: 7px;

  color: #64748b;

  font-size: 0.7rem;
  font-weight: 750;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}

.talent-invitation-details strong {
  display: block;

  color: #111827;

  font-size: 0.9rem;
  font-weight: 800;

  line-height: 1.4;

  word-break: break-word;
}


/* =========================================================
   SIGNED-IN ACCOUNT BOX
========================================================= */

.talent-invitation-account {
  margin-top: 4px;
  margin-bottom: 18px;

  padding:
    14px
    16px;

  border:
    1px solid #dbeafe;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #eff6ff,
      #f8fbff
    );
}

.talent-invitation-account span {
  display: block;

  margin-bottom: 5px;

  color: #64748b;

  font-size: 0.73rem;
  font-weight: 700;
}

.talent-invitation-account strong {
  display: block;

  color: #1d4ed8;

  font-size: 0.88rem;
  font-weight: 800;

  word-break: break-word;
}


/* =========================================================
   AUTH NOTE
========================================================= */

.talent-invitation-auth-note {
  margin-top: 4px;
  margin-bottom: 20px;

  padding:
    18px;

  border:
    1px solid #e2e8f0;

  border-radius: 15px;

  background: #f8fafc;
}

.talent-invitation-auth-note h2 {
  margin: 0;

  color: #0f172a;

  font-size: 1rem;
  font-weight: 850;
}

.talent-invitation-auth-note p {
  margin:
    7px 0
    0;

  color: #64748b;

  font-size: 0.86rem;

  line-height: 1.6;
}


/* =========================================================
   BUTTON BASE
========================================================= */

.talent-invitation-primary-btn,
.talent-invitation-secondary-btn,
.talent-invitation-error .module-btn {
  width: 100%;

  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0
    18px;

  border-radius: 14px;

  font-family: inherit;

  font-size: 0.9rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.talent-invitation-primary-btn {
  border:
    1px solid #153f87;

  background:
    linear-gradient(
      135deg,
      #0a2c5d 0%,
      #1555af 58%,
      #1d6cce 100%
    );

  color: #ffffff;

  box-shadow:
    0 13px 30px rgba(21, 85, 175, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.talent-invitation-primary-btn:hover {
  transform:
    translateY(-1px);

  box-shadow:
    0 18px 34px rgba(21, 85, 175, 0.28);
}

.talent-invitation-primary-btn:active {
  transform:
    translateY(0)
    scale(0.99);
}

.talent-invitation-primary-btn:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;

  box-shadow: none;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.talent-invitation-secondary-btn {
  margin-top: 11px;

  border:
    1px solid #cbd5e1;

  background: #ffffff;

  color: #334155;

  box-shadow: none;
}

.talent-invitation-secondary-btn:hover {
  border-color:
    #94a3b8;

  background:
    #f8fafc;

  color:
    #0f172a;
}


/* =========================================================
   SECURITY FOOTER
========================================================= */

.talent-invitation-security {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap:
    10px
    18px;

  margin-top: 24px;

  padding-top: 20px;

  border-top:
    1px solid #e8edf5;

  color: #64748b;

  font-size: 0.75rem;
  font-weight: 700;
}

.talent-invitation-security span {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  white-space: nowrap;
}


/* =========================================================
   LOADING STATE
========================================================= */

.talent-invitation-loading {
  width: 100%;

  padding:
    50px
    30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 16px;

  border:
    1px solid rgba(148, 163, 184, 0.18);

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.9);

  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.08);

  color: #64748b;

  text-align: center;
}

.talent-invitation-loading p {
  margin: 0;

  font-size: 0.88rem;
  font-weight: 650;
}

.talent-invitation-spinner {
  width: 42px;
  height: 42px;

  border:
    3px solid #dbeafe;

  border-top-color:
    #2563eb;

  border-radius: 50%;

  animation:
    talentInvitationSpin
    0.8s linear infinite;
}

@keyframes talentInvitationSpin {
  to {
    transform:
      rotate(360deg);
  }
}


/* =========================================================
   ERROR STATE
========================================================= */

.talent-invitation-error {
  width: 100%;

  padding:
    44px
    34px;

  border:
    1px solid rgba(239, 68, 68, 0.15);

  border-radius: 26px;

  background:
    rgba(255, 255, 255, 0.95);

  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.1);

  text-align: center;
}

.talent-invitation-icon {
  width: 58px;
  height: 58px;

  margin:
    0 auto
    18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background:
    #fff1f2;

  color:
    #dc2626;

  font-size:
    1.5rem;

  font-weight: 900;

  box-shadow:
    inset 0 0 0 1px #fecdd3;
}

.talent-invitation-error h1 {
  margin: 0;

  color: #0f172a;

  font-size: 1.7rem;

  letter-spacing: -0.03em;
}

.talent-invitation-error p {
  max-width: 520px;

  margin:
    12px auto
    24px;

  color: #64748b;

  font-size: 0.92rem;

  line-height: 1.65;
}

.talent-invitation-error .module-btn {
  max-width: 300px;

  border:
    1px solid #163d84;

  background:
    linear-gradient(
      135deg,
      #0a2c5d,
      #1555af
    );

  color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

  .talent-invitation-shell {
    padding:
      34px
      18px;
  }

  .talent-invitation-card {
    padding:
      30px
      26px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .talent-invitation-shell {
    align-items: flex-start;

    padding:
      22px
      12px;
  }

  .talent-invitation-card {
    padding:
      26px
      18px;

    border-radius: 22px;
  }

  .talent-invitation-logo {
    width: 44px;
    height: 44px;

    flex-basis: 44px;

    border-radius: 13px;
  }

  .talent-invitation-card h1 {
    font-size: 2rem;
  }

  .talent-invitation-intro {
    font-size: 0.91rem;

    line-height: 1.65;
  }

  .talent-invitation-details {
    grid-template-columns: 1fr;
  }

  .talent-invitation-security {
    flex-direction: column;

    align-items: flex-start;

    padding-left: 4px;
  }

  .talent-invitation-loading,
  .talent-invitation-error {
    padding:
      34px
      20px;

    border-radius: 22px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

  .talent-invitation-shell {
    padding:
      14px
      8px;
  }

  .talent-invitation-card {
    padding:
      22px
      15px;
  }

  .talent-invitation-card h1 {
    font-size: 1.75rem;
  }

  .talent-invitation-details > div {
    padding:
      14px;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.talent-invitation-primary-btn:focus-visible,
.talent-invitation-secondary-btn:focus-visible,
.talent-invitation-error .module-btn:focus-visible {
  outline:
    3px solid rgba(37, 99, 235, 0.28);

  outline-offset:
    3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .talent-invitation-spinner {
    animation: none;
  }

  .talent-invitation-primary-btn,
  .talent-invitation-secondary-btn,
  .talent-invitation-details > div {
    transition: none;
  }

}