EJPC

<!DOCTYPE html>
<html lang="pt">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>EJPC Pay</title>

    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: Arial, Helvetica, sans-serif;
        }

        body {
            min-height: 100vh;
            background: linear-gradient(135deg, #f4f7fb, #e9eef5);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 25px;
        }

        .container {
            width: 100%;
            max-width: 1000px;
            background: white;
            border-radius: 24px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.12);
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        /* LADO ESQUERDO */
        .left {
            background: linear-gradient(150deg, #111827, #1f2937);
            color: white;
            padding: 55px 45px;
            position: relative;
        }

        .logo {
            font-size: 28px;
            font-weight: bold;
            letter-spacing: 1px;
            margin-bottom: 70px;
        }

        .logo span {
            color: #f5c542;
        }

        .left h1 {
            font-size: 40px;
            line-height: 1.15;
            margin-bottom: 20px;
        }

        .left p {
            color: #d1d5db;
            line-height: 1.7;
            font-size: 16px;
            margin-bottom: 35px;
        }

        .features {
            display: flex;
            flex-direction: column;
            gap: 17px;
        }

        .feature {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #e5e7eb;
        }

        .check {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: #f5c542;
            color: #111827;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            font-size: 13px;
        }

        /* LADO DIREITO */
        .right {
            padding: 45px;
        }

        .right h2 {
            font-size: 27px;
            color: #111827;
            margin-bottom: 8px;
        }

        .subtitle {
            color: #6b7280;
            margin-bottom: 30px;
        }

        label {
            display: block;
            font-size: 14px;
            font-weight: bold;
            color: #374151;
            margin-bottom: 8px;
        }

        input, select {
            width: 100%;
            padding: 15px;
            border: 1px solid #d1d5db;
            border-radius: 11px;
            outline: none;
            font-size: 15px;
            margin-bottom: 20px;
            transition: 0.2s;
        }

        input:focus, select:focus {
            border-color: #f5c542;
            box-shadow: 0 0 0 3px rgba(245,197,66,0.15);
        }

        .amount {
            position: relative;
        }

        .currency {
            position: absolute;
            right: 15px;
            top: 15px;
            color: #6b7280;
            font-weight: bold;
        }

        button {
            width: 100%;
            border: none;
            padding: 16px;
            border-radius: 11px;
            background: #111827;
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.2s;
        }

        button:hover {
            background: #374151;
            transform: translateY(-1px);
        }

        /* REFERÊNCIA */
        .reference-box {
            display: none;
            margin-top: 25px;
            padding: 22px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 15px;
        }

        .reference-box.active {
            display: block;
        }

        .reference-title {
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 15px;
        }

        .payment-row {
            display: flex;
            justify-content: space-between;
            padding: 11px 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .payment-row:last-child {
            border-bottom: none;
        }

        .payment-label {
            color: #6b7280;
        }

        .payment-value {
            font-weight: bold;
            color: #111827;
        }

        .reference-number {
            font-size: 25px;
            letter-spacing: 2px;
            color: #111827;
        }

        .success {
            margin-top: 15px;
            padding: 12px;
            background: #ecfdf5;
            color: #047857;
            border-radius: 9px;
            text-align: center;
            font-size: 14px;
            font-weight: bold;
        }

        .footer {
            margin-top: 25px;
            text-align: center;
            color: #9ca3af;
            font-size: 12px;
        }

        @media (max-width: 750px) {
            .container {
                grid-template-columns: 1fr;
            }

            .left {
                padding: 35px;
            }

            .logo {
                margin-bottom: 40px;
            }

            .left h1 {
                font-size: 32px;
            }

            .right {
                padding: 35px;
            }
        }
    </style>
</head>

<body>

<div class="container">

    <!-- LADO ESQUERDO -->
    <section class="left">

        <div class="logo">
            EJPC<span>PAY</span>
        </div>

        <h1>
            Receba pagamentos de forma simples.
        </h1>

        <p>
            Gere uma referência de pagamento para os seus clientes
            e acompanhe as suas cobranças numa única plataforma.
        </p>

        <div class="features">

            <div class="feature">
                <div class="check">✓</div>
                Referências personalizadas
            </div>

            <div class="feature">
                <div class="check">✓</div>
                Pagamentos em Kwanzas
            </div>

            <div class="feature">
                <div class="check">✓</div>
                Acompanhamento das cobranças
            </div>

            <div class="feature">
                <div class="check">✓</div>
                Interface simples e segura
            </div>

        </div>

    </section>


    <!-- LADO DIREITO -->
    <section class="right">

        <h2>Nova cobrança</h2>

        <p class="subtitle">
            Preencha os dados para gerar uma referência.
        </p>


        <label for="cliente">
            Nome do cliente
        </label>

        <input
            type="text"
            id="cliente"
            placeholder="Ex.: João Manuel"
        >


        <label for="telefone">
            Número de telefone
        </label>

        <input
            type="tel"
            id="telefone"
            placeholder="Ex.: 923 000 000"
        >


        <label for="valor">
            Valor da cobrança
        </label>

        <div class="amount">

            <input
                type="number"
                id="valor"
                placeholder="0,00"
                min="1"
            >

            <span class="currency">
                Kz
            </span>

        </div>


        <label for="descricao">
            Descrição
        </label>

        <input
            type="text"
            id="descricao"
            placeholder="Ex.: Compra de produtos"
        >


        <button onclick="gerarReferencia()">
            Gerar referência
        </button>


        <!-- RESULTADO -->
        <div id="resultado" class="reference-box">

            <div class="reference-title">
                REFERÊNCIA DE PAGAMENTO
            </div>

            <div class="payment-row">
                <span class="payment-label">
                    Entidade
                </span>

                <span class="payment-value">
                    12345
                </span>
            </div>

            <div class="payment-row">
                <span class="payment-label">
                    Referência
                </span>

                <span
                    class="payment-value reference-number"
                    id="referencia"
                >
                    000 000 000
                </span>
            </div>

            <div class="payment-row">
                <span class="payment-label">
                    Valor
                </span>

                <span
                    class="payment-value"
                    id="valorFinal"
                >
                    0 Kz
                </span>
            </div>

            <div class="payment-row">
                <span class="payment-label">
                    Cliente
                </span>

                <span
                    class="payment-value"
                    id="clienteFinal"
                >
                    —
                </span>
            </div>

            <div class="success">
                ✓ Referência criada com sucesso
            </div>

        </div>


        <div class="footer">
            EJPC Pay © 2026 — Sistema de pagamentos
        </div>

    </section>

</div>


<script>

function gerarReferencia() {

    const cliente = document.getElementById("cliente").value;
    const valor = document.getElementById("valor").value;

    if (cliente === "" || valor === "") {
        alert("Preencha o nome do cliente e o valor.");
        return;
    }

    /*
        GERAÇÃO APENAS PARA DEMONSTRAÇÃO.

        Esta referência NÃO é uma referência Multicaixa real.
    */

    let numero = Math.floor(
        100000000 + Math.random() * 900000000
    );

    let referencia =
        numero.toString().replace(
            /(\d{3})(\d{3})(\d{3})/,
            "$1 $2 $3"
        );

    document.getElementById("referencia")
        .textContent = referencia;

    document.getElementById("valorFinal")
        .textContent =
        Number(valor).toLocaleString("pt-AO") + " Kz";

    document.getElementById("clienteFinal")
        .textContent = cliente;

    document.getElementById("resultado")
        .classList.add("active");
}

</script>

</body>
</html>