


body {
  font-family: 'Poppins', sans-serif;
  /* background: linear-gradient(145deg, #f0f4fa 0%, #e6ecf5 100%); */
  background: var(--bg);
  min-height: 100vh;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  padding: 1.5rem;
  margin: 0;
}


      /* Navigation */
      .auth-nav {
          padding: 20px;
          background: #0e1625;
      }
      .auth-nav a {
          display: inline-flex;
          align-items: center;
          gap: 8px;
          text-decoration: none;
          color: #d3d9e5;
      }
      .auth-nav h6 {
          margin: 0;
          font-size: 14px;
          font-weight: 500;
      }

      /* Form Section */
      .auth-section {
          display: flex;
          justify-content: center;
          align-items: center;
          min-height: calc(100vh - 80px);
          padding: 20px;
      }

      /* Basic Grid System */
      .row {
          display: flex;
          flex-wrap: wrap;
          margin: 0 -10px;
      }
      .col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
      .col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
      .col-md-12 { flex: 0 0 100%; max-width: 100%; padding: 0 10px; box-sizing: border-box; }

      @media (min-width: 768px) {
          .col-md-6 { flex: 0 0 50%; max-width: 50%; }
      }

      /* Form Group & Input */
      .form-group {
          margin-bottom: 20px;
      }

      .form-group label {
          display: block;
          margin-bottom: 8px;
          font-weight: 500;
          color: #d3d9e5;
          font-size: 14px;
      }

      .form-group input[type="text"],
      .form-group input[type="email"],
      .form-group input[type="password"],
      .form-control {
          width: 100%;
          padding: 10px 14px;
          border: 1px solid #d0d5dd;
          border-radius: 8px;
          font-family: 'Poppins', sans-serif;
          font-size: 14px;
          /* color: #344054; */
          color: #d3d9e5;
          transition: border-color 0.2s, box-shadow 0.2s;
          box-sizing: border-box;
          background: transparent;
      }

      /* 2. Placeholder text color */
      .form-group input::placeholder,
      .form-control::placeholder {
          color: rgba(255, 255, 255, 0.5) !important;
      }

      /* 3. Selection highlight (when you highlight the text to delete it) */
      .form-group input::selection,
      .form-control::selection {
          background: rgba(255, 255, 255, 0.2); /* Slight white background so you can see what you're deleting */
          color: #d3d9e5 !important;
      }

      /* 4. THE CRITICAL FIX: Chrome/Safari Autofill Hack */
      .form-group input:-webkit-autofill,
      .form-group input:-webkit-autofill:hover,
      .form-group input:-webkit-autofill:focus,
      .form-group input:-webkit-autofill:active,
      .form-control:-webkit-autofill,
      .form-control:-webkit-autofill:hover,
      .form-control:-webkit-autofill:focus,
      .form-control:-webkit-autofill:active {
          -webkit-text-fill-color: #d3d9e5 !important;
          -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
          background-color: transparent !important;
          transition: background-color 5000s ease-in-out 0s;
      }

      .form-group input:focus,
      .form-control:focus {
          border-color: #6c63ff;
          border-color: #6c63ff;
          outline: none;
          box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
      }

      .help-text {
          font-size: 12px; 
          color: #d3d9e5; 
          margin-top: 6px; 
          font-weight: 400;
      }
      .help-text span {
          font-weight: 600;
          color: #d3d9e5;
      }

      .error-message {
          color: #ef4444;
          font-size: 13px;
          margin-top: 6px;
      }


      /* .input-group {
          display: flex;
          align-items: center;
          width: 100%;
          flex-wrap: unset !important;
      } */
      .input-group .form-control {
          flex: 1;
      }
      .input-group .input-group-text {
          background: #f9fafb;
          border: 1px solid #d0d5dd;
          border-right: none;
          padding: 10px 12px;
          border-radius: 8px 0 0 8px;
          font-family: 'Poppins', sans-serif;
          font-size: 14px;
          color: #d3d9e5;
          height: 44px;
          display: flex;
          align-items: center;
          white-space: nowrap;
      }
      .input-group .form-control {
          border-radius: 0 8px 8px 0;
          border-left: none;
      }
      .phone-display {
          background-color: #f1f5f9; 
          cursor: not-allowed;
      }

      /* Password Wrapper */
      .password-wrapper {
          position: relative;
      }
      .password-wrapper .form-control {
          padding-right: 40px;
      }
      .password-toggle-btn {
          position: absolute;
          top: 50%;
          right: 10px;
          transform: translateY(-50%);
          background: none;
          border: none;
          cursor: pointer;
          color: #64748b;
          padding: 5px;
      }

    

      /* Footer Link */
      .auth-footer-link {
          text-align: center; 
          width: 100%; 
          display: block; 
          margin-top: 25px;
          font-size: 14px;
          font-weight: 500;
          color: #64748b;
      }
      .auth-footer-link a {
          color: #d3d9e5;
          text-decoration: none;
          margin-left: 5px;
      }

      /* Mobile responsive */
      @media (max-width: 576px) {
          .input-group .input-group-text {
              padding: 8px 10px;
              font-size: 13px;
              height: 40px;
          }
      }



  /* ── Auth-page layout ── */
  .auth-page {
    /* min-height: calc(100vh - 82px); */
    display: flex;
    align-items: center;
    justify-content: center;
    /*! padding: 56px 24px; */
    background: var(--bg);
  }

  /* ── Form panel & card ── */
  .auth-form-panel {
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-form-wrap {
    width: 100%;
    background: #172238;
    /*! border: 1px solid; */
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow:
  0 -10px 30px rgba(0, 0, 0, 0.35),  /* top */
  0 14px 35px rgba(0, 0, 0, 0.45),   /* bottom */
  0 0 25px rgba(30, 70, 120, 0.15);   /* around */
  }

  .auth-form-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Poppins, sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 36px;
    color: var(--text);
  }

  .auth-form-heading {
    font-family: Poppins, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -1.6px;
    margin: 0 0 7px;
    color: var(--text);
    margin-top: 2rem;
}
  

  .auth-form-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 30px;
  }

  .auth-form-sub a {
    color: var(--primary);
    font-weight: 600;
    transition: opacity .2s;
  }

  .auth-form-sub a:hover {
    opacity: .75;
  }

  /* social login */
  .auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .2s, border-color .2s;
  }

  .auth-social-btn:hover {
    background: var(--surface-tint);
    border-color: var(--primary-soft);
    transform: translateY(-1px);
  }

  .auth-social-btn svg {
    width: 18px;
    height: 18px;
    flex: none;
  }

  /* divider */
  .auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--text-faint);
    font-size: 12px;
  }

  .auth-divider::before,
  .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  /* two-column row */
  .auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* fields */
  .auth-field {
    margin-bottom: 16px;
  }

  .auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
  }

  .auth-field-wrap {
    position: relative;
  }

  .auth-field-wrap>svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-faint);
    pointer-events: none;
  }

  .auth-field input,
  .auth-field select {
    width: 100%;
    height: 50px;
    border: .5px solid #dee2e6;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    padding: 0 14px 0 42px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }

  .auth-field input::placeholder {
    color: var(--text-faint);
  }

  .auth-field input:focus,
  .auth-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18, 104, 243, .14);
  }

  .auth-field-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--text-faint);
    cursor: pointer;
    padding: 4px;
    display: grid;
    place-items: center;
    transition: color .2s;
  }

  .auth-field-eye:hover {
    color: var(--text);
  }

  .auth-field-eye svg {
    width: 16px;
    height: 16px;
  }

  /* password strength */
  .pw-strength {
    margin-top: 8px;
    display: grid;
    gap: 6px;
  }

  .pw-bars {
    display: flex;
    gap: 5px;
  }

  .pw-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--line);
    transition: background .3s;
  }

  .pw-bar.active-weak {
    background: #ef4444;
  }

  .pw-bar.active-fair {
    background: #f97316;
  }

  .pw-bar.active-good {
    background: #eab308;
  }

  .pw-bar.active-strong {
    background: #22c55e;
  }

  .pw-label {
    font-size: 11px;
    color: var(--text-faint);
  }

  /* terms checkbox */
  .auth-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    cursor: pointer;
    user-select: none;
  }

  .auth-check-wrap input[type="checkbox"] {
    margin-top: 2px;
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    flex: none;
  }

  .auth-check-wrap a {
    color: var(--primary);
    font-weight: 600;
    transition: opacity .2s;
  }

  .auth-check-wrap a:hover {
    opacity: .75;
  }

  /* submit */
  .auth-submit {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: #d3d9e5;
    border: 0;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s, background .2s, box-shadow .2s;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #508ac8 0%, #332a7a 100%);
  }

  .auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px linear-gradient(90deg, #508ac8 0%, #332a7a 100%);
  }

  .auth-submit svg {
    width: 18px;
    height: 18px;
  }

  .auth-terms {
    font-size: 11px;
    color: var(--text-faint);
    text-align: center;
    line-height: 1.7;
  }

  .auth-terms a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
  }

  .auth-terms a:hover {
    color: var(--primary);
  }

  /* Responsive */
  @media (max-width: 540px) {
    .auth-row {
      grid-template-columns: 1fr;
    }

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

.welcome{
  margin-bottom: 2rem;
}


 /* ----- MAIN LOGIN CARD ----- */
 .login-card {
  background: #ffffff;
  max-width: 440px;
  width: 100%;
  border-radius: 2.5rem;
  padding: 2.5rem 2.2rem 2.2rem 2.2rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 20, 30, 0.25),
    0 8px 18px -6px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card:hover {
  transform: translateY(-3px);
}

/* ----- HEADER / BRAND ----- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
}

.brand-icon {
  background: linear-gradient(135deg, #1e2b3c, #2c3e50);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 10px 15px -8px rgba(0, 0, 0, 0.2);
}

.brand-text {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #1a2634;
}

.brand-text span {
  font-weight: 400;
  color: #6a7c8f;
  font-size: 0.9rem;
  display: block;
  line-height: 1;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* ----- WELCOME MESSAGE ----- */
.auth-page {
  margin-bottom: 2rem;
}

.auth-page h1 {
  /* font-size: 2rem; */
  font-weight: 700;
  color: #d3d9e5;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.auth-page p {
  color: #d3d9e5;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ----- FORM FIELDS ----- */
.input-group {
  margin-bottom: 1.4rem;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d3d9e5;
  margin-bottom: 0.45rem;
  letter-spacing: 0.2px;
}

.input-field {
  display: flex;
  align-items: center;
  background: transparent; 
  border-radius: 0.5rem;
  padding: 0.1rem 1rem;
  border: 1px solid #d3d9e5;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.input-field:focus-within {
  border-color: #d3d9e5;
  background: transparent;
  box-shadow: 0 4px 12px rgba(43, 76, 110, 0.12);
}

.input-field i {
  color: #d3d9e5;
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  transition: color 0.2s;
}

.input-field:focus-within i {
  color: #d3d9e5;
}

.input-field input {
  border: none;
  background: transparent;
  padding: 0.9rem 0.4rem 0.9rem 0.6rem;
  font-size: 0.95rem;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #d3d9e5;
  outline: none;
}

.input-field input::placeholder {
  color: #d3d9e5;
  font-weight: 300;
  font-size: 0.9rem;
}

/* ----- FORGOT PASSWORD ----- */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.2rem;
  margin-bottom: 1.6rem;
}

.forgot-link {
  font-size: 0.83rem;
  color: #d3d9e5;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed #b0c6da;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.forgot-link:hover {
  color: #d3d9e5;
  border-bottom-color: #d3d9e5;
}

/* ----- LOGIN BUTTON ----- */
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #1e2b3c, #2b4c6e);
  border: none;
  color: #d3d9e5;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: 0 12px 20px -10px rgba(27, 52, 80, 0.4);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-btn i {
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.login-btn:hover {
  background: linear-gradient(135deg, #15212e, #203a50);
  box-shadow: 0 16px 24px -8px rgba(27, 52, 80, 0.5);
  transform: scale(1.01);
}

.login-btn:hover i {
  transform: translateX(3px);
}

.login-btn:active {
  transform: scale(0.99);
  box-shadow: 0 8px 14px -6px rgba(27, 52, 80, 0.5);
}

/* ----- DIVIDER WITH TEXT ----- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
  color: #96a9bb;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cddbe8, #cddbe8, transparent);
}

/* ----- SOCIAL LOGIN BUTTONS ----- */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2eaf2;
  border-radius: 1.4rem;
  padding: 0.8rem 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #2b3f52;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}

.social-btn i {
  font-size: 1.1rem;
  color: #4c6b88;
  transition: color 0.2s;
}

.social-btn:hover {
  background: #f7faff;
  border-color: #b8cee2;
  box-shadow: 0 8px 14px -6px rgba(43, 76, 110, 0.15);
  transform: translateY(-2px);
}

.social-btn:hover i {
  color: #1e2b3c;
}

/* ----- SIGNUP PROMPT ----- */
.signup-prompt {
  text-align: center;
  font-size: 0.9rem;
  color: #d3d9e5;;
  margin-top: 0.5rem;
  font-weight: 400;
}

.signup-prompt a {
  color: #d3d9e5;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #d3d9e5;;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
  margin-left: 4px;
}

.signup-prompt a:hover {
  color: #d3d9e5;
  border-bottom-color: #d3d9e5;
}

/* ----- RESPONSIVE TWEAKS ----- */
@media (max-width: 480px) {
  .login-card {
    padding: 1.8rem 1.4rem 1.6rem;
    border-radius: 2rem;
  }

  .welcome h1 {
    font-size: 1.8rem;
  }

  .social-login {
    gap: 0.7rem;
  }

  .social-btn span {
    display: none; /* hide label on very small screens, keep icon */
  }

  .social-btn i {
    font-size: 1.3rem;
    margin: 0;
  }

  .social-btn {
    padding: 0.9rem;
  }


  .auth-page {
    /* padding: 36px 16px 48px; */
  }

  .auth-form-wrap {
    padding: 15px; 
    border-radius: 15px;

  }

}

@media (max-width: 360px) {
  .brand-text {
    font-size: 1.1rem;
  }

  .input-field input {
    font-size: 0.9rem;
  }
}

/* micro interaction for accessibility */
.input-field input:-webkit-autofill,
.input-field input:-webkit-autofill:hover, 
.input-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1b2a36;
  transition: background-color 5000s ease-in-out 0s;
}


  /* Logo */
  .brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-logo .logo-v {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline-block;
    transform: skew(-8deg);
}

.brand-logo .logo-text {
    letter-spacing: 1.5px;
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
}

