﻿:root {
    --card-color: rgb(71 71 71 / 71%);
    --border-card-color: #5d5d5d;
    --module-color: #292929;
    --danger-color: #e63946;
    --outstanding-color: #2eafe7;
    --primary-color: #2eb2ab;
    --bg-color: #333333;
    --bg-color-dark: color-mix(in srgb, var(--bg-color) 80%, black);
    --bg-color-dark-2: color-mix(in srgb, var(--bg-color) 60%, black);
    --bg-color-light: color-mix(in srgb, var(--bg-color) 75%, white);
    --txt-color: white;
    --font-size-1: 3em;
    --font-size-2: 1em;
    --font-size-3: .9em;
    --placeholder-color: #9c9c9c;
    --input-margin: 8px;
    --product-logo: url(FL.svg);
    --product-background: url(./accountBackground.svg);
    --outline-size: 3px;
    --input-height: 50px;
    --success-color: #008000;
    --login-font: 'latolight', 'Helvetica, Arial', 'sans-serif';
}
*, *:before, *:after {
    box-sizing: border-box;
}

/*@view-transition {
    navigation: auto;
}

::view-transition-old(root),::view-transition-new(root){
    animation-duration: 0.5s;
}
*/

* {
    color: var(--txt-color);
    caret-color: var(--txt-color);
    margin: 0;
    font-family: var(--login-font);
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: var(--product-background);
    -ms-scrollbar-base-color: #cccccc;
    -ms-scrollbar-track-color: #cccccc;
    -ms-scrollbar-face-color: var(--outstanding-color);
    -ms-scrollbar-darkshadow-color: var(--outstanding-color);
    -ms-scrollbar-shadow-color: var(--outstanding-color);
    -ms-scrollbar-arrow-color: #cccccc;
}

/*CHROME*/
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: var(--bg-color);
}

    ::-webkit-scrollbar:horizontal {
        width: 6px;
    }

::-webkit-scrollbar-thumb {
    background-color: var(--outstanding-color);
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #1794cb;
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: #12739d;
    }

section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    min-height: calc(var(--account-card-height) + 30px * 2);
}

input {
    accent-color: var(--primary-color);
}

h1 {
    font-size: 2.75rem;
    word-break: break-word;
}

input:-webkit-autofill {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: var(--txt-color);
}

:focus-visible {
    outline-color: transparent;
}

.product-logo {
    background-image: var(--product-logo);
    background-position: center;
    background-repeat: no-repeat;
    filter: invert(58%) sepia(66%) saturate(455%) hue-rotate(128deg) brightness(125%) contrast(85%);
    width: 45px;
    height: 45px;
}

/*ACCOUNT LOADING BAR*/
.loading-container {
    width: calc(100% - var(--loading-margin));
    height: 4px;
    position: absolute;
    transition: opacity 250ms linear;
    top: 0px;
    overflow: hidden;
    opacity: 0;
}

    .loading-container .loading-bar {
        width: 100%;
        height: 100%;
        transform-origin: top left;
        background-color: var(--primary-color);
        animation: loading-animation 2s infinite linear;
        transform: scaleX(0);
        animation-play-state: paused;
    }

@keyframes loading-animation {
    0% {
        transform: translateX(-100%);
    }

    20% {
        animation-timing-function: cubic-bezier(0.5,0,0.701732,0.495819);
        transform: translateX(-100%);
    }

    59.15% {
        animation-timing-function: cubic-bezier(0.302435,0.381352,0.55,0.956352);
        transform: translateX(-61.495191%);
    }

    100% {
        transform: translateX(100%);
    }
}

/*LOADING STYLES*/
section.loading {
    pointer-events: none;
}

    section.loading .account-card {
        filter: blur(1px) brightness(0.8);
    }

    section.loading .loading-container {
        opacity: 1;
    }

    section.loading .loading-bar {
        animation-play-state: running;
    }

    section.loading .custom-select-wrapper {
        filter: brightness(0.5);
    }


.account-card {
    user-select: none;
    background: var(--card-color);
    box-shadow: 0 8px 32px 0 rgb(0 0 0 / 37%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid var(--bg-color);
    border-radius: 25px;
    display: flex;
    width: var(--account-card-width);
    height: var(--account-card-height);
    align-items: center;
    position: relative;
    justify-content: center;
    border: 1px solid var(--border-card-color);
}
    .account-card form {
        width: 90%;
        height: 100%;
    }

    .account-card .account-button {
        height: var(--input-height);
        margin: 5px 0;
        cursor: pointer;
        width: 100%;
        border-radius: 50px;
        border: none;
        background-color: var(--bg-color-dark);
        font-size: var(--font-size-2);
        font-weight: 500;
    }

        .account-card .account-button:hover {
            background-color: var(--bg-color-dark-2);
        }

.account-card-header {
    width: 100%;
    margin-top: 20px;
    height: 50px;
}

.account-card-body .cell {
    background-color: var(--bg-color-light);
    height: var(--input-height);
    border-radius: 11px;
}
    .account-card-body .cell:not(:has(input[readonly])):focus-within {
        outline: var(--outline-size) solid var(--primary-color);
    }

    .account-card-body .cell:has(input[readonly]) {
        opacity: 0.5;
    }

        .account-card-body .cell input[readonly] {
            cursor: not-allowed;
        }

        .account-card-body .cell .invalid-feedback {
            font-size: 0.8em;
            color: var(--danger-color);
            display: block;
            font-weight: bold;
            margin-top: .25rem;
        }

    .account-card-body .cell:not(.invalid) .invalid-feedback {
        display: none;
    }

    .account-card-body .cell.invalid {
       outline: 2px solid var(--danger-color);
    }

    .account-card-body .cell input {
        margin: 0px var(--input-margin);
        width: calc(100% - var(--input-margin));
        background: none;
        border: none;
        height: 100%;
        outline: none;
    }

    .account-card-body .cell:has(span) input {
        width: calc(100% - var(--input-margin) - 29px);
        margin-right: 0;
    }

    .account-card-body .cell span {
        color: #999;
    }

    .account-card-body .cell input::placeholder {
        color: var(--placeholder-color);
    }

.account-card-footer {
    position: absolute;
    justify-content: flex-end;
    bottom: 20px;
    display: flex;
    width: 90%;
}

.select-language {
    width: calc(var(--account-card-width) - 50px);
    margin-top: 0.2em;
}

    .select-language select[data-type="custom"] {
        visibility: hidden;
    }

    .select-language .custom-select-wrapper {
        width: 30%;
    }

        .select-language .custom-select-wrapper .custom-select-list {
            max-height: 140px;
        }

.custom-select-wrapper:hover, .custom-select-wrapper.selected {
    background-color: var(--bg-color-dark);
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 15px 0 0;
}

    .custom-select-wrapper:last-child {
        margin-right: 0px;
    }

    .custom-select-wrapper button {
        box-sizing: border-box;
        padding: 10px 35px 10px 15px;
        background-color: transparent;
        color: #616161;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        width: 100%;
        text-align: left;
    }

    .custom-select-wrapper:hover button, .custom-select-wrapper.selected button {
        outline: 1px solid white;
    }

        .custom-select-wrapper.selected button i {
            transform: rotate(180deg);
        }

    .custom-select-wrapper button i {
        position: absolute;
        right: 10px;
        top: 12px;
    }

    .custom-select-wrapper .custom-select-list {
        position: absolute;
        display: block;
        left: 0;
        bottom: 45px;
        right: 0;
        max-height: 300px;
        overflow: auto;
        margin: 0;
        padding: 0;
        border-radius: 10px;
        list-style-type: none;
        opacity: 0;
        pointer-events: none;
        transform-origin: top left;
        transform: scale(1,0);
        z-index: 2;
    }

        .custom-select-wrapper .custom-select-list.active {
            opacity: 1;
            pointer-events: auto;
            transform: scale(1,1);
        }

    .custom-select-wrapper .list-item {
        user-select: none;
        display: block;
        list-style-type: none;
        padding: 10px 15px;
        background: var(--bg-color-dark);
        font-size: 14px;
        height: 28px;
        cursor: pointer;
        color: var(--txt-color);
        text-align: left;
        transition: all ease-in-out .3s;
    }

        .custom-select-wrapper .list-item:hover {
            background-color: var(--bg-color-dark-2);
            transition: all ease-in-out .3s;
        }



/*PASSWORD INDICATOR*/

.cell:focus-within .pass-indicator {
    top: 0px;
}


.showPswd {
    display: flex;
    width: 80%;
    margin-top: 20px;
    margin-right: 10px;
    align-items: center;
}

    .showPswd * {
        cursor: pointer;
    }

    .showPswd input[type="checkbox"]:checked,
    .showPswd input[type="checkbox"]:checked + label {
        color: var(--primary-color);
    }

    .showPswd input {
        appearance: none;
        color: var(--txt-color);
    }

    .showPswd label {
        margin-left: 10px;
        font-weight: bold;
        font-size: 14px;
        cursor: pointer;
        user-select: none;
    }

        .showPswd label::before {
            content: var(--show-text);
        }

        .showPswd label.hidePswd::before {
            content: var(--hide-text);
        }


.pass-indicator {
    height: var(--outline-size);
    background-color: var(--placeholder-color);
    position: relative;
    width: calc(100% - 18px);
    left: 9px;
    top: -3px;
}

    .pass-indicator .pass-bar {
        height: 100%;
        transition: width 0.3s ease-in-out;
    }

    .pass-indicator#veryWeak .pass-bar {
        width: 5%;
        background-color: #e64a4a;
    }

    .pass-indicator#weak .pass-bar {
        background-color: #ea892a;
    }

    .pass-indicator#moderate .pass-bar {
        background-color: #f1c80b;
    }

    .pass-indicator#strong .pass-bar {
        background-color: #78a405;
    }

    .pass-indicator#veryStrong .pass-bar {
        background-color: var(--success-color);
    }






/*LOBIBOX*/
.lobibox.lobibox-window {
    border-color: var(--danger-color);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: fixed;
}

.lobibox-notify-wrapper .lobibox-notify {
    margin-right: 7px;
    border-radius: 5px;
}

.lobibox.lobibox-window .lobibox-header {
    background-color: var(--danger-color);
    user-select: none;
}

.lobibox .lobibox-body, .lobibox.lobibox-window .lobibox-body {
    background-color: var(--module-color);
    color: var(--txt-color);
}

    .lobibox.lobibox-window .lobibox-body code {
        background-color: var(--bg-color);
        padding: 2px 4px;
        font-size: 90%;
        color: #c7254e;
        border-radius: 4px;
    }


div.lobibox.lobibox-confirm .btn-close,
div.lobibox.lobibox-info .btn-close,
div.lobibox.lobibox-prompt .btn-close {
    position: absolute;
    font-size: 1.2em;
    right: 0;
    top: 0;
    padding: 4px 10px;
    border-radius: 0px 5px;
    transition: all 0.2s ease-in;
}

    div.lobibox.lobibox-confirm .btn-close:hover,
    div.lobibox.lobibox-info .btn-close:hover,
    div.lobibox.lobibox-prompt .btn-close:hover {
        background-color: #292929 /*var(--nav-color)*/;
        color: white;
        text-shadow: none;
    }

button.lobibox-btn {
    margin: 0;
    border-radius: 5px;
    padding: 9px 22px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    color: #fff;
}

    button.lobibox-btn.lobibox-btn-cancel {
        background-color: #bbbfcf;
        border: none;
    }

        button.lobibox-btn.lobibox-btn-cancel:hover {
            background-color: #a4a8ba;
            color: #fff;
        }

div.lobibox.lobibox-confirm,
div.lobibox.lobibox-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #292929 /*var(--nav-color)*/;
    border-radius: calc(5px * 2);
    border: none;
}

    div.lobibox.lobibox-confirm .lobibox-header,
    div.lobibox.lobibox-info .lobibox-header {
        background-color: transparent;
        margin-top: 2em;
        color: #cdcecf /*var(--txt-color)*/;
        padding-top: 15px;
    }

        div.lobibox.lobibox-confirm .lobibox-header .lobibox-title,
        div.lobibox.lobibox-info .lobibox-header .lobibox-title {
            font-weight: 600;
        }

        div.lobibox.lobibox-confirm .lobibox-header .btn-close,
        div.lobibox.lobibox-info .lobibox-header .btn-close {
            position: absolute;
            font-size: 1.2em;
            right: 0;
            top: 0;
            padding: 4px 10px;
            border-radius: 0px calc(5px * 2);
            transition: all 0.2s ease-in;
        }

            div.lobibox.lobibox-confirm .lobibox-header .btn-close:hover,
            div.lobibox.lobibox-info .lobibox-header .btn-close:hover {
                background-color: var(--module-color);
                color: white;
                text-shadow: none;
            }

    div.lobibox.lobibox-confirm .lobibox-body,
    div.lobibox.lobibox-info .lobibox-body {
        position: initial;
        display: flex;
        justify-content: center;
        background-color: var(--module-color);
        text-align: center;
        height: max-content !important;
        max-height: 8em !important;
        overflow-y: auto;
    }

        div.lobibox.lobibox-confirm .lobibox-body::-webkit-scrollbar,
        div.lobibox.lobibox-info .lobibox-body::-webkit-scrollbar {
            border-radius: 5px;
        }

        div.lobibox.lobibox-confirm .lobibox-body .lobibox-icon-wrapper,
        div.lobibox.lobibox-info .lobibox-body .lobibox-icon-wrapper {
            display: flex;
            position: absolute;
            width: 80px;
            height: 1.3em;
            top: -0.5em;
            background-color: white;
            z-index: -1;
            border-radius: 50%;
            justify-content: center;
        }

            div.lobibox.lobibox-confirm .lobibox-body .lobibox-icon-wrapper i,
            div.lobibox.lobibox-info .lobibox-body .lobibox-icon-wrapper i {
                color: #292929 /*var(--nav-color)*/;
                font-size: 75px;
            }

    div.lobibox.lobibox-confirm .lobibox-footer,
    div.lobibox.lobibox-info .lobibox-footer {
        background-color: var(--module-color);
        width: 35%;
        display: flex;
        justify-content: space-evenly;
        padding: 15px 6px;
    }

        div.lobibox.lobibox-confirm .lobibox-footer button,
        div.lobibox.lobibox-info .lobibox-footer button {
            background-color: #292929 /*var(--nav-color)*/;
            border: 1px solid #fff;
            margin: 0;
            border-radius: 5px;
            font-weight: bold;
            color: #fff;
            padding: 9px 22px;
            font-size: 15px;
        }

            div.lobibox.lobibox-confirm .lobibox-footer button:hover,
            div.lobibox.lobibox-info .lobibox-footer button:hover {
                background-color: #101010 /*darken(var(--nav-color), 5%)*/;
                color: #fff;
            }

            div.lobibox.lobibox-confirm .lobibox-footer button.lobibox-btn-no,
            div.lobibox.lobibox-info .lobibox-footer button.lobibox-btn-no {
                background-color: #bbbfcf;
            }

                div.lobibox.lobibox-confirm .lobibox-footer button.lobibox-btn-no:hover,
                div.lobibox.lobibox-info .lobibox-footer button.lobibox-btn-no:hover {
                    background-color: #a4a8ba;
                }
