

 /* =====================================================
           index_login.css
        ====================================================== */


        /* =====================================================
           GLOBAL
        ====================================================== */


/* =========================================================
   DECODER INVOICE SYSTEM - LOGIN PAGE
   Complete Responsive Login Stylesheet
   ========================================================= */

/* =========================================================
   1. GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   2. LOGIN PAGE / BACKGROUND
   ========================================================= */

.login-page {
    position: relative;

    min-height: 100vh;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 85px 15px 85px;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.58)
        ),
        url('log.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    transition: background-image 1.2s ease-in-out;

    overflow: hidden;
}


/* Dark overlay */

.background-overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at top left,
            rgba(0, 170, 255, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(0, 102, 204, 0.12),
            transparent 35%
        );

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   3. DECORATIVE BACKGROUND ELEMENTS
   ========================================================= */

.decoration {
    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: 2;

    opacity: 0.25;

    filter: blur(1px);
}

.decoration-one {
    width: 250px;
    height: 250px;

    top: -100px;
    left: -80px;

    background:
        radial-gradient(
            circle,
            rgba(0, 170, 255, 0.35),
            transparent 70%
        );

    animation: floatingOne 8s ease-in-out infinite;
}

.decoration-two {
    width: 300px;
    height: 300px;

    right: -120px;
    bottom: -130px;

    background:
        radial-gradient(
            circle,
            rgba(0, 102, 204, 0.35),
            transparent 70%
        );

    animation: floatingTwo 10s ease-in-out infinite;
}


@keyframes floatingOne {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(35px, 25px) scale(1.08);
    }
}


@keyframes floatingTwo {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-35px, -25px) scale(1.08);
    }
}


/* =========================================================
   4. LIVE CLOCK
   ========================================================= */

.clock-container {
    position: fixed;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 18px;

    min-width: 230px;

    color: #ffffff;

    background: rgba(10, 25, 40, 0.72);

    border: 1px solid rgba(0, 170, 255, 0.30);

    border-radius: 30px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 0 15px rgba(0, 170, 255, 0.05);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    animation: clockAppear 1s ease forwards;
}


.clock-container i {
    color: #00aaff;
    font-size: 18px;

    animation: clockPulse 2s ease-in-out infinite;
}


@keyframes clockAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


@keyframes clockPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}


/* =========================================================
   5. LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;

    z-index: 10;

    width: 100%;
    max-width: 430px;

    padding: 32px 32px 25px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 25, 35, 0.93),
            rgba(8, 15, 25, 0.91)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.50),
        0 0 0 1px rgba(0, 170, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;

    animation: loginCardAppear 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Top glowing line */

.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;

    width: 84%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #00aaff,
            transparent
        );

    opacity: 0.8;

    box-shadow: 0 0 15px rgba(0, 170, 255, 0.55);
}


/* Soft glow */

.login-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -110px;
    right: -100px;

    background: rgba(0, 170, 255, 0.10);

    border-radius: 50%;

    filter: blur(30px);

    pointer-events: none;
}


@keyframes loginCardAppear {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   6. LOGO
   ========================================================= */

.logo-container {
    position: relative;

    width: 88px;
    height: 88px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.04)
        );

    border: 1px solid rgba(0, 170, 255, 0.30);

    border-radius: 50%;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30),
        0 0 25px rgba(0, 170, 255, 0.10);

    overflow: hidden;

    animation: logoFloat 4s ease-in-out infinite;
}


.logo-container img {
    width: 100%;
    height: 100%;

    padding: 8px;

    object-fit: contain;

    border-radius: 50%;

    display: block;
}


.default-logo {
    display: none;

    color: #00aaff;

    font-size: 42px;

    line-height: 1;
}


@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* =========================================================
   7. BRAND TITLE
   ========================================================= */

.brand-title {
    color: #ffffff;

    text-align: center;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.25;

    letter-spacing: 0.2px;

    word-break: break-word;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35);
}


.brand-subtitle {
    margin-top: 6px;
    margin-bottom: 26px;

    color: rgba(255, 255, 255, 0.62);

    text-align: center;

    font-size: 12px;

    font-weight: 400;

    letter-spacing: 0.4px;
}


/* =========================================================
   8. FORM LABELS
   ========================================================= */

.form-label {
    display: block;

    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 12px;

    font-weight: 500;
}


.form-label i {
    color: #00aaff;
}


/* =========================================================
   9. INPUT GROUP
   ========================================================= */

.input-group {
    position: relative;

    margin-bottom: 18px;
}


.input-group-text {
    min-width: 46px;

    justify-content: center;

    color: #00aaff;

    background:
        rgba(0, 170, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-right: 0;

    border-radius: 11px 0 0 11px;
}


.form-control {
    height: 48px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 0 11px 11px 0;

    box-shadow: none;

    font-size: 13px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.form-control::placeholder {
    color: rgba(255, 255, 255, 0.36);
}


.form-control:focus {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    border-color: rgba(0, 170, 255, 0.65);

    box-shadow:
        0 0 0 3px rgba(0, 170, 255, 0.10);

    outline: none;
}


.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    transition:
        background-color 5000s ease-in-out 0s;

    box-shadow:
        0 0 0 1000px rgba(20, 30, 40, 0.95) inset;
}


/* =========================================================
   10. PASSWORD TOGGLE
   ========================================================= */

.password-wrapper {
    position: relative;
}


.password-wrapper .form-control {
    padding-right: 48px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.55);

    background: transparent;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.password-toggle:hover {
    color: #00aaff;

    background:
        rgba(0, 170, 255, 0.08);
}


.password-toggle:focus {
    color: #00aaff;

    outline: none;

    box-shadow:
        0 0 0 2px rgba(0, 170, 255, 0.20);
}


.password-toggle i {
    font-size: 16px;
}


/* =========================================================
   11. LOGIN BUTTON
   ========================================================= */

.login-btn {
    position: relative;

    height: 50px;

    margin-top: 4px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #008fd5,
            #0066b3
        );

    border: none;

    border-radius: 11px;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.2px;

    box-shadow:
        0 10px 25px rgba(0, 102, 179, 0.30);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


.login-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.7s ease;
}


.login-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 14px 30px rgba(0, 102, 179, 0.40);
}


.login-btn:hover::before {
    left: 140%;
}


.login-btn:active {
    transform: translateY(0);
}


.login-btn:focus {
    color: #ffffff;

    box-shadow:
        0 0 0 3px rgba(0, 170, 255, 0.20),
        0 10px 25px rgba(0, 102, 179, 0.30);
}


.login-btn:disabled {
    opacity: 0.75;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   12. LOGIN ALERT
   ========================================================= */

.login-alert {
    color: #ffffff;

    background:
        rgba(220, 53, 69, 0.16);

    border: 1px solid rgba(220, 53, 69, 0.35);

    border-radius: 10px;

    font-size: 12px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    animation: alertAppear 0.4s ease;
}


.login-alert .btn-close {
    filter: invert(1);

    opacity: 0.75;

    font-size: 9px;
}


.login-alert .btn-close:hover {
    opacity: 1;
}


@keyframes alertAppear {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   13. LOGIN FOOTER INSIDE CARD
   ========================================================= */

.login-footer {
    margin-top: 22px;
    padding-top: 17px;

    color: rgba(255, 255, 255, 0.50);

    text-align: center;

    font-size: 10px;

    line-height: 1.7;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}


.login-footer i {
    color: #00aaff;
}


.login-footer span {
    color: rgba(255, 255, 255, 0.35);
}


/* =========================================================
   14. MEGA MEDIA TECHNOLOGIES FOOTER
   FULL WIDTH - EXTREME BOTTOM
   ========================================================= */

.main-footer {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    margin: 0;

    background:
        rgba(20, 20, 20, 0.96);

    color: #ffffff;

    text-align: center;

    font-size: 13px;

    border: none;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 -5px 20px rgba(0, 0, 0, 0.30);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 9998;
}


.main-footer strong {
    font-weight: 500;
}


.main-footer a {
    color: #00aaff;

    text-decoration: none;

    font-weight: 600;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}


.main-footer a:hover {
    color: #ffffff;

    text-decoration: underline;

    text-shadow:
        0 0 8px rgba(0, 170, 255, 0.60);
}


/* =========================================================
   15. LOADING SCREEN
   ========================================================= */

#loader {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #07111c,
            #0b1724,
            #06101a
        );

    z-index: 99999;

    opacity: 1;

    visibility: visible;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}


#loader.hide {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* Loader logo */

.loader-logo {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    color: #00aaff;

    background:
        rgba(0, 170, 255, 0.08);

    border:
        1px solid rgba(0, 170, 255, 0.25);

    border-radius: 50%;

    box-shadow:
        0 0 30px rgba(0, 170, 255, 0.15);

    animation:
        loaderLogoPulse 1.5s ease-in-out infinite;
}


.loader-logo i {
    font-size: 32px;
}


@keyframes loaderLogoPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 20px rgba(0, 170, 255, 0.10);
    }

    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 35px rgba(0, 170, 255, 0.25);
    }
}


/* Loader title */

.loader-title {
    max-width: 90%;

    color: #ffffff;

    text-align: center;

    font-size: 17px;

    font-weight: 600;

    letter-spacing: 0.3px;
}


/* Loader spinner */

.loader-spinner {
    width: 32px;
    height: 32px;

    margin-top: 20px;

    border:
        3px solid rgba(255, 255, 255, 0.12);

    border-top-color: #00aaff;

    border-right-color: #00aaff;

    border-radius: 50%;

    animation:
        loaderSpin 0.85s linear infinite;
}


@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   16. BOOTSTRAP SPINNER OVERRIDE
   ========================================================= */

.login-btn .spinner-border {
    width: 16px;
    height: 16px;

    border-width: 2px;

    vertical-align: -3px;
}


/* =========================================================
   17. SELECTION
   ========================================================= */

::selection {
    color: #ffffff;

    background: rgba(0, 170, 255, 0.45);
}


/* =========================================================
   18. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
}


::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}


::-webkit-scrollbar-thumb {
    background: rgba(0, 170, 255, 0.35);

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 170, 255, 0.60);
}


/* =========================================================
   19. RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 768px) {

    .login-page {
        padding-top: 80px;
        padding-bottom: 80px;

        background-attachment: scroll;
    }


    .login-card {
        max-width: 420px;

        padding: 30px 27px 23px;

        border-radius: 20px;
    }


    .brand-title {
        font-size: 21px;
    }


    .clock-container {
        top: 15px;

        padding: 8px 15px;

        font-size: 11px;
    }
}


/* =========================================================
   20. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .login-page {
        min-height: 100svh;

        padding: 75px 12px 70px;

        align-items: center;

        overflow-y: auto;
    }


    .clock-container {
        top: 12px;

        min-width: auto;

        max-width: calc(100% - 24px);

        padding: 8px 13px;

        font-size: 10px;

        border-radius: 25px;
    }


    .clock-container i {
        font-size: 12px;
    }


    .login-card {
        width: 100%;

        max-width: 100%;

        padding: 26px 20px 21px;

        border-radius: 18px;
    }


    .logo-container {
        width: 76px;
        height: 76px;

        margin-bottom: 14px;
    }


    .default-logo {
        font-size: 35px;
    }


    .brand-title {
        font-size: 19px;
    }


    .brand-subtitle {
        margin-top: 5px;
        margin-bottom: 22px;

        font-size: 10px;
    }


    .form-label {
        font-size: 11px;
    }


    .input-group {
        margin-bottom: 16px;
    }


    .input-group-text {
        min-width: 43px;
    }


    .form-control {
        height: 46px;

        font-size: 12px;
    }


    .login-btn {
        height: 48px;

        font-size: 13px;
    }


    .login-footer {
        margin-top: 19px;

        padding-top: 14px;

        font-size: 9px;
    }


    .main-footer {
        min-height: 42px;

        padding: 10px 8px;

        font-size: 10px;
    }


    .decoration-one {
        width: 180px;
        height: 180px;
    }


    .decoration-two {
        width: 200px;
        height: 200px;
    }
}


/* =========================================================
   21. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .login-page {
        padding-left: 8px;
        padding-right: 8px;

        padding-top: 70px;
        padding-bottom: 65px;
    }


    .login-card {
        padding: 23px 16px 18px;

        border-radius: 16px;
    }


    .logo-container {
        width: 68px;
        height: 68px;
    }


    .brand-title {
        font-size: 17px;
    }


    .brand-subtitle {
        font-size: 9px;

        margin-bottom: 19px;
    }


    .input-group-text {
        min-width: 40px;
    }


    .form-control {
        height: 44px;

        font-size: 11px;
    }


    .login-btn {
        height: 46px;

        font-size: 12px;
    }


    .main-footer {
        min-height: 40px;

        padding: 9px 6px;

        font-size: 9px;
    }


    .clock-container {
        font-size: 9px;

        padding: 7px 10px;
    }
}


/* =========================================================
   22. LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 600px) and (orientation: landscape) {

    .login-page {
        align-items: flex-start;

        padding-top: 70px;
        padding-bottom: 65px;

        overflow-y: auto;
    }


    .clock-container {
        top: 8px;
    }


    .login-card {
        margin-top: 5px;

        padding-top: 20px;
        padding-bottom: 18px;
    }


    .logo-container {
        width: 58px;
        height: 58px;

        margin-bottom: 8px;
    }


    .brand-title {
        font-size: 17px;
    }


    .brand-subtitle {
        margin-bottom: 14px;
    }


    .input-group {
        margin-bottom: 10px;
    }


    .form-control {
        height: 42px;
    }


    .login-btn {
        height: 43px;
    }


    .login-footer {
        margin-top: 12px;

        padding-top: 10px;
    }
}


/* =========================================================
   23. REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


   