@import url(/fonts/GreycliffCF/style.css);

:root {
    --font-color: #282828;
    --error-color: #dc3545;
    --color-primary: #0cb50c;
    --color-shader-10: #0ba30b;
    --color-shader-20: #0a910a;
    --color-shader-30: #076d07;
    --color-shader-40: #054805;
    --color-shader-80: #022402;
    --color-tones-10: #18b018;
    --color-tones-20: #23aa23;
    --color-tones-40: #3aa03a;
    --color-tones-60: #529552;
    --color-tones-80: #5d905d;
    --color-tints-10: #24bc24;
    --color-tints-20: #3dc43d;
    --color-tints-40: #6dd36d;
    --color-tints-60: #9ee19e;
    --color-tints-80: #cef0ce;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    font-family: 'GreycliffCF', sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
    background-color: var(--color-primary);
    color: white;
}

::-webkit-scrollbar {
    width: 7px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background: gray;
    border-radius: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-track:hover {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    border-radius: 0px;
    background-color: var(--color-primary);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    color-scheme: white;
    -webkit-box-shadow: 0 0 0 30px #f0f0f0 inset !important;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

a {
    color: var(--color-primary);
}

@media (prefers-color-scheme: dark) {
    body {
        background: #282828;
        color: white;
    }

    #login {
        background-color: #272727;
        box-shadow: 0 10px 40px #232323;
    }

    #eula-modal>div {
        background-color: #444444;
        box-shadow: 0 10px 40px #232323;
    }

    #eula-modal>div>.content {
        box-shadow: inset 0px 10px 10px #444444, inset 0px -10px 10px #444444;
    }

    #login>.right>.subtitle,
    #login>.right label.input>span,
    #login>.right .control-checkbox {
        color: #cacaca;
    }

    #art {
        background-color: #4c4c4c;
    }

    #login>.right label.input>input,
    #login>.right label.input>div,
    #login>.right label.input>div>input,
    #login>.right label.input>div>i {
        background-color: #666666;
        color: white;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        color-scheme: dark;
        -webkit-box-shadow: 0 0 0 30px #666666 inset !important;
        transition: none !important;
    }

    #company-selector-modal>div {
        box-shadow: 0 4px 15px rgb(0 0 0 / 40%);
        background: #515151 !important;
    }

    #company-selector-modal>div>header {
        background: #515151 !important;
    }

    #company-selector-modal>div>main>div>div {
        background: linear-gradient(to bottom, transparent, #2b2b2be7 45%) !important;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: var(--color-tints-80);
        color: var(--font-color);
    }

    #login {
        background-color: white;
        box-shadow: 0 10px 40px var(--color-tints-80);
    }

    #eula-modal>div {
        background-color: white;
        box-shadow: 0 4px 15px rgb(210 210 210 / 40%);
    }

    #eula-modal>div>.content {
        box-shadow: inset 0px 10px 10px #ffffff, inset 0px -10px 10px #ffffff;
    }

    #login>.right>.subtitle,
    #login>.right label.input>span,
    .control-checkbox {
        color: #585858;
    }

    #art {
        background-color: var(--color-tints-40);
    }

    #login>.right label.input>input,
    #login>.right label.input>div,
    #login>.right label.input>div>input {
        background-color: #eaeaea;
    }

    #login>.right label.input>div>i {
        color: gray;
    }
}

@media (max-width: 850px) {
    #login {
        max-height: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0px !important;
        overflow-y: auto !important;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #art {
        overflow: hidden;
        justify-content: center;
        border-radius: 0px !important;
        max-height: 400px;
    }

    #login>.right {
        padding: 20px !important;
        width: auto !important;
        max-height: none !important;
        flex: 1;
    }

    #login>.right>.inputs {
        margin-bottom: auto;
    }
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--titlebar-height, 0);
    overflow: hidden;
    display: flex;
    height: 100vh;
    width: 100vw;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: url(../../images/pop-tranaparent-bg.png);
    animation: bg-animation 60s linear infinite;
}

body.has-titlebar {
    padding-top: var(--titlebar-height, 30px);
}

@keyframes bg-animation {
    from {
        background-position-y: 0%;
    }

    to {
        background-position-y: -463px;
    }
}

#login {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    height: 90%;
    border-radius: 25px;
    max-width: 900px;
    max-height: 500px;
}

#login.loading>.right {
    pointer-events: none;
}

#login.loading button[type="submit"]>.loading_indicator {
    display: block;
}

#login.loading button[type="submit"]>span {
    display: none;
}

#login.loading>.right>.inputs {
    opacity: 0.4;
}

#art {
    display: flex;
    border-radius: 25px 0 0 25px;
    max-height: 500px;
    flex: 1;
}

#art>svg {
    transform: scale(1.2) translateX(3%);
    height: 100%;
}

#login>.right {
    display: flex;
    padding: 50px 55px 50px 65px;
    justify-content: center;
    flex-direction: column;
    position: relative;
    max-height: 500px;
    width: 430px;
}

#login>.right>.title {
    font-size: 35px;
    margin-bottom: 3px;
    position: relative;
    left: -2px;
}

#login>.right>.subtitle {
    margin-bottom: 30px;
    font-size: 16px;
}

#login>.right>.inputs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#login>.right>button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    margin-top: 40px;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(45deg, var(--color-primary), var(--color-tints-20));
    text-shadow: 0 0 15px #000000a3;
    cursor: pointer;
}

#login>.right>button>.loading_indicator {
    display: none;
    margin: auto;
    font-size: 2px;
}

#login>.right label.input {
    display: flex;
    flex-direction: column;
    cursor: text;
}

#login>.right .inputs.error>.input>span {
    color: var(--error-color);
}

#login>.right .inputs.error>.input>input,
#login>.right .inputs.error>.input>div {
    box-shadow: 0 0 0 1.5px var(--error-color);
}

#login>.right .inputs>.error {
    color: var(--error-color);
    margin-top: -25px;
    position: relative;
    top: 15px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s ease;
}

#login>.right .inputs.error>.error {
    opacity: 1;
    pointer-events: all;
    user-select: text;
}

#login>.right label.input>span {
    font-size: 15px;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

#login>.right label.input>input {
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: box-shadow 0.3s ease;
}

#login>.right label.input>div {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 12px;
    transition: box-shadow 0.3s ease;
}

#login>.right label.input>div>input {
    height: 20px;
    border: none;
    margin-right: 10px;
    width: 100%;
}

#login>.right label.input.password:not(.show-password)>div>input {
    font-size: 30px;
    font-family: "Roboto", sans-serif;
    letter-spacing: 1px;
}

#login>.right label.input.password.show-password>div>input {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

#login>.right label.input>div>i {
    font-size: 18px;
    line-height: 0px;
    cursor: pointer;
}

#login>.right label.input>div>i::before {
    content: "\f06e";
}

#login>.right label.input.password.show-password>div>i::before {
    content: "\f070";
}

#login>.right>.fixed-header {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    gap: 15px;
    align-items: center;
    user-select: none;
}

#login>.right>.fixed-header>* {
    cursor: pointer;
    transition: transform 0.2s ease;
}

#login>.right>.fixed-header>*:hover {
    transform: scale(1.1);
}

#login>.right>.fixed-header .pop,
#login>.right>.fixed-header .pop>img {
    height: 30px;
    width: 60px;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    filter: blur(5px);
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: var(--color-tints-40);
    animation: animate 25s linear infinite;
    bottom: -150px;

}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}

.control-checkbox {
    display: flex;
    position: relative;
    padding-left: 27px;
    cursor: pointer;
    user-select: none;
    height: 20px;
    font-size: 15px;
    align-items: center;
}

.control-checkbox input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control-checkbox .control_indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border-radius: 8px;
    background-color: #adadad;
    transition: background-color 0.3s ease;
}

.control-checkbox input:checked~.control_indicator {
    background-color: var(--color-primary);
}

.control-checkbox input:disabled~.control_indicator {
    background-color: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}

.control-checkbox .control_indicator:after {
    content: '';
    position: absolute;
    display: none;
}

.control-checkbox input:checked~.control_indicator:after {
    display: block;
}

.control-checkbox .control_indicator:after {
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.control-checkbox input:disabled~.control_indicator:after {
    border-color: #7b7b7b;
}

.loading_indicator,
.loading_indicator:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.loading_indicator {
    display: block;
    margin: 30px auto;
    font-size: 4px;
    position: relative;
    text-indent: -9999em;
    border: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#eula-modal {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: -1;
    visibility: hidden;
    opacity: 0;
    z-index: 1050;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, z-index 0.3s;
}

#eula-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

#eula-modal>div {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    max-width: 600px;
    max-height: 80%;
    width: 600px;
    margin: 15px;
    transform: scale(0.8) translateY(-40px);
    transition: transform 0.3s;
}

#eula-modal.show>div {
    transform: scale(1) translateY(0px);
}

#eula-modal>div>.header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#eula-modal>div>.header>button {
    font-size: 22px;
    line-height: 24px;
    border: none;
    background: no-repeat;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: -6px;
    color: inherit;
}

#eula-modal>div>.header>h3 {
    margin: 0;
    font-size: 20px;
}

#eula-modal>div>.content {
    padding: 10px 15px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    overflow-y: overlay;
    letter-spacing: 0.2px;
    font-weight: 400;
}

#eula-modal>div>.footer {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

#eula-modal>div>.footer>.control-checkbox {
    max-width: 300px;
    padding-left: 32px;
}

#eula-modal>div>.footer>.control-checkbox input {
    left: 4px;
    top: 7px;
}

#eula-modal>div>.footer>button {
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    color: white;
    background: linear-gradient(45deg, var(--color-primary), var(--color-tints-20));
    cursor: pointer;
    width: 130px;
}

#eula-modal>div>.footer>button>span {
    display: flex;
    align-items: center;
    font-size: 17px;
    gap: 8px;
}

#eula-modal>div>.footer>button>.loading_indicator {
    display: none;
    margin: auto;
    font-size: 2px;
}

#eula-modal.loading>div {
    pointer-events: none;
}

#eula-modal.loading>div>.footer>button>.loading_indicator {
    display: block;
}

#eula-modal.loading>div>.footer>button>span {
    display: none;
}

@media (max-width: 450px) {
    #eula-modal>div {
        margin: 0;
        padding-top: 30px;
        border-radius: 0;
        max-height: 100%;
        height: 100%;
    }
}

#company-selector-modal {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: -1;
    visibility: hidden;
    opacity: 0;
    z-index: 1050;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, z-index 0.3s;
}

#company-selector-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

#company-selector-modal>div {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    overflow-y: overlay;
    max-width: 770px;
    max-height: 700px;
    margin: 15px;
    background-color: white;
    transform: scale(0.8) translateY(-20px);
    transition: transform 0.3s;
}

#company-selector-modal.show>div {
    transform: scale(1) translateY(0px);
}

#company-selector-modal>div>header {
    display: flex;
    justify-content: space-between;
    position: sticky;
    gap: 15px;
    top: 0;
    z-index: 10;
    background-color: white;
    padding: 20px 40px;
}

#company-selector-modal>div>header>.left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#company-selector-modal>div>header>.left>.welcome {
    font-size: 16px;
    font-weight: 300;
}

#company-selector-modal>div>header>.left>.title {
    font-size: 19px;
    font-weight: 600;
}

#company-selector-modal>div>header>.close {
    border: none;
    background: none;
    font-size: 23px;
    cursor: pointer;
    padding: 5px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

#company-selector-modal>div>header>.close:hover {
    color: var(--color-primary);
}

#company-selector-modal>div>main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 10px 40px 40px;
}

#company-selector-modal>div>main>div {
    position: relative;
    border: 2px solid #c5c5c5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 210px;
    height: 210px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.3s ease;
}

#company-selector-modal>div>main>div:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

#company-selector-modal>div>main>div>img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

#company-selector-modal>div>main>div>div {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 10px 8px;
    background: linear-gradient(to bottom, transparent, #ffffffe8 45%);
}

#company-selector-modal>div>main>div>div>.name {
    font-size: 18px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}