body {
    background: #f1f5f9;
}

.auth-shell {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 2.5rem 1rem;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(62deg, #70e1f59c, #ffd1949e);
}

.auth-grid {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: stretch;
}

.auth-grid-reg {
    max-width: 1180px;
    grid-template-columns: 1fr 1.3fr;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: authReveal .8s ease forwards;
}

    .reveal:nth-child(2) {
        animation-delay: .15s;
    }

@keyframes authReveal {
    to {
        opacity: 1;
        transform: none;
    }
}

/* BRAND PANEL */
.auth-brand {
    position: relative;
    border-radius: 1.5rem;
    padding: 2.25rem;
    color: #fff;
    background: linear-gradient(140deg,#064e3b 0%,#065f46 40%,#0f766e 100%);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

    .auth-brand::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 10%, rgba(34,197,94,.4), transparent 55%), radial-gradient(circle at 20% 90%, rgba(14,165,233,.3), transparent 60%);
        pointer-events: none;
    }

.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-logo {
    height: 125px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(6, 95, 70, 0.25));
    transition: transform .3s ease;
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 1.5rem 0 .75rem;
    letter-spacing: -.02em;
}

    .auth-brand-title span {
        color: #86efac;
    }

.auth-brand-sub {
    color: rgba(255,255,255,.85);
    margin-bottom: 1.5rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

    .auth-features li {
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .6rem .8rem;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: .75rem;
        backdrop-filter: blur(4px);
        font-size: .9rem;
    }

    .auth-features i {
        color: #86efac;
        font-size: 1.1rem;
    }

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.18);
}

    .auth-stats div {
        display: flex;
        flex-direction: column;
    }

    .auth-stats strong {
        font-size: 1.4rem;
        font-weight: 800;
        color: #fff;
    }

    .auth-stats span {
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255,255,255,.7);
    }

/* CARD */
.auth-card-wrap {
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    border: 1px solid #e2e8f0;
}

.auth-card-wide {
    padding: 2.25rem 2.25rem;
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-icon-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto .75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    box-shadow: 0 12px 24px -10px rgba(22,163,74,.5);
    animation: authPulse 2.4s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.auth-card-head h3 {
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -.02em;
}

.auth-card-head p {
    color: #64748b;
    margin: .25rem 0 0;
    font-size: .92rem;
}

/* STEP indicator */
.auth-steps {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 auto 1.5rem;
    max-width: 520px;
}

    .auth-steps .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .3rem;
        flex-shrink: 0;
    }

        .auth-steps .step span {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #e2e8f0;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            transition: all .3s ease;
        }

        .auth-steps .step.active span {
            background: linear-gradient(135deg,#16a34a,#22c55e);
            color: #fff;
            box-shadow: 0 6px 14px -6px rgba(22,163,74,.55);
            transform: scale(1.05);
        }

        .auth-steps .step label {
            font-size: .72rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: .5px;
            font-weight: 600;
        }

        .auth-steps .step.active label {
            color: #16a34a;
        }

    .auth-steps .step-line {
        flex: 1;
        height: 2px;
        background: #e2e8f0;
    }

/* FORM */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: .25rem;
}

.auth-section-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
}

    .auth-section-title i {
        color: #16a34a;
    }

.auth-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-alert {
    display: none;
}

    .auth-alert:not(:empty) {
        display: block;
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #b91c1c;
        padding: .65rem .8rem;
        border-radius: .65rem;
        font-size: .85rem;
    }

.auth-alert-warn {
    background: #fef9c3;
    border-color: #fde047;
    color: #854d0e;
}

.auth-field {
    position: relative;
}

.auth-field-icon {
    position: absolute;
    left: .95rem;
    top: 1.05rem;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
    transition: color .2s ease;
}

.auth-input {
    width: 100%;
    padding: 1.05rem 2.65rem 1.05rem 2.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: .85rem;
    background: #f8fafc;
    font-size: .95rem;
    color: #0f172a;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .auth-input:focus {
        outline: none;
        border-color: #16a34a;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(22,163,74,.12);
    }

        .auth-input:focus ~ .auth-field-icon {
            color: #16a34a;
        }

.auth-label {
    position: absolute;
    left: 2.6rem;
    top: 1.05rem;
    color: #94a3b8;
    pointer-events: none;
    font-size: .95rem;
    transition: all .2s ease;
    background: transparent;
    padding: 0 .35rem;
}

.auth-input:focus + .auth-label,
.auth-input:not(:placeholder-shown) + .auth-label {
    top: -.55rem;
    transform: scale(.85);
    left: .95rem;
    color: #16a34a;
    background: #fff;
    font-weight: 600;
}

.auth-error {
    display: block;
    color: #dc2626;
    font-size: .78rem;
    margin-top: .25rem;
    padding-left: .4rem;
}

.auth-pwd-toggle {
    position: absolute;
    right: .75rem;
    top: .85rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: .25rem;
}

    .auth-pwd-toggle:hover {
        color: #16a34a;
    }

/* Password strength */
.auth-strength {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.auth-strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

    .auth-strength-bar span {
        display: block;
        width: 0;
        height: 100%;
        background: linear-gradient(135deg,#16a34a,#22c55e);
        border-radius: 999px;
        transition: width .35s ease, background .35s ease;
    }

#pwdStrengthLabel {
    color: #94a3b8;
    font-size: .75rem;
}

/* Sector dropdown */
.auth-sector-dropdown {
    position: relative;
}

.auth-sector-trigger {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: .7rem;
    background: #f8fafc;
    color: #0f172a;
    padding: .75rem .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    cursor: pointer;
}

    .auth-sector-trigger:hover {
        border-color: #86efac;
    }

    .auth-sector-trigger:focus {
        outline: none;
        border-color: #16a34a;
        box-shadow: 0 0 0 4px rgba(22,163,74,.12);
    }

    .auth-sector-trigger i {
        color: #94a3b8;
        transition: transform .2s ease;
    }

.auth-sector-dropdown.open .auth-sector-trigger i {
    transform: rotate(180deg);
}

.auth-sector-menu {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: 20;
    border: 1px solid #e2e8f0;
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 18px 30px -20px rgba(15,23,42,.45);
    max-height: 230px;
    overflow-y: auto;
    padding: .35rem;
}

    .auth-sector-menu::-webkit-scrollbar {
        width: 6px;
    }

    .auth-sector-menu::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 6px;
    }

.auth-sector-dropdown.open .auth-sector-menu {
    display: block;
}

.auth-sector-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .55rem;
    border-radius: .55rem;
    cursor: pointer;
    font-size: .88rem;
    color: #334155;
}

    .auth-sector-option:hover {
        background: #f8fafc;
    }

    .auth-sector-option input {
        width: 15px;
        height: 15px;
        accent-color: #16a34a;
    }

.auth-hint {
    font-size: .78rem;
    color: #94a3b8;
}

/* Toggle switches */
.auth-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.auth-toggle {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: .85rem;
    background: #f8fafc;
    transition: all .2s ease;
}

    .auth-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.auth-toggle-ui {
    width: 42px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
    transition: background .25s ease;
}

    .auth-toggle-ui::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        background: #fff;
        border-radius: 50%;
        transition: all .25s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,.15);
    }

.auth-toggle input:checked + .auth-toggle-ui {
    background: linear-gradient(135deg,#16a34a,#22c55e);
}

    .auth-toggle input:checked + .auth-toggle-ui::after {
        left: 21px;
    }

.auth-toggle-text {
    display: flex;
    flex-direction: column;
}

    .auth-toggle-text strong {
        color: #0f172a;
        font-size: .88rem;
    }

    .auth-toggle-text small {
        color: #64748b;
        font-size: .75rem;
    }

.auth-toggle:has(input:checked) {
    border-color: #86efac;
    background: #f0fdf4;
}

.auth-btn {
    position: relative;
    border: 0;
    padding: .95rem 1rem;
    border-radius: .85rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    cursor: pointer;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
    box-shadow: 0 12px 24px -12px rgba(22, 163, 74, .6);
    margin-top: .5rem;
}

    .auth-btn span {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        width: 100%;
    }

    .auth-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #15803d, #16a34a);
        opacity: 0;
        transition: opacity .18s ease;
        z-index: 0;
    }

    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 26px -12px rgba(22, 163, 74, .65);
    }

        .auth-btn:hover::before {
            opacity: 1;
        }

    .auth-btn:active {
        transform: translateY(0) scale(.98);
    }

/* Shine animation */
.btn-animated::after {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    width: 22%;
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255,255,255,.45), transparent );
    transform: skewX(-20deg);
    z-index: 1;
    pointer-events: none;
}

.btn-animated:hover::after {
    animation: sheen .55s ease;
}

@keyframes sheen {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* Link */
.auth-link {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
}

    .auth-link:hover {
        color: #065f46;
        text-decoration: underline;
    }

    .auth-link.strong {
        font-weight: 700;
    }

.auth-foot {
    text-align: center;
    color: #475569;
    font-size: .9rem;
}

.auth-job-notices {
    margin-top: 1rem;
    border: 1px solid #dcfce7;
    background: #f8fff9;
    border-radius: .85rem;
    padding: .85rem;
}

.auth-job-notices-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .65rem;
}

    .auth-job-notices-head h4 {
        margin: 0;
        font-size: .86rem;
        color: #166534;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: .35rem;
    }

.auth-job-notices-list {
    display: grid;
    gap: .5rem;
}

.auth-job-notice {
    display: grid;
    gap: .12rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: .7rem;
    padding: .55rem .65rem;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}

    .auth-job-notice:hover {
        border-color: #86efac;
        transform: translateY(-1px);
    }

    .auth-job-notice strong {
        color: #0f172a;
        font-size: .86rem;
        line-height: 1.2;
    }

    .auth-job-notice span {
        color: #64748b;
        font-size: .76rem;
    }

@media (max-width: 900px) {
    .auth-grid, .auth-grid-reg {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 1.75rem;
    }

    .auth-brand-title {
        font-size: 1.6rem;
    }

    .auth-grid2 {
        grid-template-columns: 1fr;
    }

    .auth-toggles {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .auth-icon-circle,
    .btn-animated:hover::after {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
