/* ============================================
   Nordic Bridge Talent — Authentication
   ============================================ */

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background:
    linear-gradient(
      135deg,
      #f4f7fb 0%,
      #eef3f8 50%,
      #e7eef6 100%
    );

  color: #142b47;
}


/* ============================================
   PAGE
   ============================================ */

.auth-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;
}


/* ============================================
   CARD
   ============================================ */

.auth-card {
  width: 100%;
  max-width: 460px;

  background: #ffffff;

  border: 1px solid #dfe6ee;
  border-radius: 18px;

  padding: 42px;

  box-shadow:
    0 18px 50px rgba(20, 43, 71, 0.10);
}


/* ============================================
   BRAND
   ============================================ */

.auth-brand {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 38px;
}

.brand-mark {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #142f50;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-brand h1 {
  margin: 0;

  font-size: 18px;
  line-height: 1.2;

  font-weight: 700;

  color: #142b47;
}

.auth-brand p {
  margin: 4px 0 0;

  font-size: 13px;

  color: #718096;
}


/* ============================================
   HEADING
   ============================================ */

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h2 {
  margin: 0 0 8px;

  font-size: 30px;
  line-height: 1.2;

  font-weight: 700;

  color: #142b47;
}

.auth-heading p {
  margin: 0;

  font-size: 15px;
  line-height: 1.5;

  color: #66778c;
}


/* ============================================
   FORM
   ============================================ */

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 600;

  color: #263b54;
}


/* ============================================
   LABEL ROW
   ============================================ */

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 8px;
}

.label-row label {
  margin-bottom: 0;
}

.label-row a {
  font-size: 13px;

  color: #315f8f;

  text-decoration: none;
}

.label-row a:hover {
  text-decoration: underline;
}


/* ============================================
   INPUTS
   ============================================ */

.form-group input {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid #cfd9e4;
  border-radius: 9px;

  background: #ffffff;

  color: #142b47;

  font-size: 15px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: #9aa8b8;
}

.form-group input:focus {
  border-color: #4f7398;

  box-shadow:
    0 0 0 3px rgba(79, 115, 152, 0.12);
}


/* ============================================
   BUTTON
   ============================================ */

.auth-button {
  width: 100%;

  margin-top: 4px;

  padding: 14px 18px;

  border: 0;
  border-radius: 9px;

  background: #142f50;

  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.auth-button:hover {
  background: #1c4169;

  box-shadow:
    0 7px 18px rgba(20, 47, 80, 0.18);
}

.auth-button:active {
  transform: translateY(1px);
}

.auth-button:disabled {
  opacity: 0.65;

  cursor: not-allowed;

  box-shadow: none;
}


/* ============================================
   MESSAGES
   ============================================ */

.auth-message {
  min-height: 0;

  margin: 0 0 16px;

  font-size: 14px;
  line-height: 1.5;
}

.auth-message:empty {
  display: none;
}

.auth-message.error {
  padding: 12px 14px;

  border-radius: 8px;

  background: #fff4f4;

  border: 1px solid #f0cccc;

  color: #a33a3a;
}

.auth-message.success {
  padding: 12px 14px;

  border-radius: 8px;

  background: #f1f8f4;

  border: 1px solid #cce6d7;

  color: #28633e;
}


/* ============================================
   FOOTER
   ============================================ */

.auth-footer {
  margin-top: 26px;

  text-align: center;
}

.auth-footer p {
  margin: 0;

  font-size: 14px;

  color: #718096;
}

.auth-footer a {
  color: #315f8f;

  font-weight: 600;

  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}


/* ============================================
   LEGAL
   ============================================ */

.auth-legal {
  margin-top: 28px;

  padding-top: 20px;

  border-top: 1px solid #e6ebf1;

  text-align: center;
}

.auth-legal p {
  margin: 0;

  font-size: 11px;
  line-height: 1.6;

  color: #8a98a8;
}

.auth-legal a {
  color: #63788f;

  text-decoration: underline;
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 520px) {

  .auth-page {
    padding: 20px 14px;
  }

  .auth-card {
    padding: 30px 24px;

    border-radius: 15px;
  }

  .auth-heading h2 {
    font-size: 26px;
  }

  .auth-brand {
    margin-bottom: 30px;
  }
}
/* ============================================
   ACCOUNT PAGE
   ============================================ */

.account-card {
    max-width: 520px;
}

.account-info {
    margin: 26px 0;

    border: 1px solid #e1e7ee;
    border-radius: 12px;

    overflow: hidden;
}

.account-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 16px;

    border-bottom: 1px solid #e8edf2;

    font-size: 14px;
}

.account-info-row:last-child {
    border-bottom: 0;
}

.account-info-row span {
    color: #718096;
}

.account-info-row strong {
    color: #142b47;
    font-weight: 650;
}

.account-status {
    margin-bottom: 18px;

    padding: 13px 15px;

    border: 1px solid #dfe6ee;
    border-radius: 9px;

    background: #f7f9fb;

    color: #53677d;

    font-size: 14px;
    line-height: 1.5;
}

.account-status.success {
    background: #f1f8f4;

    border-color: #cce6d7;

    color: #28633e;
}

.secondary-button {
    width: 100%;

    margin-top: 12px;

    padding: 13px 18px;

    border: 1px solid #cfd9e4;
    border-radius: 9px;

    background: #ffffff;

    color: #31506f;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.secondary-button:hover {
    background: #f5f8fb;
    border-color: #b8c7d6;
}

.secondary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   SIGNUP PAGE
   ============================================ */

.password-hint {
    margin-top: 7px;

    font-size: 12px;

    color: #8291a1;
}

.consent-group {
    margin: 20px 0 22px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    font-size: 12px;
    line-height: 1.55;

    color: #718096;

    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;

    flex: 0 0 auto;

    margin-top: 2px;

    cursor: pointer;
}

.checkbox-label a {
    color: #315f8f;

    text-decoration: underline;
}

/* ============================================
   PLANS PAGE
   ============================================ */

.plans-page {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;
}

.plans-brand {
    max-width: 520px;

    margin: 0 auto 42px;
}

.plans-heading {
    text-align: center;

    max-width: 720px;

    margin: 0 auto 42px;
}

.plans-heading h2 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.2;

    color: #142b47;
}

.plans-heading p {
    margin: 0;

    font-size: 16px;
    line-height: 1.6;

    color: #66778c;
}


/* ============================================
   PLAN GRID
   ============================================ */

.plans-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    align-items: stretch;
}


/* ============================================
   PLAN CARD
   ============================================ */

.plan-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #dfe6ee;

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(20, 43, 71, 0.07);
}

.plan-card.plan-featured {
    border-color: #315f8f;

    box-shadow:
        0 14px 36px rgba(20, 43, 71, 0.12);
}

.plan-card.current-plan {
    border-color: #315f8f;
}


/* ============================================
   POPULAR
   ============================================ */

.plan-popular {
    position: absolute;

    top: -12px;
    left: 50%;

    transform: translateX(-50%);

    padding: 5px 13px;

    border-radius: 20px;

    background: #315f8f;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}


/* ============================================
   PLAN HEADER
   ============================================ */

.plan-label {
    display: block;

    margin-bottom: 9px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    color: #7b8b9d;
}

.plan-header h3 {
    margin: 0 0 10px;

    font-size: 25px;

    color: #142b47;
}

.plan-description {
    margin: 0;

    min-height: 72px;

    font-size: 14px;

    line-height: 1.55;

    color: #718096;
}


/* ============================================
   PRICE
   ============================================ */

.plan-price {
    display: flex;
    align-items: baseline;

    gap: 5px;

    margin: 26px 0 22px;
}

.plan-price strong {
    font-size: 32px;

    color: #142b47;
}

.plan-price span {
    font-size: 13px;

    color: #8795a5;
}


/* ============================================
   FEATURES
   ============================================ */

.plan-features {
    list-style: none;

    margin: 0 0 28px;
    padding: 0;

    flex: 1;
}

.plan-features li {
    padding: 9px 0;

    border-bottom: 1px solid #edf1f5;

    font-size: 14px;

    color: #43576c;
}

.plan-features li:last-child {
    border-bottom: 0;
}

.plan-features .feature-disabled {
    color: #9aa6b3;
}


/* ============================================
   PLAN BUTTON
   ============================================ */

.plan-button {
    width: 100%;

    padding: 13px 16px;

    border: 0;

    border-radius: 9px;

    background: #142f50;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.plan-button:hover {
    background: #1c4169;

    box-shadow:
        0 7px 18px rgba(20, 47, 80, 0.16);
}

.plan-button:disabled {
    background: #e8edf2;

    color: #687b8f;

    cursor: default;

    box-shadow: none;
}

.secondary-plan-button {
    border: 1px solid #cfd9e4;

    background: #ffffff;

    color: #31506f;
}

.secondary-plan-button:hover {
    background: #f5f8fb;

    color: #31506f;

    box-shadow: none;
}


/* ============================================
   NOTE
   ============================================ */

.plans-note {
    margin-top: 28px;

    text-align: center;
}

.plans-note p {
    margin: 0;

    font-size: 12px;

    color: #8996a5;
}


/* ============================================
   FOOTER
   ============================================ */

.plans-footer {
    margin-top: 24px;

    text-align: center;
}

.plans-footer a {
    color: #315f8f;

    font-size: 13px;

    text-decoration: none;
}

.plans-footer a:hover {
    text-decoration: underline;
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 900px) {

    .plans-grid {
        grid-template-columns: 1fr;

        max-width: 520px;

        margin: 0 auto;
    }

    .plan-description {
        min-height: auto;
    }

}

@media (max-width: 520px) {

    .plans-heading h2 {
        font-size: 28px;
    }

    .plan-card {
        padding: 26px;
    }

}
/* ============================================
   PLAN CARD HOVER
   ============================================ */

.plan-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(20, 43, 71, 0.14);

    border-color: #9fb7d0;
}

/* Keep the recommended card slightly stronger */
.plan-card.plan-featured:hover {
    border-color: #315f8f;

    box-shadow:
        0 20px 44px rgba(20, 43, 71, 0.18);
}

/* Don't lift the current-plan card */
.plan-card.current-plan:hover {
    transform: none;
}