/* ══════════════════════════════════════
   HumanitaireHub Jobs — Account Styles
   ══════════════════════════════════════ */

/* ── AUTH FORMS (Login/Register) ──── */
.hh-auth {
    max-width: 680px;
    margin: 40px auto;
    font-family: var(--hh-font, 'Inter', sans-serif);
}

.hh-auth__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hh-auth__card--narrow {
    max-width: 460px;
    margin: 0 auto;
}

.hh-auth__header {
    text-align: center;
    margin-bottom: 32px;
}

.hh-auth__header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
}

.hh-auth__header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* Role Select */
.hh-auth__role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.hh-auth__role-option input[type="radio"] {
    display: none;
}

.hh-auth__role-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.hh-auth__role-card:hover {
    border-color: var(--hh-primary, #0052CC);
}

.hh-auth__role-option input:checked + .hh-auth__role-card {
    border-color: var(--hh-primary, #0052CC);
    background: #E6F0FF;
    box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}

.hh-auth__role-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.hh-auth__role-card strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.hh-auth__role-card small {
    color: #64748b;
    font-size: 12px;
}

/* Form Fields */
.hh-auth__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hh-auth__field {
    margin-bottom: 16px;
}

.hh-auth__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.hh-auth__field input,
.hh-auth__field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hh-auth__field input:focus,
.hh-auth__field select:focus {
    border-color: var(--hh-primary, #0052CC);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,82,204,0.12);
}

.hh-req { color: #EF4444; font-weight: 700; }

/* Checkboxes Grid */
.hh-auth__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.hh-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.hh-auth__checkbox:hover {
    border-color: var(--hh-primary, #0052CC);
}

.hh-auth__checkbox input:checked + span {
    color: var(--hh-primary, #0052CC);
    font-weight: 600;
}

.hh-auth__checkbox-single {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.hh-auth__checkbox-single input {
    margin-top: 3px;
}

/* Submit Button */
.hh-auth__submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--hh-primary, #0052CC), #003D99);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.hh-auth__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,82,204,0.3);
}

.hh-auth__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.hh-auth__switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

.hh-auth__switch a {
    color: var(--hh-primary, #0052CC);
    font-weight: 600;
    text-decoration: none;
}

/* ── ACCOUNT DASHBOARD ────────────── */
.hh-account {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 40px auto;
    font-family: var(--hh-font, 'Inter', sans-serif);
}

.hh-account__sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 40px;
}

.hh-account__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.hh-account__avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.hh-account__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hh-account__nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.hh-account__nav a:hover,
.hh-account__nav a.active {
    background: #E6F0FF;
    color: var(--hh-primary, #0052CC);
}

.hh-account__logout {
    margin-top: 8px;
    color: #EF4444 !important;
}

.hh-account__logout:hover {
    background: #FEF2F2 !important;
    color: #EF4444 !important;
}

.hh-account__content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
}

.hh-account__content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1e293b;
}

.hh-account__table {
    width: 100%;
    border-collapse: collapse;
}

.hh-account__table th,
.hh-account__table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.hh-account__table th {
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.hh-account__table a {
    color: var(--hh-primary, #0052CC);
    text-decoration: none;
    font-weight: 500;
}

/* ── RESPONSIVE ───────────────────── */
@media (max-width: 768px) {
    .hh-auth__role-select,
    .hh-auth__grid {
        grid-template-columns: 1fr;
    }

    .hh-auth__card {
        padding: 24px 16px;
    }

    .hh-account {
        grid-template-columns: 1fr;
    }

    .hh-account__sidebar {
        position: static;
    }

    .hh-account__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hh-account__nav a {
        flex: 1;
        min-width: 100px;
        text-align: center;
        font-size: 12px;
    }
}