/* ==========================================================================
   VACANCY.NG - PRODUCTION NATIVE AUTHENTICATION STYLES (LOGIN & REGISTER)
   Extracted directly from D:\BHNG\vacancy.ng\auth\login.php & register.php
   ========================================================================== */

:root {
    --ink: #10243d;
    --muted: #5f738a;
    --error: #fce8e8;
    --success: #e8f9ef;
    --border: #d9e2ec;
}

body:has(.auth-screen) {
    background: #eaf2ff !important;
}

body:has(.auth-screen) .site-header,
body:has(.auth-screen) .site-footer {
    display: none !important;
}

body:has(.auth-screen) .main-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.auth-screen {
    --auth-accent-1: #0369BE;
    --auth-accent-2: #1D91E6;
    --auth-bg: #eaf2ff;
    --auth-overlay-1: rgba(3,105,190,.45);
    --auth-overlay-2: rgba(29,145,230,.34);
    min-height: 100vh;
    padding: 26px;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,.85), transparent 35%),
                radial-gradient(circle at 100% 0%, rgba(255,255,255,.45), transparent 40%),
                var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.auth-screen.role-user {
    --auth-accent-1: #0369BE;
    --auth-accent-2: #1D91E6;
    --auth-bg: #e8f1ff;
    --auth-overlay-1: rgba(3,105,190,.45);
    --auth-overlay-2: rgba(29,145,230,.34);
}

.auth-screen.role-recruiter {
    --auth-accent-1: #0369BE;
    --auth-accent-2: #1D91E6;
    --auth-bg: #e8f1ff;
    --auth-overlay-1: rgba(3,105,190,.45);
    --auth-overlay-2: rgba(29,145,230,.34);
}

.auth-screen.role-partner {
    --auth-accent-1: #0369BE;
    --auth-accent-2: #1D91E6;
    --auth-bg: #e8f1ff;
    --auth-overlay-1: rgba(3,105,190,.45);
    --auth-overlay-2: rgba(29,145,230,.34);
}

.auth-screen.role-freelancer {
    --auth-accent-1: #7c3aed;
    --auth-accent-2: #6d28d9;
    --auth-bg: #faf5ff;
    --auth-overlay-1: rgba(124,58,237,.45);
    --auth-overlay-2: rgba(109,40,217,.34);
}

.auth-screen.role-admin {
    --auth-accent-1: #5e45e2;
    --auth-accent-2: #0ea5a2;
    --auth-bg: #eeeafd;
    --auth-overlay-1: rgba(94,69,226,.42);
    --auth-overlay-2: rgba(14,165,162,.34);
}

.auth-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 52px);
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 24px 60px rgba(15,31,57,.18);
    display: grid;
    grid-template-columns: .95fr 1fr;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .45s ease, transform .45s ease;
}

.auth-visual {
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
    min-height: 400px;
    transition: opacity .24s ease, transform .24s ease, filter .24s ease, background-image .35s ease;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 45% 35%, rgba(255,255,255,.1), transparent 38%),
                linear-gradient(160deg, var(--auth-overlay-1) 5%, var(--auth-overlay-2) 45%, rgba(8,12,22,.82) 100%);
    z-index: -1;
}

.auth-copy {
    height: 100%;
    padding: 48px 44px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.auth-kicker {
    margin: 0;
    font-size: .9rem;
    color: rgba(255,255,255,.88);
}

.auth-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    line-height: .95;
    letter-spacing: -1px;
    text-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.auth-panel {
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

.auth-brand {
    text-decoration: none;
    font-size: 1.4rem;
    color: #0f2137;
    font-weight: 800;
    letter-spacing: .3px;
    display: inline-block;
}

.role-badge {
    margin-top: 10px;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(3,105,190,.13);
    color: #024c88;
}

.role-recruiter .role-badge,
.role-partner .role-badge {
    background: rgba(3,105,190,.13);
    color: #024c88;
}

.role-freelancer .role-badge {
    background: rgba(124,58,237,.13);
    color: #6d28d9;
}

.auth-panel h2 {
    margin: 22px 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -.6px;
    color: #10243d;
    font-weight: 800;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.auth-tabs::-webkit-scrollbar {
    display: none;
}

.auth-tabs a,
.auth-tabs button {
    text-decoration: none;
    color: #4d6178;
    background: #f3f7fc;
    border: 1px solid #dce7f5;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .86rem;
    font-weight: 700;
    transition: all .2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
    font-family: inherit;
}

.auth-tabs a.active,
.auth-tabs button.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--auth-accent-1), var(--auth-accent-2));
}

.auth-form {
    width: 100%;
    max-width: 500px;
}

.register-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
}

.form-row {
    margin-bottom: 12px;
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .92rem;
    color: #10243d;
}

.auth-form .input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px;
    font-size: .95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-form .input:focus {
    border-color: rgba(3,105,190,.45);
    box-shadow: 0 0 0 4px rgba(3,105,190,.14);
    outline: none;
    transform: translateY(-1px);
}

.role-freelancer .auth-form .input:focus {
    border-color: rgba(124,58,237,.45);
    box-shadow: 0 0 0 4px rgba(124,58,237,.14);
}

.auth-sub-link {
    display: inline-block;
    margin: 4px 0 16px;
    text-decoration: none;
    color: #0369BE;
    font-size: .92rem;
}

.role-freelancer .auth-sub-link {
    color: #7c3aed;
}

.auth-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(120deg, var(--auth-accent-1), var(--auth-accent-2));
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    grid-column: 1 / -1;
    margin-top: 4px;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(3,105,190,.35);
    filter: saturate(1.08);
}

.role-freelancer .auth-submit:hover {
    box-shadow: 0 12px 26px rgba(124,58,237,.35);
}

.consent-row {
    grid-column: 1 / -1;
    margin-top: 2px;
}

.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    background: #f7fbff;
    color: #334155;
    font-size: .86rem;
    line-height: 1.45;
}

.consent-box input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #0369BE;
}

.consent-box a {
    color: #0369BE;
    font-weight: 700;
    text-decoration: none;
}

.consent-box a:hover {
    text-decoration: underline;
    color: #02579d;
}

.auth-footnote {
    margin-top: 16px;
    color: #6b7d91;
    font-size: .92rem;
}

.auth-footnote a {
    color: #0369BE;
    text-decoration: none;
    font-weight: 600;
}

.role-freelancer .auth-footnote a {
    color: #7c3aed;
}

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

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: .95rem;
}

.alert-error {
    background: var(--error);
    color: #8a1c1c;
}

.alert-success {
    background: var(--success);
    color: #17613d;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #6b7d91;
    font-size: .86rem;
    grid-column: 1 / -1;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    background: #dce7f5;
    flex: 1;
}

@media (max-width: 900px) {
    .auth-screen {
        padding: 10px;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 16px;
    }
    .auth-visual {
        min-height: 200px;
    }
    .auth-copy {
        padding: 20px 14px;
    }
    .auth-copy h1 {
        font-size: clamp(1.45rem, 6vw, 2.2rem);
    }
    .auth-kicker {
        font-size: .78rem;
    }
    .auth-panel {
        padding: 18px 14px 20px;
    }
    .auth-panel h2 {
        margin: 14px 0 10px;
        font-size: clamp(1.45rem, 5vw, 2rem);
    }
    .auth-tabs {
        gap: 6px;
        margin-bottom: 10px;
    }
    .auth-tabs a,
    .auth-tabs button {
        padding: 7px 11px;
        font-size: .74rem;
    }
    .role-badge {
        margin-top: 8px;
        padding: 6px 10px;
        font-size: .68rem;
    }
    .auth-form {
        max-width: 100%;
    }
    .auth-form label {
        margin-bottom: 4px;
        font-size: .8rem;
    }
    .form-row {
        margin-bottom: 8px;
    }
    .auth-form .input {
        padding: 9px 12px;
        font-size: .86rem;
    }
    .auth-sub-link {
        margin: 2px 0 10px;
        font-size: .8rem;
    }
    .auth-submit {
        padding: 10px 14px;
        font-size: .9rem;
    }
    .auth-footnote {
        margin-top: 10px;
        font-size: .8rem;
    }
    .alert {
        padding: 8px 10px;
        margin-bottom: 10px;
        font-size: .82rem;
    }
    .register-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 8px;
    }
}

@media (max-width: 480px) {
    .register-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DEDICATED FREELANCER SUBDOMAIN AUTHENTICATION STYLES
   Exact copy from D:\BHNG\freelancer.vacancy.ng\auth\login.php & register.php
   ========================================================================== */
.fl-auth-screen {
    --auth-accent-1: #059669;
    --auth-accent-2: #10B981;
    --auth-bg: #ecfdf5;
    --auth-overlay-1: rgba(5,150,105,.45);
    --auth-overlay-2: rgba(16,185,129,.34);
    min-height: 100vh;
    padding: 26px;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,.85), transparent 35%),
                radial-gradient(circle at 100% 0%, rgba(255,255,255,.45), transparent 40%),
                var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.fl-auth-shell {
    width: min(520px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-auth-shell.is-register {
    width: min(640px, 100%);
}

.fl-auth-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 24px 60px rgba(15,31,57,.18);
    padding: clamp(24px, 4vw, 48px);
    width: 100%;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .45s ease, transform .45s ease;
    box-sizing: border-box;
}

.fl-auth-brand {
    text-decoration: none;
    font-size: 1.4rem;
    color: #0f2137;
    font-weight: 800;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fl-role-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(5,150,105,.13);
    color: #047857;
    margin-bottom: 10px;
}

.fl-auth-card h2 {
    margin: 0 0 4px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -.6px;
    color: #10243d;
    font-weight: 800;
}

.fl-auth-card .subtitle {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: .95rem;
}

.fl-auth-form {
    width: 100%;
}

.fl-auth-form .input:focus {
    border-color: rgba(5,150,105,.45);
    box-shadow: 0 0 0 4px rgba(5,150,105,.14);
}

.fl-auth-sub-link {
    display: inline-block;
    margin: 4px 0 16px;
    text-decoration: none;
    color: #059669;
    font-size: .92rem;
    font-weight: 600;
}

.fl-auth-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(120deg, #059669, #10B981);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    margin-top: 4px;
}

.fl-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(5,150,105,.35);
    filter: saturate(1.08);
}

.fl-auth-footnote {
    margin-top: 16px;
    color: #6b7d91;
    font-size: .92rem;
}

.fl-auth-footnote a {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
}

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

@media (max-width: 600px) {
    .fl-auth-screen { padding: 10px; }
    .fl-auth-card { border-radius: 16px; padding: 14px 12px 16px; }
    .fl-auth-brand { font-size: 1.12rem; }
    .fl-role-badge { font-size: .68rem; padding: 6px 10px; }
    .fl-auth-card h2 { margin: 6px 0 2px; font-size: clamp(1.45rem, 5vw, 2rem); }
    .fl-auth-card .subtitle { font-size: .82rem; margin-bottom: 14px; }
    .fl-auth-sub-link { margin: 2px 0 10px; font-size: .8rem; }
    .fl-auth-submit { padding: 10px 14px; font-size: .9rem; }
    .fl-auth-footnote { margin-top: 10px; font-size: .8rem; }
}

