:root {

    --maroon: #8b1e2d;
    --red: #b22234;
    --red-dark: #761724;

    --green: #198754;
    --green-dark: #12663f;

    --light-red: #fff3f4;
    --light-green: #eef8f2;

    --text: #343434;
    --muted: #777;

}


html,
body {

    min-height: 100%;

}


body {

    margin: 0;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 60%,
            #f4faf7 100%
        );

}


.page-wrapper {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}


/* =====================================================
   TOP BAR
   ===================================================== */

.top-bar {

    padding: 7px 0;

    color: white;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--red)
        );

    font-size: 0.75rem;

    font-weight: 600;

    letter-spacing: 1.5px;

}


/* =====================================================
   HEADER
   ===================================================== */

.main-header {

    padding:
        25px
        20px
        22px;

    background: white;

    border-bottom:
        1px solid
        #e8e8e8;

}


.nulife-logo {

    max-width: 270px;

    max-height: 105px;

    width: auto;

    height: auto;

}


/* =====================================================
   MAIN
   ===================================================== */

.main-content {

    flex: 1;

    padding:
        50px
        20px
        60px;

}


/* =====================================================
   LOGIN CARD
   ===================================================== */

.login-card {

    padding:
        38px
        35px
        35px;

    background: white;

    border:
        1px solid
        #e5e5e5;

    border-top:
        6px solid
        var(--green);

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.08);

}


/* =====================================================
   LOGIN ICON
   ===================================================== */

.login-icon {

    width: 76px;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0
        auto
        18px;

    border-radius: 50%;

    background:
        var(--light-green);

    font-size: 32px;

}


/* =====================================================
   LOGIN TITLE
   ===================================================== */

.login-label {

    text-align: center;

    color:
        var(--green);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 3px;

}


.login-card h1 {

    margin:
        6px
        0
        0;

    text-align: center;

    color:
        var(--maroon);

    font-size: 1.7rem;

    font-weight: 800;

}


.title-line {

    width: 55px;

    height: 3px;

    margin:
        16px
        auto
        18px;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--green)
        );

    border-radius: 10px;

}


.login-description {

    margin:
        0
        0
        28px;

    text-align: center;

    color:
        var(--muted);

    font-size: 0.9rem;

    line-height: 1.6;

}


/* =====================================================
   FORM
   ===================================================== */

.form-label {

    color:
        var(--maroon);

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.7px;

}


.form-control {

    border:
        1px solid
        #d8d8d8;

    border-radius: 8px;

}


.form-control:focus {

    border-color:
        var(--green);

    box-shadow:
        0 0 0 0.2rem
        rgba(25, 135, 84, 0.15);

}


/* =====================================================
   OPTIONS
   ===================================================== */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        5px
        0
        25px;

    font-size: 0.82rem;

}


.form-check-input:checked {

    background-color:
        var(--green);

    border-color:
        var(--green);

}


.forgot-link {

    color:
        var(--maroon);

    text-decoration: none;

    font-weight: 600;

}


.forgot-link:hover {

    color:
        var(--red);

    text-decoration: underline;

}


/* =====================================================
   LOGIN BUTTON
   ===================================================== */

.btn-login {

    padding:
        13px
        18px;

    color: white;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--red)
        );

    border: none;

    border-radius: 8px;

    font-size: 0.9rem;

    font-weight: 800;

    letter-spacing: 0.5px;

    transition:
        all 0.2s ease;

}


.btn-login:hover {

    color: white;

    background:
        linear-gradient(
            90deg,
            var(--red-dark),
            var(--maroon)
        );

    transform:
        translateY(-1px);

}


.login-arrow {

    margin-left: 8px;

    font-size: 1.1rem;

}


/* =====================================================
   BACK LINK
   ===================================================== */

.back-link {

    margin-top: 20px;

}


.back-link a {

    color:
        var(--green);

    text-decoration: none;

    font-size: 0.85rem;

    font-weight: 600;

}


.back-link a:hover {

    text-decoration: underline;

}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {

    padding:
        23px
        20px
        27px;

    background: white;

    border-top:
        1px solid
        #e7e7e7;

}


.footer-brand {

    color:
        var(--maroon);

    font-size: 1.1rem;

    font-weight: 800;

    letter-spacing: 1px;

}


.footer-slogan {

    margin-top: 2px;

    color:
        var(--green);

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 3px;

}


.footer-copy {

    margin-top: 10px;

    color:
        #999;

    font-size: 0.72rem;

}


/* =====================================================
   RESELLER MENU
   ===================================================== */

.reseller-menu-card {

    display: block;

    text-decoration: none;

    text-align: center;

    background: #ffffff;

    border-radius: 16px;

    padding: 35px 20px;

    min-height: 190px;

    border: 2px solid #eeeeee;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


.reseller-menu-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--maroon);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.14);

}


.reseller-menu-icon {

    font-size: 42px;

    margin-bottom: 15px;

}


.reseller-menu-title {

    font-size: 22px;

    font-weight: 700;

    color:
        var(--maroon);

}


.reseller-menu-description {

    margin-top: 8px;

    color: #666666;

    font-size: 14px;

}


/* =========================================================
   REGISTER RESELLER
   ========================================================= */

.register-card {

    background: #ffffff;

    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 8px 28px
        rgba(0, 0, 0, 0.10);

    border-top:
        5px solid
        var(--maroon);

}


.register-card-header {

    display: flex;

    align-items: center;

    gap: 18px;

}


.register-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--maroon);

    color: #ffffff;

    border-radius: 50%;

    font-size: 27px;

}


.register-card h2 {

    margin: 0;

    font-size: 25px;

    font-weight: 700;

    color:
        var(--maroon);

}


.register-card-header p {

    margin:
        4px
        0
        0;

    color:
        #777777;

    font-size: 14px;

}


.form-section-title {

    font-size: 14px;

    font-weight: 700;

    color:
        var(--green);

    letter-spacing: 0.5px;

    border-left:
        4px solid
        var(--green);

    padding-left: 10px;

    margin-bottom: 12px;

}


.register-card .form-label {

    font-size: 13px;

    font-weight: 700;

    color:
        #444444;

    margin-bottom: 6px;

}


.register-card .form-control,
.register-card .form-select {

    border-radius: 9px;

    border:
        1px solid
        #d6d6d6;

    min-height: 46px;

}


.register-card .form-control:focus,
.register-card .form-select:focus {

    border-color:
        var(--maroon);

    box-shadow:
        0 0 0 0.2rem
        rgba(139, 30, 45, 0.12);

}


.register-card .form-control[readonly] {

    background: #f5f5f5;

    color: #666666;

}


/* =====================================================
   POSITION INFORMATION
   ===================================================== */

.position-info {

    background: #f8f9fa;

    border:
        1px solid
        #e3e3e3;

    border-radius: 10px;

    padding: 15px;

    margin-bottom: 5px;

}


.position-info strong {

    color:
        var(--maroon);

}


.position-tree {

    margin:
        15px
        auto;

    max-width: 360px;

    text-align: center;

}


.tree-sponsor {

    display: inline-block;

    background:
        var(--maroon);

    color: #ffffff;

    font-weight: 700;

    padding:
        8px
        25px;

    border-radius: 8px;

}


.tree-legs {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin-top: 12px;

}


.tree-leg {

    width: 120px;

    padding: 7px;

    background:
        var(--green);

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    border-radius: 7px;

}


.position-info small {

    display: block;

    text-align: center;

    color:
        #666666;

    line-height: 1.5;

}


/* =====================================================
   REGISTER ACTION BUTTONS
   ===================================================== */

.register-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding-top: 18px;

    border-top:
        1px solid
        #eeeeee;

}


.register-actions .btn {

    min-width: 110px;

    font-weight: 700;

    border-radius: 8px;

}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-wrapper {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 65%,
            #f4faf7 100%
        );

}


/* =====================================================
   DASHBOARD TOP BAR
   ===================================================== */

.dashboard-wrapper .top-bar {

    padding: 8px 0;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--red)
        );

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 1px;

}


.top-bar-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.brand-mini {

    color: #ffffff;

}


.admin-info {

    color: #ffffff;

}


.admin-label {

    margin-right: 6px;

    opacity: 0.75;

    font-size: 0.68rem;

    letter-spacing: 1.5px;

}


/* =====================================================
   DASHBOARD HEADER
   ===================================================== */

.dashboard-header {

    background: #ffffff;

    padding:
        25px
        20px
        24px;

    border-bottom:
        1px solid
        #e8e8e8;

}


.dashboard-header-inner {

    display: flex;

    align-items: center;

    gap: 25px;

}


.dashboard-logo-box {

    width: 110px;

    height: 90px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.dashboard-logo {

    max-width: 105px;

    max-height: 85px;

    width: auto;

    height: auto;

}


.dashboard-title {

    border-left:
        3px solid
        var(--green);

    padding-left: 20px;

}


.dashboard-title .title-small {

    color:
        var(--green);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.dashboard-title h1 {

    margin:
        4px
        0
        0;

    color:
        var(--maroon);

    font-size: 1.8rem;

    font-weight: 800;

    letter-spacing: 0.5px;

}


.dashboard-title p {

    margin:
        5px
        0
        0;

    color:
        var(--muted);

    font-size: 0.82rem;

}


/* =====================================================
   DASHBOARD MAIN
   ===================================================== */

.dashboard-main {

    flex: 1;

    padding:
        38px
        20px
        50px;

}


/* =====================================================
   DASHBOARD WELCOME
   ===================================================== */

.dashboard-welcome {

    max-width: 1100px;

    margin:
        0
        auto
        35px;

    padding:
        22px
        25px;

    background: #ffffff;

    border:
        1px solid
        #e5e5e5;

    border-left:
        5px solid
        var(--green);

    border-radius: 12px;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.05);

}


.welcome-label {

    color:
        var(--green);

    font-size: 0.67rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.dashboard-welcome h2 {

    margin:
        5px
        0
        0;

    color:
        var(--maroon);

    font-size: 1.45rem;

    font-weight: 800;

}


.dashboard-welcome p {

    margin:
        5px
        0
        0;

    color:
        var(--muted);

    font-size: 0.85rem;

}


/* =====================================================
   DASHBOARD SECTION HEADING
   ===================================================== */

.section-heading {

    max-width: 1100px;

    margin-left: auto;

    margin-right: auto;

    margin-bottom: 14px;

}


.section-heading span {

    color:
        var(--maroon);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 2px;

}


/* =====================================================
   DASHBOARD MAIN MODULE
   ===================================================== */
.dashboard-logo-box {
    width: 85px;
    height: 70px;
}

.dashboard-logo {
    max-width: 75px;
    max-height: 60px;
}


.dashboard-module {

    min-height: 185px;

    display: flex;

    align-items: center;

    gap: 20px;

    position: relative;

    padding: 25px;

    border-radius: 14px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


/* =====================================================
   RESELLER MODULE
   ===================================================== */

.reseller-module {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--maroon),
            var(--red)
        );

    box-shadow:
        0 7px 22px
        rgba(139, 30, 45, 0.18);

}


.reseller-module:hover {

    color: #ffffff;

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px
        rgba(139, 30, 45, 0.24);

}


/* =====================================================
   KOMISI MODULE
   ===================================================== */

.commission-module {

    color:
        var(--text);

    background: #ffffff;

    border:
        1px solid
        #e3e3e3;

    box-shadow:
        0 7px 22px
        rgba(0, 0, 0, 0.06);

}


.commission-module:hover {

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.10);

}


/* =====================================================
   MODULE ICON
   ===================================================== */

.module-icon {

    width: 62px;

    height: 62px;

    min-width: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    font-size: 30px;

    background:
        rgba(255, 255, 255, 0.14);

}


.commission-module .module-icon {

    background:
        var(--light-green);

}


/* =====================================================
   MODULE CONTENT
   ===================================================== */

.module-content {

    flex: 1;

}


.module-content h3 {

    margin:
        0
        0
        5px;

    font-size: 1.2rem;

    font-weight: 800;

}


.module-content p {

    margin:
        0
        0
        15px;

    font-size: 0.78rem;

    opacity: 0.75;

}


.module-links {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

}


.module-links span,
.module-links a {

    padding:
        6px
        9px;

    border-radius: 6px;

    font-size: 0.62rem;

    font-weight: 800;

    letter-spacing: 0.5px;

    text-decoration: none;

}


/* RESELLER LINKS */

.reseller-module .module-links span {

    color: #ffffff;

    background:
        rgba(255,255,255,0.14);

}


/* KOMISI LINKS */

.commission-module .module-links a {

    color:
        var(--maroon);

    background: #f6f6f6;

}


.commission-module .module-links a:hover {

    color: #ffffff;

    background:
        var(--green);

}


/* =====================================================
   SMALL DASHBOARD MENU
   ===================================================== */

.dashboard-small-card {

    min-height: 100px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 18px;

    color:
        var(--text);

    background: #ffffff;

    border:
        1px solid
        #e4e4e4;

    border-radius: 12px;

    text-decoration: none;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


.dashboard-small-card:hover {

    color:
        var(--maroon);

    transform:
        translateY(-3px);

    border-color:
        #cccccc;

    box-shadow:
        0 8px 22px
        rgba(0,0,0,0.09);

}


.small-card-icon {

    width: 46px;

    height: 46px;

    min-width: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background:
        var(--light-green);

    font-size: 22px;

}


.dashboard-small-card h4 {

    margin: 0;

    font-size: 0.85rem;

    font-weight: 800;

}


.dashboard-small-card p {

    margin:
        3px
        0
        0;

    color:
        var(--muted);

    font-size: 0.68rem;

}


.small-arrow {

    margin-left: auto;

    color: #aaa;

    font-size: 1.1rem;

}


.logout-card:hover {

    border-color:
        var(--red);

}


.logout-card:hover .small-card-icon {

    background:
        var(--light-red);

}


/* =====================================================
   DASHBOARD FOOTER
   ===================================================== */

.dashboard-footer {

    padding:
        20px
        15px
        23px;

    color: #888;

    background: #ffffff;

    border-top:
        1px solid
        #e7e7e7;

    font-size: 0.72rem;

}


.dashboard-footer strong {

    color:
        var(--maroon);

}


.dashboard-footer small {

    color: #aaa;

}


/* =====================================================
   GENERAL MOBILE
   ===================================================== */

@media (max-width: 767px) {

    .top-bar-inner {

        padding:
            0
            5px;

        gap: 10px;

    }


    .brand-mini {

        font-size: 0.65rem;

    }


    .admin-info {

        font-size: 0.65rem;

    }


    .dashboard-header-inner {

        gap: 15px;

    }


.dashboard-logo-box {
    width: 65px;
    height: 55px;
}

.dashboard-logo {
    max-width: 60px;
    max-height: 50px;
}
    .dashboard-title {

        padding-left: 13px;

    }


    .dashboard-title h1 {

        font-size: 1.25rem;

    }


    .dashboard-title p {

        font-size: 0.7rem;

    }


    .dashboard-main {

        padding:
            28px
            15px
            40px;

    }


    .dashboard-welcome {

        padding:
            18px
            20px;

    }


    .dashboard-module {

        min-height: 160px;

        padding: 20px;

    }

}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 576px) {

    .main-content {

        padding:
            35px
            15px
            45px;

    }


    .nulife-logo {

        max-width: 220px;

    }


    .login-card {

        padding:
            32px
            22px
            28px;

    }


    .login-options {

        align-items: flex-start;

        gap: 10px;

    }


    .login-card h1 {

        font-size: 1.45rem;

    }


    .register-card {

        padding: 20px;

    }


    .register-card-header {

        gap: 12px;

    }


    .register-icon {

        width: 48px;

        height: 48px;

        font-size: 22px;

    }


    .register-card h2 {

        font-size: 21px;

    }


    .register-actions {

        flex-direction: column-reverse;

    }


    .register-actions .btn {

        width: 100%;

    }

}