html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -moz-tap-highlight-color: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    -webkit-overflow-scrolling: touch !important;
    -webkit-text-size-adjust: none;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    background: white;
    overflow-x: hidden;
    color: #1b1b1b;

    background-image: linear-gradient(#ffffff, #ffffff); 
    background-color: #000000; 
}

:root {
    color-scheme: only light;
}

#login_loader_inner {
    top: 0px;
    position: absolute;
    width: 100%;
    display: none;
    height: 5px;
}

#login_loader_outer {
    pointer-events: none;
    top: 0px;
    left: 0px;
    right: 0px;
    position: absolute;
    width: 100%;
    display: none;
    height: 5px;
}

#loginflow {
    top: calc(50% + 20px);
    transform: translateY(max(-50%, -50vh - 8px));
    position: relative;
    width: calc(100% - 28px);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
    min-height: 550px;
}

.login_form {
    width: calc(100% - 50px);
    padding-left: 24px;
    padding-right: 24px;
    border: 1px solid #c3c3c3;
    border-radius: 8px;
    padding-top: 34px;
    padding-bottom: 28px;
}

.login_loader_visible #login_loader_inner {
    display: block;
}

@media (max-width: 600px) {
    #loginflow {
        width: calc(100% - 24px);
        padding-left: 12px;
        padding-right: 12px;
        max-width: 400px;
    }

    .login_form {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
        border: none;
    }

    .login_loader_visible #login_loader_outer {
        display: block;
    }

    .login_loader_visible #login_loader_inner {
        display: none;
    }

}

@media (max-height: 700px) and (max-width: 600px) {
    #loginflow {
        top: 12px;
        transform: translateY(0px);
    }
}

.login_form.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.input_label {
    font-size: 20px;
    font-weight: 500;
    padding-bottom: 6px;
    padding-top: 2px;
    max-width: 420px;
    line-height: 24px;
}

input {
    font-size: 20px;
    border: 2px solid #808080;
    font-family: 'roboto', sans-serif;
    border-radius: 8px;
    padding: 7px 8px;
    background-color: white;
    max-width: calc(100% - 20px);
    width: 420px;
    outline: none;
    transition: 0.1s border;
    color: #1b1b1b;
    -webkit-appearance: unset;
    line-height: 24px;
}

input:focus {
    border: 2px solid #03ae75;
}

.input_error {
    color: #f44336;
    font-size: 18px;
    padding-top: 4px;
    display: none;
    margin-bottom: -2px;
}

input.error {
    border: 2px solid #f44336;
}

.disabled .indeterminate {
    display: block !important;
}

.loading .indeterminate {
    display: block !important;
}

.indeterminate {
    position: relative;
    height: 5px;
    display: none;
    width: 100%;
    background-color: #a1f1d6;
    background-clip: padding-box;
    overflow: hidden;
    margin-bottom: -5px;
}

.indeterminate div {
    background-color: #03ae75;
}

.indeterminate div:before {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.indeterminate div:after {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    -webkit-animation-delay: 1.15s;
    animation-delay: 1.15s;
}

@-webkit-keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@-webkit-keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}

.submit_button {
    font-family: 'Roboto', sans-serif;
    background-color: #03ae75;
    color: white;
    line-height: 32px;
    border-radius: 10px;
    border-width: 2px;
    border-color: #03ae75;
    border-style: solid;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    font-weight: 500;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    text-align: center;
    font-size: 24px;
    padding: 5px;
    margin-top: 10px;
}

.buttons {
    overflow: hidden;
}

.submit_button:hover, .submit_button:focus {
    background-color: #009c68;
    border-color: #009c68;
}

.submit_button:active {
    background-color: #009060;
    border-color: #009060;
}

.tv_client_menu_bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.tv_client_menu_bar > div:nth-child(1) {

}

.tv_client_menu_bar > div:nth-child(2) {
    position: absolute;
    right: 0;
}

.tv_client_menu_bar > div:nth-child(3) {
    display: none;
    position: absolute;
    top: 56px;
    right: 56px;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 2px 6px 0px #00000047;
}

.tv_client_menu_bar > div:nth-child(3) > a {
    display: block;
    font-size: 22px;
    padding: 10px 9px;
    transition: background-color 0.15s;
    text-decoration: none;
    color: #1b1b1b;
}

.tv_client_menu_bar > div:nth-child(3) > a:hover {
    background-color: #ebebeb;
}

.tv_client_menu_bar > div:nth-child(3) > a:first-child {
    padding-top: 12px;
}

.tv_client_menu_bar > div:nth-child(3) > a:last-child {
    padding-bottom: 12px;
}

.tv_client_options_button {
    display: block;
    width: 42px;
    height: 42px;
    padding: 7px;
    fill: #424242;
    cursor: pointer;
    float: left;
    padding-right: 10px;
}

.tv_close_button {
    display: block;
    width: 42px;
    height: 42px;
    padding: 7px;
    background: #f44336;
    fill: white;
    cursor: pointer;
    border-bottom-left-radius: 8px;
    float: left;
}

#tv_version_bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5px;
    font-size: 18px;
    color: #484848;
}