/* ═══════════════════════════════════════════
   EAM Home Page — [eam_home] shortcode styles
═══════════════════════════════════════════ */

.eam-home-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fb;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Nav ── */
.eam-home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #d8dee6;
}
.eam-home-nav-left { display: flex; align-items: center; gap: 10px; }
.eam-home-nav-logo { height: 32px; object-fit: contain; }
.eam-home-nav-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 600;
}
.eam-home-nav-name { font-size: 15px; font-weight: 600; color: #1e293b; }
.eam-home-nav-right { display: flex; align-items: center; gap: 10px; }
.eam-home-nav-user { font-size: 13px; color: #64748b; }
.eam-home-nav-btn {
    font-size: 13px; padding: 7px 18px;
    border-radius: 8px; text-decoration: none;
    border: 1px solid #d8dee6;
    color: #334155; background: #fff;
    transition: background 0.15s;
}
.eam-home-nav-btn:hover { background: #f1f5f9; }
.eam-home-nav-btn--ghost { background: transparent; border-color: #b7c0cc; }

/* ── Hero ── */
.eam-home-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 48px;
}
.eam-home-hero-inner { text-align: center; max-width: 760px; width: 100%; }
.eam-home-hero-badge {
    display: inline-block;
    font-size: 12px; font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    background: #ede9fe; color: #5b21b6;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.eam-home-hero-title {
    font-size: 36px; font-weight: 700;
    color: #0f172a; line-height: 1.2;
    margin-bottom: 14px;
}
.eam-home-hero-sub {
    font-size: 15px; color: #64748b;
    margin-bottom: 44px; line-height: 1.6;
}

/* ── Login Cards ── */
.eam-home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.eam-home-card {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    position: relative;
}
.eam-home-card--mgr {
    border: 2px solid #7c3aed;
}
.eam-home-card-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #7c3aed; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 3px 14px; border-radius: 20px;
    white-space: nowrap;
}
.eam-home-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
}
.eam-home-card-icon--emp { background: #dcfce7; color: #15803d; }
.eam-home-card-icon--mgr { background: #ede9fe; color: #7c3aed; }
.eam-home-card h2 {
    font-size: 16px; font-weight: 600;
    color: #1e293b; margin-bottom: 8px;
}
.eam-home-card p {
    font-size: 13px; color: #64748b;
    line-height: 1.5; margin-bottom: 16px;
}
.eam-home-card-features {
    list-style: none; padding: 0; margin: 0 0 20px;
}
.eam-home-card-features li {
    font-size: 12px; color: #475569;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
}
.eam-home-card-features li .ti {
    font-size: 13px; color: #15803d; /* darkened from #22c55e (2.28:1) for AA contrast on white */
}
.eam-home-card-btn {
    display: block; text-align: center;
    padding: 10px 0; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: opacity 0.15s;
}
.eam-home-card-btn:hover { opacity: 0.88; }
.eam-home-card-btn--emp { background: #15803d; color: #fff; }
.eam-home-card-btn--mgr { background: #7c3aed; color: #fff; }

/* ── Already logged in ── */
.eam-home-logged-in { text-align: center; }
.eam-home-logged-label {
    font-size: 14px; color: #475569; margin-bottom: 16px;
}
.eam-home-logged-label strong { color: #1e293b; }
.eam-home-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    text-decoration: none; transition: opacity 0.15s;
}
.eam-home-cta:hover { opacity: 0.88; }
.eam-home-cta--emp { background: #15803d; color: #fff; }
.eam-home-cta--mgr { background: #7c3aed; color: #fff; }

/* ── Footer ── */
.eam-home-footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #6b7686; /* darkened from #94a3b8 (2.56:1) for AA contrast on white */
    border-top: 1px solid #d8dee6;
    background: #fff;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .eam-home-cards { grid-template-columns: 1fr; }
    .eam-home-hero-title { font-size: 26px; }
    .eam-home-nav { padding: 0 16px; }
}

/* ══════════════════════════════════════════
   HOME / LOGIN PAGE — Mobile Fixes
══════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Nav */
    .eam-home-nav {
        padding: 0 14px;
        height: 54px;
    }
    .eam-home-nav-user { display: none; }

    /* Hero */
    .eam-home-hero {
        padding: 32px 16px 28px;
    }
    .eam-home-hero-title {
        font-size: 24px;
        line-height: 1.25;
    }
    .eam-home-hero-sub {
        font-size: 14px;
        margin-bottom: 28px;
    }
    .eam-home-hero-badge {
        font-size: 11px;
        margin-bottom: 14px;
    }

    /* Login cards: single column */
    .eam-home-cards {
        grid-template-columns: 1fr !important;
        gap: 16px;
        max-width: 100%;
    }
    .eam-home-card {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .eam-home-card-btn {
        padding: 12px 0;
        font-size: 14px;
        border-radius: 10px;
    }
    .eam-home-card h2 { font-size: 15px; }
    .eam-home-card p  { font-size: 13px; }

    /* Footer */
    .eam-home-footer { padding: 12px; }
}

@media (max-width: 400px) {
    .eam-home-nav { padding: 0 10px; }
    .eam-home-hero { padding: 24px 12px 20px; }
    .eam-home-hero-title { font-size: 20px; }
    .eam-home-card { padding: 18px 14px; }
}

