/* ==========================================================
   BUGZY ERP
   LOGIN UNIVERSAL CSS
   Version 2.0
   ========================================================== */


/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}


    /* ==========================================================
   LOGIN PAGE
   ========================================================== */

    body.theme-login {
        background: var(--bg-main);
        color: var(--text-main);
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        overflow-x: hidden;
    }


/* ==========================================================
   MAIN
   ========================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 20px;
}

/* ==========================================================
   WRAPPER
   ========================================================== */

.login-wrapper {
    width: 100%;
    max-width: 520px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
    transition: .25s;
}

/* ==========================================================
   HEADER
   ========================================================== */

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================================
   HEADER BUTTON
   ========================================================== */

.btn-login-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 120px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .20s;
}

    .btn-login-toolbar:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .btn-login-toolbar:focus {
        box-shadow: none;
    }


/* ==========================================================
   DROPDOWN
   ========================================================== */

.dropdown-menu {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    transition: .15s;
}

    .dropdown-item:hover {
        background: var(--primary);
        color: #fff;
    }


/* ==========================================================
   BRANDING
   ========================================================== */
.login-branding {
    text-align: center;
    margin: 0 0 14px;
}

.login-logo {
    margin-bottom: 10px;
}

    .login-logo img {
        width: 64px;
    }

.login-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.login-edition {
    margin-top: 2px;
    font-size: 13px;
}

.login-divider {
    width: 55px;
    margin: 8px auto;
}

.login-welcome {
    margin-top: 6px;
    font-size: 18px;
}

.login-description {
    margin-top: 4px;
    font-size: 14px;
}

/* ==========================================================
   ALERTS
   ========================================================== */

.alert {
    border: none;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 14px;
}


/* ==========================================================
   LOGIN CARD
   ========================================================== */

.login-card {
    margin-top: 10px;
    margin-bottom: 30px;
}


/* ==========================================================
   FORM
   ========================================================== */

.login-field {
    margin-bottom: 14px;
}

    .login-field:last-child {
        margin-bottom: 0;
    }


    .login-field .form-label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-main);
        font-size: 14px;
        font-weight: 600;
    }


/* ==========================================================
   INPUT
   ========================================================== */

.login-input {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: .20s;
}

    .login-input:hover {
        border-color: var(--primary);
    }

    .login-input:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(255,122,0,.12);
    }


/* ==========================================================
   ICON
   ========================================================== */

.login-input-icon {
    width: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}


/* ==========================================================
   TEXTBOX
   ========================================================== */

.login-textbox {
    flex: 1;
    width: 100%;
    height: 46px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    padding: 0 16px;
}

    .login-textbox::placeholder {
        color: var(--text-muted);
    }


    /* Remove browser styles */

    .login-textbox:focus {
        outline: none;
        box-shadow: none;
    }


/* ==========================================================
   PASSWORD BUTTON
   ========================================================== */

.login-password-toggle {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: .20s;
}

    .login-password-toggle:hover {
        color: var(--primary);
        background: rgba(255,122,0,.08);
    }


/* ==========================================================
   VALIDATION
   ========================================================== */

.login-field .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}


/* ==========================================================
   LOGIN BUTTON
   ========================================================== */

.login-submit {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
    margin-top: 8px;
    border: none;
    background: linear-gradient( 135deg, var(--primary), var(--primary-hover, var(--primary)) );
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: .25s;
}

    .login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,0,0,.18);
    }

    .login-submit:active {
        transform: translateY(0);
    }

    .login-submit:disabled {
        opacity: .8;
        cursor: not-allowed;
        transform: none;
    }

/* ==========================================================
   SUPPORT
   ========================================================== */

.login-support {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.support-title {
    margin-bottom: 18px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
}


/* ==========================================================
   WHATSAPP
   ========================================================== */

.support-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    text-decoration: none;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: .25s;
}

    .support-whatsapp:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(37,211,102,.35);
    }

    .support-whatsapp i {
        font-size: 20px;
    }


/* ==========================================================
   SUPPORT LINKS
   ========================================================== */

.support-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 18px;
    flex-wrap: wrap;
}

    .support-links a {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 14px;
        transition: .20s;
    }

        .support-links a:hover {
            color: var(--primary);
        }


/* ==========================================================
   FOOTER
   ========================================================== */

.login-footer {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 12px;
   
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
   
}

    .login-footer div {
        margin-bottom: 6px;
    }

    .login-footer strong {
        color: var(--text-main);
        font-weight: 600;
    }

.copyright {
    margin-top: 12px;
    opacity: .75;
}


/* ==========================================================
   RTL
   ========================================================== */

html[dir="rtl"] .login-header {
    direction: rtl;
}

html[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .login-input {
    flex-direction: row-reverse;
}

html[dir="rtl"] .login-textbox {
    text-align: right;
}

html[dir="rtl"] .support-links {
    direction: rtl;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width:768px) {

    .login-page {
        padding: 20px;
    }

    .login-wrapper {
        padding: 24px;
        border-radius: 18px;
    }

    .login-header {
        flex-direction: column;
        gap: 16px;
    }

    .header-left {
        display: none;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-login-toolbar {
        flex: 1;
        min-width: 140px;
    }

    .login-logo img {
        width: 110px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-welcome {
        font-size: 22px;
    }

    .support-links {
        flex-direction: column;
        gap: 14px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width:480px) {

    .login-wrapper {
        padding: 18px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-welcome {
        font-size: 20px;
    }

    .login-description {
        font-size: 14px;
    }

    .btn-login-toolbar {
        min-width: 100%;
    }

    .login-submit {
        height: 52px;
    }


}


/* ==========================================================
   END OF FILE
   ========================================================== */


/* =========================================================
   LOGIN THEME MENU
   ========================================================= */

.theme-menu {
    width: 270px;
    padding: 7px;
    border-radius: 14px;
    border: 1px solid #b8c5d3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}


/* =========================================
   THEME ITEM
========================================= */

.theme-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: normal;
}


/* =========================================
   ICON
========================================= */

.theme-item-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--bs-primary);
    font-size: 1.05rem;
}


/* =========================================
   TEXT
========================================= */

.theme-item-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}


    .theme-item-content strong {
        font-size: 0.9rem;
        font-weight: 600;
    }


    .theme-item-content small {
        margin-top: 3px;
        font-size: 0.72rem;
        color: #718096;
    }


/* =========================================
   HOVER
========================================= */

.theme-item:hover {
    background: rgba(13, 110, 253, 0.08);
}


    .theme-item:hover .theme-item-icon {
        background: var(--bs-primary);
        color: #fff;
    }


/* =========================================
   ACTIVE
========================================= */

.theme-item.active {
    background: rgba(13, 110, 253, 0.10);
}

