/* =============================================
   loginnew.css — CareerKlick Customer Auth Pages
   Light Theme — Matches CareerKlick Website
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ════════════════════════════════════════════
   SHARED PAGE BACKGROUND — login-page & login-page1
   ════════════════════════════════════════════ */
body.login-page,
body.login-page1 {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #F5F7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    color: #0F0F2D;
}

/* Radial gradient blobs matching index.html body::before */
body.login-page::before,
body.login-page1::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%,  rgba(108, 58, 255, 0.09) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90%  20%,  rgba(255, 107, 53, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 50% 100%,  rgba(0, 184, 148, 0.07) 0%, transparent 55%),
        #F5F7FF;
}

body.login-page::after,
body.login-page1::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Container/Row resets ─── */
body.login-page .container,
body.login-page1 .container {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

body.login-page .row,
body.login-page1 .row {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.login-page .offset-md-4 { margin-left: 0 !important; }
body.login-page .col-md-4    { flex: 0 0 100%; max-width: 440px; }

/* ─── mt-45 override ─── */
body.login-page  .mt-45,
body.login-page1 .mt-45 { margin-top: 0 !important; }

/* ════════════════════════════════════════════
   CARD
   ════════════════════════════════════════════ */
body.login-page  .card.shadow1,
body.login-page1 .card.shadow1 {
    background: #ffffff;
    border: 1px solid rgba(108, 58, 255, 0.13);
    border-radius: 24px;
    box-shadow:
        0 4px 24px rgba(108, 58, 255, 0.09),
        0 1px 4px  rgba(108, 58, 255, 0.05);
    overflow: hidden;
    padding: 0;
    position: relative;
    animation: ck-slideUp 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
    width: 100%;
}

@keyframes ck-slideUp {
    from { opacity: 0; transform: translateY(36px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Purple gradient top bar */
body.login-page  .card.shadow1::before,
body.login-page1 .card.shadow1::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #6C3AFF, #7C4DFF, #FF6B35, #6C3AFF);
    background-size: 300% 100%;
    animation: ck-shimmer 4s linear infinite;
}

@keyframes ck-shimmer {
    0%   { background-position: 300% 0; }
    100% { background-position: -300% 0; }
}

/* ─── Logo area ─── */
body.login-page  .card.shadow1 > center:first-of-type,
body.login-page1 .card.shadow1 > center:first-of-type {
    padding: 32px 32px 0;
}

body.login-page  .card.shadow1 > center:first-of-type img,
body.login-page1 .card.shadow1 > center:first-of-type img {
    width: 65% !important;
    max-width: 200px;
    filter: none;
    transition: transform 0.3s ease;
}

body.login-page  .card.shadow1 > center:first-of-type img:hover,
body.login-page1 .card.shadow1 > center:first-of-type img:hover {
    transform: scale(1.03);
}

/* Brand text fallback if logo doesn't load */
body.login-page  .brand-text,
body.login-page1 .brand-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #6C3AFF, #7C4DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Subtitle under logo ─── */
body.login-page  .card.shadow1 > center p,
body.login-page1 .card.shadow1 > center p {
    color: #4B5071;
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    margin: 10px 0 0;
    padding: 0 24px;
}

/* ─── Card Body ─── */
body.login-page  .card-body.p-4,
body.login-page1 .card-body.p-4 {
    padding: 24px 32px 16px !important;
    display: flex;
    flex-direction: column;
}

/* ════════════════════════════════════════════
   FORM LABELS
   ════════════════════════════════════════════ */
body.login-page  .card-body .form-group label,
body.login-page1 .card-body .form-group label,
body.login-page1 .card-body label {
    color: #4B5071 !important;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 7px;
    display: block;
}

/* ════════════════════════════════════════════
   FORM CONTROLS
   ════════════════════════════════════════════ */
body.login-page  .card-body .form-control,
body.login-page1 .card-body .form-control,
body.login-page1 .login__content .form-control {
    background: #F5F7FF;
    border: 1.5px solid rgba(108, 58, 255, 0.15);
    border-radius: 12px;
    color: #0F0F2D !important;
    font-size: 0.93rem;
    font-family: 'Inter', sans-serif;
    padding: 12px 16px;
    height: auto;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

body.login-page  .card-body .form-control::placeholder,
body.login-page1 .card-body .form-control::placeholder,
body.login-page1 .login__content .form-control::placeholder {
    color: #8B90AA;
}

body.login-page  .card-body .form-control:focus,
body.login-page1 .card-body .form-control:focus,
body.login-page1 .login__content .form-control:focus {
    background: #ffffff;
    border-color: #6C3AFF;
    box-shadow: 0 0 0 3px rgba(108, 58, 255, 0.14);
    color: #0F0F2D;
    outline: none;
}

/* ─── form-group spacing ─── */
body.login-page  .card-body .form-group,
body.login-page1 .card-body .form-group {
    position: relative;
    margin-bottom: 18px;
}

/* Row gutters inside card */
body.login-page1 .card-body .row {
    margin-bottom: 4px;
}

body.login-page1 .card-body .col-md-6,
body.login-page1 .card-body .col-md-12 {
    padding-bottom: 14px;
    position: relative;
}

/* ════════════════════════════════════════════
   PASSWORD EYE TOGGLE
   ════════════════════════════════════════════ */
body.login-page  #toggle_pwd.fa,
body.login-page1 .fa-eye {
    color: #8B90AA !important;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 10;
}

body.login-page  #toggle_pwd.fa:hover,
body.login-page1 .fa-eye:hover {
    color: #6C3AFF !important;
}

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
body.login-page  .btn-login,
body.login-page1 .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 12px;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

body.login-page  .btn-login::before,
body.login-page1 .btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

body.login-page  .btn-login:hover::before,
body.login-page1 .btn-login:hover::before {
    opacity: 1;
}

/* Primary button — purple gradient */
body.login-page  .card-body button.btn-login.btn-primary,
body.login-page1 .card-body button.btn-login.btn-primary {
    background: linear-gradient(135deg, #6C3AFF 0%, #7C4DFF 100%);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(108, 58, 255, 0.35), 0 2px 8px rgba(108, 58, 255, 0.2);
    min-width: 130px;
    flex: 1;
}

body.login-page  .card-body button.btn-login.btn-primary:hover,
body.login-page1 .card-body button.btn-login.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108, 58, 255, 0.45), 0 4px 12px rgba(108, 58, 255, 0.25);
}

body.login-page  .card-body button.btn-login.btn-primary:active,
body.login-page1 .card-body button.btn-login.btn-primary:active {
    transform: scale(0.98);
}

/* Forgot / secondary link button */
body.login-page .card-body a.btn-login.btn-primary {
    background: #F0EBFF;
    color: #6C3AFF !important;
    border: 1.5px solid rgba(108, 58, 255, 0.2);
    box-shadow: none;
    min-width: 100px;
    flex: 0 0 auto;
}

body.login-page .card-body a.btn-login.btn-primary:hover {
    background: rgba(108, 58, 255, 0.12);
    border-color: rgba(108, 58, 255, 0.45);
    transform: translateY(-2px);
}

/* Resend OTP ghost button */
body.login-page  .forgot-pass,
body.login-page1 .forgot-pass {
    background: #F5F7FF;
    color: #6C3AFF;
    border: 1.5px solid rgba(108, 58, 255, 0.2);
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.2s;
}

body.login-page  .forgot-pass:hover,
body.login-page1 .forgot-pass:hover {
    background: #F0EBFF;
    border-color: #6C3AFF;
}

/* ─── Login page: button row ─── */
body.login-page .login-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

/* ─── SignUp page: centered submit button ─── */
body.login-page1 .card-body center button.btn-login {
    width: 70%;
    flex: none;
    margin: 0 auto;
}

/* ─── Forgot page: full-width submit ─── */
body.login-page .card-body button.btn-login:only-of-type:not(.d-none),
body.login-page .card-body button.btn-login:not(.d-none):only-of-type {
  
    flex: none;
    margin: 0;
}

/* ════════════════════════════════════════════
   BOTTOM FOOTER LINKS
   ════════════════════════════════════════════ */
body.login-page  .login__conect,
body.login-page1 .login__conect {
    padding: 16px 32px 28px;
    border-top: 1px solid rgba(108, 58, 255, 0.08);
    margin-top: 4px;
}

body.login-page  .login__conect center p,
body.login-page1 .login__conect center p {
    color: #8B90AA;
    font-size: 0.83rem;
    margin: 0;
    padding: 0;
}

body.login-page  .login__conect center p a,
body.login-page1 .login__conect center p a {
    color: #6C3AFF;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

body.login-page  .login__conect center p a::after,
body.login-page1 .login__conect center p a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1.5px;
    background: #6C3AFF;
    transition: width 0.3s ease;
}

body.login-page  .login__conect center p a:hover,
body.login-page1 .login__conect center p a:hover {
    color: #4A1FD6;
}

body.login-page  .login__conect center p a:hover::after,
body.login-page1 .login__conect center p a:hover::after {
    width: 100%;
}

/* ════════════════════════════════════════════
   FORGOT PASSWORD — Special Elements
   ════════════════════════════════════════════ */

/* Lock icon circle */
body.login-page .forgot-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 18px;
}

body.login-page .forgot-icon-wrap .forgot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 58, 255, 0.1), rgba(124, 77, 255, 0.18));
    border: 1.5px solid rgba(108, 58, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6C3AFF;
    box-shadow: 0 4px 16px rgba(108, 58, 255, 0.15);
}

/* Hint text */
body.login-page .forgot-hint {
    color: #8B90AA;
    font-size: 0.8rem;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    line-height: 1.6;
    padding: 0 8px;
}

/* "Forgot Password" heading */
body.login-page .card.shadow1 > center:last-of-type p,
body.login-page .forgot-title {
    color: #0F0F2D !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.01em;
}

/* ════════════════════════════════════════════
   SIGN-UP PAGE — label colors (white overrides)
   ════════════════════════════════════════════ */
body.login-page1 .card.shadow1 > center h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F0F2D !important;
    -webkit-text-fill-color: #0F0F2D !important;
}

body.login-page1 .card.shadow1 > center p.text-white,
body.login-page1 .card.shadow1 .text-white {
    color: #4B5071 !important;
}

body.login-page1 label.text-white {
    color: #4B5071 !important;
}

/* Sign-up section headings */
body.login-page1 .login__header h3.login__login {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #6C3AFF;
    padding: 14px 0 4px;
    border-top: 1px solid rgba(108, 58, 255, 0.1);
    margin-top: 6px;
}

/* Password strength indicators */
.strong-password { color: #00B894; font-size: 0.78rem; font-weight: 600; margin-top: 5px; }
.medium-password  { color: #F59E0B; font-size: 0.78rem; font-weight: 600; margin-top: 5px; }
.weak-password    { color: #e55353; font-size: 0.78rem; font-weight: 600; margin-top: 5px; }

/* Sponsor name label chip */
body.login-page1 #lblSponsorName.form-control {
    background: rgba(0, 184, 148, 0.07);
    border-color: rgba(0, 184, 148, 0.3);
    color: #00B894 !important;
    font-weight: 600;
}

/* ════════════════════════════════════════════
   SPINNER OVERLAY
   ════════════════════════════════════════════ */
body.login-page  #showSpinner,
body.login-page1 #showSpinner {
    background: rgba(245, 247, 255, 0.88) !important;
    border-radius: 24px;
}

body.login-page  .spinner-border.text-success,
body.login-page1 .spinner-border.text-success {
    color: #6C3AFF !important;
    width: 44px;
    height: 44px;
    border-width: 4px;
}

/* ════════════════════════════════════════════
   SIGN-UP CARD — card width override
   ════════════════════════════════════════════ */
body.login-page1 .col-md-6.offset-md-3 {
    flex: 0 0 100%;
    max-width: 580px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 576px) {
    body.login-page  .card.shadow1,
    body.login-page1 .card.shadow1 {
        border-radius: 18px;
    }

    body.login-page  .card-body.p-4,
    body.login-page1 .card-body.p-4 {
        padding: 18px 18px 12px !important;
    }

    body.login-page  .login__conect,
    body.login-page1 .login__conect {
        padding: 14px 18px 22px;
    }

    body.login-page  .card.shadow1 > center:first-of-type,
    body.login-page1 .card.shadow1 > center:first-of-type {
        padding: 24px 20px 0;
    }

    body.login-page  .btn-login,
    body.login-page1 .btn-login {
        padding: 11px 18px;
        font-size: 0.85rem;
    }

    body.login-page1 .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
