﻿/* ==========================================================================
   JustJob Auth Pages (Login / Register-Recruiter / Register-Employer)
   Reuses the jjw-* theme + CSS variables already defined in
   css/jobseekerRegis.css - link BOTH files, this one after that one:

     <link href="css/jobseekerRegis.css" rel="stylesheet" />
     <link href="css/authTheme.css" rel="stylesheet" />

   This file only adds the extra bits an auth form needs that the
   step-wizard didn't (2-column field grid, alert boxes, checkbox row,
   inline validator text) - it does not redeclare anything from there.
   ========================================================================== */

.jjw-auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Small brand/product tag shown above the headline in the left promo
   panel - keeps this portal's identity separate from the JobSeeker
   wizard's own promo copy. */
.jjw-side-brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
    text-align: center;
}

    .jjw-side-brand .accent {
        color: gold;
    }

/* ---- "How it works" flow card - replaces the generic trust-logos
   block with something specific to the Recruiter Marketplace journey
   on each page. ---- */
.jjw-flow-card {
    background: #fff;
    border-radius: var(--jj-radius);
    margin-top: 18px;
    padding: 18px 18px 16px;
    box-shadow: var(--jj-shadow);
}

    .jjw-flow-card .flow-title {
        font-size: 11.5px;
        font-weight: 800;
        color: var(--jj-text-light);
        text-transform: uppercase;
        letter-spacing: .4px;
        margin: 0 0 14px;
        text-align: center;
    }

.jjw-flow-steps {
    display: flex;
    flex-direction: column;
}

.jjw-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    position: relative;
    padding-bottom: 16px;
}

    .jjw-flow-step:last-child {
        padding-bottom: 0;
    }

    .jjw-flow-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 22px;
        bottom: -3px;
        width: 2px;
        background: var(--jj-border);
    }

    .jjw-flow-step .fs-num {
        width: 21px;
        height: 21px;
        border-radius: 50%;
        background: var(--jj-primary);
        color: #fff;
        font-size: 10.5px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .jjw-flow-step .fs-text {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--jj-text);
        padding-top: 2px;
        line-height: 1.35;
    }

.jjw-auth-container {
    align-items: stretch;
}

/* Card is a touch taller/roomier than the wizard card since there's no
   step progress bar eating space, and no fixed scroll-height needed. */
.jjw-auth-card {
    min-height: auto;
}

.jjw-auth-header {
    padding: 14px 28px 6px;
    border-bottom: none;
    display: block;
}

    .jjw-auth-header .jjw-step-title {
        font-size: 21px;
    }

.jjw-auth-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 6px 28px 16px;
    height: 200px;
}

/* ---- Two column field grid (Employer / Recruiter registration) ---- */
.jjw-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 22px;
}

    .jjw-form-grid-2 .jjw-field {
        margin-bottom: 12px;
    }

        .jjw-form-grid-2 .jjw-field.full {
            grid-column: 1 / -1;
        }

/* ---- Inline validator / error text ---- */
.jjw-field-error {
    display: block;
    color: #c0392b;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 5px;
}

/* ---- Alert boxes ---- */
.jjw-alert-info {
    margin-top: 16px;
    background: var(--jj-primary-lighter);
    border: 1px solid var(--jj-border);
    color: var(--jj-primary-dark);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    display: none;
}

.jjw-alert-danger {
    margin-top: 14px;
    background: #fdeceb;
    border: 1px solid #f3b7b0;
    color: #b3261e;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 600;
}

.jjw-alert-success {
    background: #e9f9ef;
    border: 1px solid #b6e6c6;
    color: var(--jj-success);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
}

/* ---- Terms checkbox row ---- */
.jjw-check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jj-text);
    cursor: pointer;
    margin-bottom: 4px;
}

    .jjw-check-row input[type="checkbox"] {
        margin-top: 2px;
        width: 16px;
        height: 16px;
        accent-color: var(--jj-primary);
        flex-shrink: 0;
    }

    .jjw-check-row .req {
        color: #c0392b;
    }

/* ---- Optional-field hint next to a label ---- */
.jjw-hint-inline {
    font-size: 11.5px;
    color: var(--jj-text-light);
    font-weight: 600;
    margin-left: 6px;
}

/* ---- Footer links under the submit button ---- */
.jjw-auth-links {
    text-align: center;
    /* margin-top: 16px; */
}

.jjw-link {
    color: var(--jj-primary);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
}

    .jjw-link:hover {
        text-decoration: underline;
    }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .jjw-auth-page {
        min-height: auto;
    }

    .jjw-auth-header {
        padding: 20px 18px 4px;
    }

    .jjw-auth-body {
        padding: 6px 18px 22px;
    }
}

@media (max-width: 600px) {
    .jjw-form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .jjw-auth-header .jjw-step-title {
        font-size: 18px;
    }
}

/* =========================================================
   JUST JOB LOGIN PAGE
   Page Specific CSS
   Does NOT affect Registration Page

   NOTE (updated): spacing tightened everywhere so the whole
   card fits inside one viewport (no page scroll on normal
   laptop/desktop screens). The container height is no longer
   a fixed min-height - it now sizes to its content, and the
   outer page uses flex-centering + a viewport-based min-height
   instead of large top/bottom padding.
   ========================================================= */
/* ================= ROOT VARIABLES ================= */
.jj-login-page {
    --jj-login-primary: #0875a8;
    --jj-login-primary-dark: #07537e;
    --jj-login-accent: #12a9df;
    --jj-login-text: #102c45;
    --jj-login-muted: #71869a;
    --jj-login-border: #dce7ef;
    --jj-login-bg: #f3f8fb;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    background: radial-gradient( circle at 90% 10%, rgba(24, 168, 220, 0.08), transparent 30% ), #f3f8fb;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}


/* ================= MAIN CONTAINER ================= */

.jj-login-container {
    width: 100%;
    max-width: 930px;
    max-height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(15, 61, 91, 0.09), 0 2px 10px rgba(15, 61, 91, 0.04);
}


/* =========================================================
   LEFT BRAND PANEL
   ========================================================= */

.jj-login-brand {
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 85% 12%, rgba(28, 184, 237, 0.22), transparent 28% ), linear-gradient( 145deg, #082c4b 0%, #07557d 52%, #0877a7 100% );
    color: #ffffff;
}


    .jj-login-brand::before {
        content: "";
        position: absolute;
        width: 310px;
        height: 310px;
        right: -160px;
        bottom: -140px;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 50%;
        box-shadow: 0 0 0 45px rgba(255,255,255,0.035), 0 0 0 90px rgba(255,255,255,0.025);
    }


    .jj-login-brand::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        left: -100px;
        top: 52%;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 50%;
    }


.jj-login-brand-inner {
    position: relative;
    z-index: 1;
    padding: 26px 30px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}


.jj-login-brand-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #b9eaff;
}


.jj-login-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c5f6;
    box-shadow: 0 0 0 5px rgba(39,197,246,0.14);
}


/* Brand Heading */

.jj-login-brand h1 {
    font-size: 30px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 12px 0 0;
    color: #ffffff;
}

    /* Accent word inline inside the headline, e.g. <h1>Welcome <span class="accent">back!</span></h1> */
    .jj-login-brand h1 .accent {
        color: #7cddff;
    }

    /* Kept for backward compatibility if a block-level sub-line is used instead */
    .jj-login-brand h1 span:not(.accent) {
        display: block;
        margin-top: 6px;
        color: #7cddff;
    }


.jj-login-brand-description {
    max-width: 367px;
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #d0e8f5;
}


/* ---- Stats strip - fills the space under the description with
   quick trust signals; sits between the description and the
   feature list. ---- */
.jj-login-stats {
    display: flex;
    margin-top: 24px;
    padding: 16px 4px;
    border-top: 1px solid rgba(255,255,255,0.14);
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.jj-login-stat {
    flex: 1;
    position: relative;
    text-align: center;
}

    .jj-login-stat:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 30px;
        background: rgba(255,255,255,0.16);
    }

    .jj-login-stat strong {
        display: block;
        font-size: 21px;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: #ffffff;
    }

    .jj-login-stat span {
        display: block;
        margin-top: 4px;
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: #a9d4e8;
    }


/* Feature List */

.jj-login-features {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.jj-login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}


.jj-login-feature-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 11px;
    color: #8ee3ff;
}


    .jj-login-feature-icon svg {
        width: 18px;
        height: 18px;
    }


.jj-login-feature strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}


.jj-login-feature span {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #b5d8e9;
}


/* Brand Footer */

.jj-login-brand-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #9dc9df;
}


.jj-login-footer-line {
    width: 28px;
    height: 2px;
    background: #26b9ec;
    border-radius: 5px;
}


/* =========================================================
   RIGHT FORM AREA
   ========================================================= */

.jj-login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 22px;
    background: #ffffff;
}


.jj-login-form-card {
    width: 100%;
    max-width: 455px;
}


/* Mini Logo */

.jj-login-mini-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}


.jj-login-mini-logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


    .jj-login-mini-logo-mark svg {
        width: 34px;
        height: 34px;
    }


.jj-login-mini-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #086ca1;
}


    .jj-login-mini-logo-text b {
        color: #102d47;
    }


/* Form Heading */

.jj-login-heading {
    margin-top: 14px;
    margin-bottom: 14px;
}


    .jj-login-heading h2 {
        margin: 0;
        font-size: 24px;
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: -0.6px;
        color: var(--jj-login-text);
    }


    .jj-login-heading p {
        margin: 6px 0 0;
        color: var(--jj-login-muted);
        font-size: 12.5px;
        line-height: 1.5;
    }


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

.jj-login-field {
    margin-bottom: 14px;
}


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


.jj-login-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #18334b;
}


.jj-login-input-wrap {
    position: relative;
    width: 100%;
}


.jj-login-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid var(--jj-login-border);
    border-radius: 10px;
    outline: none;
    background: #f9fbfd;
    color: #17334c;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


    .jj-login-input::placeholder {
        color: #9aaebb;
    }


    .jj-login-input:focus {
        border-color: #149bd2;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(20,155,210,0.11);
    }


.jj-login-input-with-icon {
    padding-left: 47px;
    padding-right: 45px;
}


/* Input Icons */

.jj-login-input-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    width: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7e9aaa;
    pointer-events: none;
}


    .jj-login-input-icon svg {
        width: 19px;
        height: 19px;
    }


/* Password Toggle */

.jj-login-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8499a9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .jj-login-password-toggle svg {
        width: 18px;
        height: 18px;
    }


    .jj-login-password-toggle:hover {
        color: #0875a8;
    }


/* Select */

.jj-login-select {
    appearance: auto;
}


/* =========================================================
   VALIDATION AND ERRORS
   ========================================================= */

.jj-login-error {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
    color: #d73535;
}


.jj-login-server-error {
    margin-bottom: 10px;
}


.jj-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff1f1;
    border: 1px solid #ffd3d3;
    color: #bd2d2d;
    font-size: 12px;
    line-height: 1.5;
}


.jj-login-alert-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e34c4c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}


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

.jj-login-submit {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient( 100deg, #08618d, #087caf );
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(8,111,158,0.17);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


    .jj-login-submit:hover {
        background: linear-gradient( 100deg, #07557e, #066c9b );
        box-shadow: 0 8px 22px rgba(8,111,158,0.24);
        transform: translateY(-1px);
    }


    .jj-login-submit:active {
        transform: translateY(0);
    }


    .jj-login-submit:focus-visible {
        outline: 3px solid rgba(8,117,168,0.3);
        outline-offset: 3px;
    }


/* =========================================================
   BACK HOME
   ========================================================= */

.jj-login-back-home {
    margin-top: 14px;
    text-align: center;
}


.jj-login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #0875a8;
    transition: color 0.2s ease;
}


    .jj-login-back-link:hover {
        color: #064e78;
        text-decoration: none;
    }


.jj-login-back-arrow {
    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   DEMO BOX
   ========================================================= */

.jj-login-demo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 13px;
    border: 1px solid #dcecf4;
    background: #f5fbfe;
    border-radius: 10px;
}


.jj-login-demo-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    border-radius: 50%;
    background: #d8eff9;
    color: #0875a8;
    font-size: 12px;
    font-weight: 800;
}


.jj-login-demo strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #31566e;
}


.jj-login-demo p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #718d9e;
}


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

.jj-login-form-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #edf2f5;
    color: #9aacb9;
    font-size: 10px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .jj-login-page {
        padding: 20px 16px;
    }


    .jj-login-brand-inner {
        padding: 30px 30px;
    }


    .jj-login-brand h1 {
        font-size: 26px;
    }


    .jj-login-form-area {
        padding: 26px 30px;
    }


    .jj-login-heading h2 {
        font-size: 22px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   (below this width the card no longer needs to fit in one
   screen - it is allowed to scroll normally, like any other
   mobile page)
   ========================================================= */

@media (max-width: 767px) {

    .jj-login-page {
        min-height: auto;
        display: block;
        padding: 20px 15px 30px;
    }


    .jj-login-container {
        display: block;
        max-height: none;
        border-radius: 18px;
    }


    .jj-login-brand {
        min-height: 220px;
    }


    .jj-login-brand-inner {
        padding: 28px 24px;
    }


    .jj-login-brand h1 {
        margin-top: 16px;
        font-size: 24px;
    }


    .jj-login-brand-description {
        margin-top: 12px;
        font-size: 13px;
    }


    .jj-login-features {
        display: none;
    }

    .jj-login-stats {
        margin-top: 18px;
        padding: 14px 4px;
    }


    .jj-login-brand-footer {
        margin-top: 20px;
        padding-top: 0;
    }


    .jj-login-form-area {
        padding: 28px 24px 26px;
    }


    .jj-login-form-card {
        max-width: none;
    }


    .jj-login-heading {
        margin-top: 20px;
        margin-bottom: 20px;
    }


        .jj-login-heading h2 {
            font-size: 22px;
        }


    .jj-login-form-footer {
        margin-top: 18px;
    }
}


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

@media (max-width: 380px) {

    .jj-login-page {
        padding: 14px 10px 24px;
    }


    .jj-login-brand-inner {
        padding: 22px 18px;
    }


    .jj-login-form-area {
        padding: 24px 18px;
    }


    .jj-login-brand h1 {
        font-size: 22px;
    }


    .jj-login-heading h2 {
        font-size: 20px;
    }
}
