/* ═══════════════════════════════════════════════
   SGS PARC AUTO — access.css
   Page d'accès / login
   Tablet-first · High contrast · Sunlight-ready
═══════════════════════════════════════════════ */

/* ── LAYOUT ───────────────────────────────────── */
.access-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ── CARD ─────────────────────────────────────── */
.access-card {
    background: #fff;
    border: 1.5px solid var(--bdr);
    border-radius: 10px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--sh-lg);
    overflow: hidden;
}

/* ── HEADER ───────────────────────────────────── */
.access-header {
    background: var(--nav);
    padding: 28px;
    border-bottom: 3px solid var(--o);
    text-align: center;
}

.access-logo {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.access-header-fr {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .06em;
    line-height: 1.2;
}

.access-header-ar {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
    direction: rtl;
    margin-top: 5px;
}

/* ── BODY ─────────────────────────────────────── */
.access-body {
    padding: 30px;
}

/* ── INTRO BOX ────────────────────────────────── */
.access-intro {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
    text-align: center;
}

.access-intro-fr {
    font-size: 14px;
    font-weight: 700;
    color: var(--dk);
    margin-bottom: 5px;
}

.access-intro-icon {
    color: var(--o);
    margin-right: 6px;
}

.access-intro-ar {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--mid);
    direction: rtl;
}

/* ── PASSWORD SECTION ─────────────────────────── */
.access-pwd-section {
    display: none;
    overflow: hidden;
    margin-bottom: 4px;
}

.access-pwd-section.visible {
    display: block;
}

/* ── ADMIN BADGE ──────────────────────────────── */
.access-admin-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ob);
    border: 1.5px solid rgba(255, 102, 0, .35);
    border-radius: 7px;
    margin-bottom: 14px;
}

.access-admin-badge-icon {
    color: var(--o);
    font-size: 18px;
    flex-shrink: 0;
}

.access-admin-badge-fr {
    font-size: 13px;
    font-weight: 800;
    color: var(--od);
}

.access-admin-badge-ar {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--mid);
    direction: rtl;
    margin-top: 2px;
}

.access-admin-badge-lock {
    color: var(--od);
    margin-left: auto;
    font-size: 16px;
    flex-shrink: 0;
}

/* ── PASSWORD INPUT WRAP ──────────────────────── */
.access-pwd-wrap {
    position: relative;
}

.access-pwd-wrap .fi {
    padding-right: 48px;
}

.access-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mid);
    font-size: 16px;
    padding: 4px;
    transition: color .15s;
}

.access-pwd-toggle:hover {
    color: var(--dk);
}

/* ── SUBMIT BUTTON ────────────────────────────── */
.access-submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 16px;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET FIRST
══════════════════════════════════════════════ */

/* ── Tablet 1024px ────────────────────────────── */
@media (max-width: 1024px) {
    .access-card {
        max-width: 520px;
    }

    .access-header {
        padding: 26px;
    }

    .access-logo {
        height: 56px;
    }

    .access-header-fr {
        font-size: 17px;
    }

    .access-body {
        padding: 28px;
    }

    .access-submit {
        min-height: 52px;
        font-size: 17px;
    }

    .fi {
        height: 50px;
        font-size: 16px;
    }
}

/* ── Mobile 768px ─────────────────────────────── */
@media (max-width: 768px) {
    .access-wrap {
        padding: 20px 14px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .access-card {
        max-width: 100%;
    }

    .access-header {
        padding: 22px 18px;
    }

    .access-logo {
        height: 44px;
        margin-bottom: 10px;
    }

    .access-header-fr {
        font-size: 15px;
    }

    .access-header-ar {
        font-size: 12px;
    }

    .access-body {
        padding: 20px;
    }

    .access-intro {
        padding: 14px;
    }

    .access-intro-fr {
        font-size: 13px;
    }

    .access-submit {
        min-height: 50px;
    }
}

/* ── Very small 480px ─────────────────────────── */
@media (max-width: 480px) {
    .access-wrap {
        padding: 12px 10px;
    }

    .access-header {
        padding: 18px 14px;
    }

    .access-logo {
        height: 38px;
    }

    .access-header-fr {
        font-size: 14px;
    }

    .access-body {
        padding: 16px;
    }

    .access-admin-badge {
        flex-wrap: wrap;
    }

    .access-submit {
        font-size: 15px;
    }
}