﻿/* Damai City Purchaser Registration - standalone styling */
:root {
    --dc-plum: #64264f;
    --dc-plum-dark: #4f1d40;
    --dc-gold: #c99b55;
    --dc-ink: #172033;
    --dc-muted: #718096;
    --dc-border: #e3e8f0;
    --dc-input: #f5f7fb;
}

html {
    min-height: 100%;
    background: #eef1f7;
}

body.authentication-bg {
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px 18px;
    color: var(--dc-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at 12% 12%, rgba(100, 38, 79, .11), transparent 32%), radial-gradient(circle at 88% 85%, rgba(201, 155, 85, .15), transparent 30%), linear-gradient(135deg, #f5f3f7 0%, #edf1f8 48%, #f8f6f3 100%);
    background-attachment: fixed;
}

.account-pages {
    min-height: calc(100vh - 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

    .account-pages > .container {
        width: 100%;
        max-width: 900px;
    }

        .account-pages > .container > .row {
            margin: 0;
        }

    .account-pages .col-xl-5,
    .account-pages .col-lg-6,
    .account-pages .col-md-8 {
        width: 100%;
        max-width: 680px;
        flex: 0 0 100%;
        padding: 0;
    }

.auth-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 24px 70px rgba(31, 35, 55, .14) !important;
}

    .auth-card > .card-body {
        padding: 38px 46px 32px !important;
    }

    .auth-card .text-center.mb-4 {
        margin-bottom: 28px !important;
    }

        .auth-card .text-center.mb-4 > a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .auth-card .text-center.mb-4 img {
            display: none;
        }

    /* Company branding is rendered from the existing status text plus this CSS heading */
    .auth-card .company-status {
        margin-top: 7px;
        color: #000000;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.6;
    }

        .auth-card .company-status::before {
            content: "Damai City Sdn. Bhd.";
            display: block;
            margin-bottom: 3px;
            color: #000000;
            font-size: clamp(22px, 3vw, 38px);
            font-weight: 800;
            letter-spacing: -.8px;
            line-height: 1.25;
        }

#stepIdentification h2 {
    margin: 0 0 10px;
    color: var(--dc-plum);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .25px;
}

#stepIdentification > p {
    margin-bottom: 26px !important;
    color: var(--dc-muted) !important;
    font-size: 14px;
    line-height: 1.65;
}

.auth-card .form-label,
.auth-card label.form-label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.auth-card .form-control,
.auth-card .form-select {
    min-height: 47px;
    border: 1px solid var(--dc-border) !important;
    border-radius: 9px !important;
    background-color: var(--dc-input) !important;
    color: #202a3b;
    box-shadow: none !important;
    font-size: 14px;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.auth-card .form-control {
    padding: 11px 14px;
}

.auth-card .form-select {
    padding: 11px 38px 11px 14px;
}

    .auth-card .form-control:focus,
    .auth-card .form-select:focus {
        border-color: var(--dc-plum) !important;
        background-color: #fff !important;
        box-shadow: 0 0 0 3px rgba(100, 38, 79, .10) !important;
    }

.auth-card .form-control::placeholder {
    color: #98a2b3;
}

.auth-card .btn-primary {
    min-height: 48px;
    border: 1px solid var(--dc-plum) !important;
    border-radius: 9px !important;
    background: linear-gradient(100deg, var(--dc-plum), #77315f) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(100, 38, 79, .18);
    font-size: 15px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .auth-card .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 11px 22px rgba(100, 38, 79, .24);
        filter: brightness(1.03);
    }

    .auth-card .btn-primary:focus-visible {
        outline: 3px solid rgba(100, 38, 79, .25);
        outline-offset: 2px;
    }

.auth-card .btn-link,
.auth-card a:not(.text-center a) {
    color: var(--dc-plum);
}

.auth-card .btn-link {
    font-weight: 700;
    text-decoration: none;
}

    .auth-card .btn-link:hover,
    .auth-card a:hover {
        color: var(--dc-plum-dark);
    }

.auth-card .alert {
    border-radius: 9px;
    font-size: 13px;
}

.auth-card #stepOTP .bx-envelope {
    color: var(--dc-plum);
}

.auth-card #unitList {
    padding: 10px 14px;
    background: #f8fafc !important;
}

.auth-card .form-check-input:checked {
    border-color: var(--dc-plum);
    background-color: var(--dc-plum);
}

.auth-card .text-center.mt-4 small {
    display: block;
    color: #7b8798 !important;
    font-size: 11px;
    line-height: 1.7;
}

.auth-card .text-center.mt-4 {
    margin-top: 24px !important;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
}

    .auth-card .text-center.mt-4 + br + p {
        margin: 20px 0 0;
        color: #7b8798;
        font-size: 13px;
    }

        .auth-card .text-center.mt-4 + br + p a {
            color: var(--dc-plum);
            font-weight: 750;
            text-decoration: none;
        }

/* Help text / support desk note */
.auth-card .card-body > p:not(.text-muted) {
    color: #748094;
    font-size: 11px;
    line-height: 1.7;
}

.account-pages .text-center.mt-3 small {
    color: #7d8798 !important;
    font-size: 12px;
}

@media (max-width: 767px) {
    body.authentication-bg {
        padding: 14px 12px;
    }

    .account-pages {
        min-height: auto;
        align-items: flex-start;
    }

    .auth-card {
        border-radius: 16px !important;
    }

        .auth-card > .card-body {
            padding: 28px 22px 24px !important;
        }

        .auth-card .text-center.mb-4 {
            margin-bottom: 24px !important;
        }

    #stepIdentification h2 {
        font-size: 18px;
    }

    #stepIdentification > p {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .auth-card > .card-body {
        padding: 24px 16px 20px !important;
    }

    .auth-card .company-status::before {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

#btnRegisterPurchaser:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btnRegisterPurchaser:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}
.support-contact-card {
    margin-top: 28px;
    padding: 20px;
    background: #f8f7fb;
    border: 1px solid #e9e2ed;
    border-radius: 12px;
}

.support-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.support-mail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f0e4ef;
    color: #642a53;
    border-radius: 10px;
    font-size: 24px;
}

.support-card-header h6 {
    margin: 0 0 4px;
    color: #263247;
    font-size: 16px;
    font-weight: 700;
}

.support-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.support-tower-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #e9e2ed;
}

.support-tower-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.support-tower-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #642a53;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .support-tower-row a:hover {
        color: #8b3e70;
        text-decoration: underline;
    }

@media (max-width: 576px) {
    .support-contact-card {
        padding: 15px;
    }

    .support-tower-row a {
        font-size: 13px;
    }
}


.reg-page {
    --reg-primary: #5b4de0;
    --reg-border: #e8edf4;
    --reg-text: #334155;
    --reg-muted: #64748b;
}

.reg-card {
    border: 1px solid var(--reg-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(23,43,77,.05), 0 4px 14px rgba(23,43,77,.05);
}

/* ---------- Header ---------- */
.reg-header {
    margin-bottom: 18px;
}

.reg-title {
    margin: 0;
    color: #172b4d;
    font-size: 18px;
    font-weight: 700;
}

.reg-subtitle {
    margin: 4px 0 0;
    color: var(--reg-muted);
    font-size: 13px;
}

/* ---------- Filter chips ---------- */
.reg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.reg-chip {
    --c: var(--reg-primary);
    --s: #eceafd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--reg-text);
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}

    .reg-chip:hover {
        border-color: var(--c);
        color: var(--c);
    }

    .reg-chip.active {
        background: var(--s);
        border-color: var(--c);
        color: var(--c);
    }

.reg-chip-count {
    min-width: 22px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    background: #f1f5f9;
    border-radius: 999px;
}

.reg-chip.active .reg-chip-count {
    background: var(--c);
    color: #fff;
}

.chip-red {
    --c: #dc2626;
    --s: #fee2e2;
}

.chip-green {
    --c: #16a34a;
    --s: #dcfce7;
}

.chip-amber {
    --c: #d97706;
    --s: #fef3c7;
}

/* ---------- Table ---------- */
.reg-table {
    margin: 0;
    font-size: 13.5px;
    border-collapse: separate;
    border-spacing: 0;
}

    .reg-table thead th {
        padding: 12px 14px;
        color: var(--reg-muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .03em;
        background: #f8fafc;
        border-top: 1px solid var(--reg-border);
        border-bottom: 1px solid var(--reg-border);
        white-space: nowrap;
    }

        .reg-table thead th:first-child {
            border-left: 1px solid var(--reg-border);
            border-top-left-radius: 10px;
        }

        .reg-table thead th:last-child {
            border-right: 1px solid var(--reg-border);
            border-top-right-radius: 10px;
        }

    /* column search inputs (text-inputs-searching script) */
    .reg-table thead input {
        width: 100%;
        min-width: 110px;
        padding: 6px 10px;
        font-size: 12.5px;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: var(--reg-text);
        background: #fff;
        border: 1px solid #dbe3ee;
        border-radius: 8px;
    }

        .reg-table thead input:focus {
            outline: none;
            border-color: var(--reg-primary);
            box-shadow: 0 0 0 3px rgba(91,77,224,.15);
        }

    .reg-table tbody td {
        padding: 14px;
        color: var(--reg-text);
        vertical-align: middle;
        border-bottom: 1px solid #eef2f7;
        background: #fff;
    }

    .reg-table tbody tr:hover td {
        background: #f7f9fe;
    }

.reg-id {
    color: var(--reg-primary);
    font-weight: 600;
}

/* ---------- Person ---------- */
.reg-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--reg-primary);
    background: #eceafd;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

.reg-person-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reg-name {
    color: #172b4d;
    font-weight: 600;
    line-height: 1.3;
}

.reg-email {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--reg-muted);
    font-size: 12.5px;
}

/* ---------- Status pill ---------- */
.reg-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    color: var(--c);
    background: var(--s);
}

.reg-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c);
}

.pill-green {
    --c: #15803d;
    --s: #dcfce7;
}

.pill-red {
    --c: #b91c1c;
    --s: #fee2e2;
}

.pill-amber {
    --c: #b45309;
    --s: #fef3c7;
}

.pill-grey {
    --c: #475569;
    --s: #f1f5f9;
}

/* ---------- Actions ---------- */
.reg-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.reg-btn {
    --c: var(--reg-primary);
    --s: #eceafd;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--c);
    background: var(--s);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: all .15s;
}

    .reg-btn:hover {
        color: #fff;
        background: var(--c);
        transform: translateY(-1px);
    }

.reg-btn-mail {
    --c: #d97706;
    --s: #fef3c7;
}

/* ---------- DataTables ---------- */
.reg-page .dataTables_wrapper .dataTables_filter input,
.reg-page .dataTables_wrapper .dataTables_length select {
    padding: 6px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
}

.reg-page .dataTables_wrapper .dataTables_info,
.reg-page .dataTables_wrapper .dataTables_paginate {
    margin-top: 14px;
    color: var(--reg-muted);
    font-size: 13px;
}

.reg-page .page-item.active .page-link {
    background: var(--reg-primary);
    border-color: var(--reg-primary);
}

@media (max-width: 768px) {
    .reg-email {
        max-width: 150px;
    }
}

.reg-btn-wait {
    --c: #64748b;
    --s: #f1f5f9;
    cursor: not-allowed;
}

    .reg-btn-wait:hover {
        color: var(--c);
        background: var(--s);
        transform: none;
    }