/* ==========================================================================
   JOBS LISTING SECTION — Professional Job Board (Hiresy-inspired)
   ========================================================================== */

:root {
    --fh-header-height: 90px;
}

.fh-jobs-section {
    padding: 40px 0 72px;
    background: var(--fh-surface);
}

.fh-jobs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .fh-jobs-layout {
        grid-template-columns: 280px 1fr;
        gap: 32px;
        align-items: start;
    }
}

/* ── Sidebar (Sticky, viewport-capped) ───────────────────────────────────── */
.fh-jobs-sidebar {
    position: sticky;
    top: calc(var(--fh-header-height, 90px) + 24px);
    max-height: calc(100vh - var(--fh-header-height, 90px) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(4, 28, 60, 0.04);
}

.fh-jobs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.fh-jobs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.fh-jobs-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

@media (max-width: 991.98px) {
    .fh-jobs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        max-height: 100vh;
        border-radius: 0;
        border-right: 1px solid var(--fh-border);
        box-shadow: 0 12px 40px rgba(4, 28, 60, 0.12);
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        padding-top: 72px;
        /* No internal scrolling - sidebar content fits */
        overflow: hidden;
    }

    .fh-jobs-sidebar--open {
        transform: translateX(0);
    }

    .fh-jobs-sidebar__overlay {
        position: fixed;
        inset: 0;
        background: rgba(4, 28, 60, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1040;
    }

    .fh-jobs-sidebar__overlay--visible {
        opacity: 1;
        visibility: visible;
    }
}

.fh-jobs-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fh-jobs-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    margin-bottom: 8px;
    background: transparent;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    color: var(--fh-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fh-jobs-sidebar__close:hover {
    color: var(--fh-brand);
    border-color: var(--fh-brand);
    background: var(--fh-brand-soft);
}

/* ── Filter Groups ───────────────────────────────────────────────────────── */
.fh-filter-group {
    margin-bottom: 20px;
}

.fh-filter-group:last-of-type {
    margin-bottom: 8px;
}

.fh-filter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fh-brand);
    margin-bottom: 8px;
}

/* Input wrapper with icon */
.fh-filter-input-wrapper {
    position: relative;
}

.fh-filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fh-muted-light);
    pointer-events: none;
    transition: color 0.2s ease;
}

.fh-filter-input {
    width: 100%;
    padding: 10px 14px 10px 36px !important;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--fh-text);
    background: #fff;
    border: 1px solid var(--fh-border) !important;
    border-radius: 8px;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.fh-filter-input::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.fh-filter-input:focus {
    outline: none;
    border-color: var(--fh-accent);
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

.fh-filter-input:focus + .fh-filter-icon,
.fh-filter-input-wrapper:focus-within .fh-filter-icon {
    color: var(--fh-accent);
}

/* Select */
.fh-filter-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--fh-text);
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 5.5L7 8.5L10 5.5' stroke='%235A7391' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fh-filter-select:focus {
    outline: none;
    border-color: var(--fh-accent);
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

/* Checkbox group */
.fh-filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fh-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--fh-text);
    padding: 2px 0;
}

.fh-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fh-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--fh-border);
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.fh-checkbox:focus-visible + .fh-checkbox-custom {
    outline: none;
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
    border-color: var(--fh-accent);
}

.fh-checkbox:checked + .fh-checkbox-custom {
    background: var(--fh-brand);
    border-color: var(--fh-brand);
    color: #fff;
}

.fh-checkbox-label {
    user-select: none;
}

/* Radio group */
.fh-filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fh-radio-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--fh-text);
    padding: 2px 0;
}

.fh-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fh-radio-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--fh-border);
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.fh-radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fh-brand);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.fh-radio:focus-visible + .fh-radio-custom {
    outline: none;
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
    border-color: var(--fh-accent);
}

.fh-radio:checked + .fh-radio-custom {
    border-color: var(--fh-brand);
}

.fh-radio:checked + .fh-radio-custom::after {
    transform: scale(1);
}

.fh-radio-label {
    user-select: none;
}

/* Filter actions */
.fh-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--fh-border);
    margin-top: 8px;
}

/* Active filters (mobile) */
.fh-active-filters {
    padding: 12px 16px;
    background: var(--fh-brand-soft);
    border: 1px solid rgba(4, 28, 60, 0.1);
    border-radius: 8px;
    margin-top: 12px;
}

.fh-active-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fh-active-filters__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fh-brand);
    margin: 0;
}

.fh-active-filters__clear {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fh-accent);
    text-decoration: none;
}

.fh-active-filters__clear:hover {
    text-decoration: underline;
}

.fh-active-filters__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fh-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--fh-brand);
    background: #fff;
    border: 1px solid rgba(4, 28, 60, 0.1);
    border-radius: 999px;
}

.fh-filter-tag__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: none;
    background: transparent;
    color: var(--fh-muted-light);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.fh-filter-tag__remove:hover {
    color: #fff;
    background: var(--fh-brand);
}

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.fh-jobs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
}

.fh-jobs-toolbar__left,
.fh-jobs-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fh-jobs-toolbar__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fh-brand);
    background: var(--fh-brand-soft);
    border: 1px solid rgba(4, 28, 60, 0.12);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fh-jobs-toolbar__filter-toggle:hover {
    background: rgba(4, 28, 60, 0.1);
    border-color: var(--fh-brand);
}

.fh-toolbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.625rem;
    font-weight: 600;
    color: #fff;
    background: var(--fh-brand);
    border-radius: 999px;
}

.fh-jobs-toolbar__count {
    font-size: 0.875rem;
    color: var(--fh-muted);
}

.fh-toolbar-text {
    font-weight: 500;
}

.fh-toolbar-select-wrapper {
    position: relative;
}

.fh-toolbar-select {
    padding: 8px 32px 8px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fh-text);
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 5.5L7 8.5L10 5.5' stroke='%235A7391' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.fh-toolbar-select:focus {
    outline: none;
    border-color: var(--fh-accent);
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

.fh-toolbar-select__icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fh-muted);
    pointer-events: none;
}

/* View toggle */
.fh-view-toggle {
    display: inline-flex;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    overflow: hidden;
}

.fh-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    color: var(--fh-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.fh-view-toggle__btn:first-child {
    border-right: 1px solid var(--fh-border);
}

.fh-view-toggle__btn:hover {
    color: var(--fh-brand);
    background: var(--fh-brand-soft);
}

.fh-view-toggle__btn.active {
    color: var(--fh-brand);
    background: var(--fh-brand-soft);
}

/* ── Job List ─────────────────────────────────────────────────────────────── */
.fh-jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .fh-jobs-list[data-view="grid"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .fh-jobs-list[data-view="grid"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fh-jobs-list[data-view="list"] {
    grid-template-columns: 1fr;
}

/* ── Job Card — Clean Professional Style (No Logos) ────────────────────────── */
.fh-job-card {
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fh-job-card:hover {
    box-shadow: 0 8px 24px rgba(4, 28, 60, 0.06);
    transform: translateY(-2px);
    border-color: rgba(11, 170, 220, 0.2);
}

.fh-job-card--list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.fh-job-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.fh-job-card--list .fh-job-card__link {
    flex-direction: row;
    width: 100%;
    padding: 20px;
}

/* Job header with badges */
.fh-job-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.fh-job-card__header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fh-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
}

.fh-badge--featured {
    background: var(--fh-brand);
    color: #fff;
}

.fh-badge--urgent {
    background: #dc2626;
    color: #fff;
}

.fh-job-card__bookmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    color: var(--fh-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.fh-job-card__bookmark:hover {
    color: var(--fh-brand);
    border-color: var(--fh-brand);
    background: var(--fh-brand-soft);
}

/* Job title */
.fh-job-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fh-brand);
    margin: 0 0 6px;
}

/* Company & location */
.fh-job-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--fh-muted);
    margin-bottom: 10px;
}

.fh-job-card__company {
    font-weight: 500;
    color: var(--fh-text);
}

.fh-job-card__separator {
    color: var(--fh-muted-light);
}

.fh-job-card__location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tags row */
.fh-job-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.fh-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 999px;
    white-space: nowrap;
}

.fh-tag svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.fh-tag--category {
    background: var(--fh-accent-soft);
    color: var(--fh-accent);
    border: 1px solid rgba(11, 170, 220, 0.2);
}

.fh-tag--type {
    background: rgba(4, 28, 60, 0.05);
    color: var(--fh-muted);
    border: 1px solid var(--fh-border);
}

.fh-tag--experience {
    background: rgba(5, 150, 105, 0.07);
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.fh-tag--salary {
    background: rgba(4, 28, 60, 0.05);
    color: var(--fh-brand);
    border: 1px solid var(--fh-border);
}

/* Job card details (list view) */
.fh-job-card__details {
    padding-top: 12px;
    border-top: 1px solid var(--fh-border);
    margin-top: auto;
}

.fh-job-card__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fh-muted);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fh-job-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fh-job-card__posted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--fh-muted-light);
}

/* Job card footer (grid view) */
.fh-job-card__footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px 0;
    border-top: 1px solid var(--fh-border);
    margin-top: auto;
}

/* Buttons */
.fh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fh-btn--primary {
    background: var(--fh-brand);
    color: #fff;
    border-color: var(--fh-brand);
}

.fh-btn--primary:hover {
    background: var(--fh-brand-dark);
    border-color: var(--fh-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 28, 60, 0.15);
}

.fh-btn--outline {
    background: #fff;
    border-color: var(--fh-border);
    color: var(--fh-text);
}

.fh-btn--outline:hover {
    background: var(--fh-brand-soft);
    border-color: var(--fh-brand);
    color: var(--fh-brand);
}

.fh-btn--sm {
    padding: 8px 14px;
    font-size: 0.75rem;
}

.fh-btn.w-100 {
    width: 100%;
}

/* Empty state */
.fh-jobs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.fh-jobs-empty__icon {
    margin-bottom: 16px;
    color: var(--fh-muted-light);
}

.fh-jobs-empty__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fh-brand);
    margin: 0 0 6px;
}

.fh-jobs-empty__text {
    font-size: 0.875rem;
    color: var(--fh-muted);
    margin: 0 0 20px;
    max-width: 320px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.fh-jobs-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 4px;
    margin-top: 4px;
}

.fh-pagination {
    flex: 1;
    min-width: 0;
}

.fh-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fh-pagination__item {
    display: flex;
}

.fh-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fh-text);
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.fh-pagination__link:hover:not(.disabled):not(.fh-pagination__link--current) {
    color: var(--fh-brand);
    border-color: var(--fh-brand);
    background: var(--fh-brand-soft);
}

.fh-pagination__link--current {
    color: #fff;
    background: var(--fh-brand);
    border-color: var(--fh-brand);
    cursor: default;
}

.fh-pagination__link.disabled,
.fh-pagination__link[aria-disabled="true"] {
    color: var(--fh-muted-light);
    background: #fff;
    border-color: var(--fh-border);
    cursor: not-allowed.
}

.fh-pagination__link--prev,
.fh-pagination__link--next {
    gap: 6px.
}

.fh-pagination__link-text {
    display: none.
}

@media (min-width: 640px) {
    .fh-pagination__link-text {
        display: inline.
    }
}

.fh-pagination__ellipsis {
    display: flex.
    align-items: center.
    justify-content: center.
    min-width: 36px.
    height: 36px.
    color: var(--fh-muted-light).
    font-weight: 500.
}

.fh-pagination__info {
    display: flex.
    align-items: center.
    font-size: 0.8125rem.
    color: var(--fh-muted).
    white-space: nowrap.
}

@media (max-width: 575.98px) {
    .fh-jobs-pagination {
        flex-direction: column.
        align-items: stretch.
    }

    .fh-pagination {
        width: 100%.
    }

    .fh-pagination__info {
        justify-content: center.
    }
}

/* ── Responsive adjustments ───────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .fh-jobs-section {
        padding: 28px 0 56px;
    }

    .fh-jobs-toolbar {
        padding: 10px 14px.
    }

    .fh-job-card__link {
        padding: 16px.
    }

    .fh-job-card--list .fh-job-card__link {
        padding: 16px.
    }

    .fh-job-card__title {
        font-size: 1rem.
    }
}

@media (max-width: 767.98px) {
    .fh-jobs-list[data-view="grid"] {
        grid-template-columns: 1fr.
    }

    .fh-job-card--list {
        flex-direction: column.
    }

    .fh-job-card--list .fh-job-card__link {
        flex-direction: column.
    }
}

/* Print styles */
@media print {
    .fh-jobs-sidebar,
    .fh-jobs-toolbar,
    .fh-jobs-pagination {
        display: none !important;
    }

    .fh-jobs-list {
        display: block !important;
    }

    .fh-job-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   AUTH SECTION — Professional Registration & Login
   ========================================================================== */

.fh-auth-section {
    padding: 60px 0 80px;
    background: var(--fh-surface);
    min-height: calc(100vh - var(--fh-header-height, 90px));
    display: flex;
    align-items: center;
}

.fh-auth-card {
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(4, 28, 60, 0.06);
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.fh-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.fh-auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fh-brand);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.fh-auth-subtitle {
    font-size: 1rem;
    color: var(--fh-muted);
    margin: 0;
    font-weight: 400;
}

/* ── Form -- */
.fh-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fh-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fh-form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fh-text);
}

.fh-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--fh-text);
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.fh-form-input:focus {
    outline: none;
    border-color: var(--fh-accent);
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

.fh-form-input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.fh-form-input::placeholder {
    color: var(--fh-muted-light);
}

/* Select wrapper */
.fh-role-select-wrapper {
    position: relative;
}

.fh-form-select {
    width: 100%;
    padding: 12px 44px 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--fh-text);
    background: #fff;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 5.5L7 8.5L10 5.5' stroke='%235A7391' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fh-form-select:focus {
    outline: none;
    border-color: var(--fh-accent);
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

.fh-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fh-muted);
    pointer-events: none;
}

/* Password wrapper */
.fh-password-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.fh-password-wrapper .fh-form-input {
    padding-right: 48px;
    border-radius: 8px;
}

.fh-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--fh-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 6px;
    z-index: 10;
}

.fh-password-toggle:hover {
    color: var(--fh-brand);
    background: var(--fh-brand-soft);
}

.fh-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

/* Company field */
.fh-company-field {
    animation: fh-slide-down 0.2s ease;
}

@keyframes fh-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error messages */
.fh-form-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 4px;
    display: block;
}

/* Submit button */
.fh-auth-submit {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
}

.fh-btn--block {
    width: 100%;
}

/* Footer */
.fh-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--fh-border);
}

.fh-auth-link {
    font-size: 0.875rem;
    color: var(--fh-brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fh-auth-link:hover {
    color: var(--fh-brand-dark);
    text-decoration: underline;
}

/* Trust indicators */
.fh-auth-trust {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fh-border);
    text-align: center;
}

.fh-trust-text {
    font-size: 0.75rem;
    color: var(--fh-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.fh-trust-link {
    color: var(--fh-brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fh-trust-link:hover {
    color: var(--fh-brand-dark);
    text-decoration: underline;
}

.fh-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.fh-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--fh-brand);
    background: var(--fh-brand-soft);
    border: 1px solid rgba(4, 28, 60, 0.12);
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 575.98px) {
    .fh-auth-section {
        padding: 40px 16px 60px;
    }

    .fh-auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .fh-auth-title {
        font-size: 1.5rem;
    }

    .fh-auth-subtitle {
        font-size: 0.875rem;
    }
}

/* Focus visible for accessibility */
.fh-form-input:focus-visible,
.fh-form-select:focus-visible,
.fh-btn:focus-visible,
.fh-password-toggle:focus-visible,
.fh-auth-link:focus-visible,
.fh-trust-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--fh-accent-soft);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fh-company-field {
        animation: none;
    }

    .fh-form-input,
    .fh-form-select,
    .fh-btn,
    .fh-password-toggle {
        transition: none;
    }
}