﻿/*
    Myrtille: A native HTML4/5 Remote Desktop Protocol client.

    Copyright(c) 2014-2021 Cedric Coste

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

/* Windows style UI */

body
{
    padding: 0px;
    margin: 0px;
    background-color: #34495e;
    color: #ecf0f1;
}

a
{
    text-decoration: none;
    color: #ecf0f1;
}

a img
{
    border: 0;
}

*
{
    font-family: "Segoe UI";
}

/*****************************************************************************************************************************************************************************************************/
/*** LOGIN                                                                                                                                                                                         ***/
/*****************************************************************************************************************************************************************************************************/

#login
{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -150px;
    margin-left: -225px;
    width: 450px;
    height: 300px;
    padding: 10px 10px 30px 10px;
}

/* customizable logo (replace the background image by yours) */
/* remote desktop logo, credits BlackVariant (Patrick) http://blackvariant.deviantart.com */
#logo
{
    background-image: url("../img/RemoteDesktop.png");
    background-repeat: no-repeat;
    background-position: center;
    height: 128px;
    width: auto;
    max-width: 400px;
    max-height: 128px;
    margin-bottom: 20px;
}

.inputDiv
{
    display: inline-block;
}

label,
#mfaProvider
{
    float: left;
    width: 200px;
    margin-top: 2px;
}

#mfaProvider
{
    cursor: pointer;
}

#mfaProvider:hover
{
    text-decoration: underline;
}

#hostType,
#securityProtocol
{
    width: 204px;
    margin-top: 2px;
}

#server,
#vmGuid,
#domain,
#user,
#password,
#mfaPassword,
#program
{
    width: 200px;
    margin-top: 2px;
}

#vmEnhancedMode
{
    margin-top: 6px;
    margin-left: 0px;
}

/* program to run is better defined into an URL, but can be enabled into the login screen */
#programLabel,
#program
{
    visibility: visible;
    display: inline-block;
}

#connect
{
    width: 204px;
    margin-top: 2px;
    margin-left: 200px;
    display: inline-block;
}

#version
{
    font-size: 10px;
    display: inline-block;
}

#adminDiv
{
    margin-top: 5px;
    font-size: 12px;
    text-decoration: underline;
}

#errorDiv
{
    margin-left: 200px;
}

#connectError
{
    color: #ff0000;
}

/*****************************************************************************************************************************************************************************************************/
/*** HOSTS                                                                                                                                                                                         ***/
/*****************************************************************************************************************************************************************************************************/

#hosts
{
    /* if needed */
}

#hostsControl
{
    /* if needed */
}

#enterpriseUserInfo
{
    width: 250px;
}

#newRDPHost,
#newSSHHost,
#logout
{
    width: 150px;
}

#hostsList
{
    /* if needed */
}

.hostDiv
{
    display: inline-block;
    text-align: center;
    font-size: 15px;
}

.hostDiv:hover
{
    background-color: #ecf0f1;
    color: #000;
}

.hostLink,
.hostName
{
    cursor: pointer;
}

.hostName:hover
{
    text-decoration: underline;
}

/*****************************************************************************************************************************************************************************************************/
/*** TOOLBAR                                                                                                                                                                                       ***/
/*****************************************************************************************************************************************************************************************************/

#toolbarToggle
{
    position: absolute;
    border: 1px solid #ddd;
    background-color: #F4F4F4;
    z-index: 200;
}

#toolbar
{
    position: absolute;
    left: 23px;
    overflow: auto;
    display: inline-block;
    z-index: 200;
}

/* connection */
#serverInfo,
#userInfo
{
    float: left;
    width: 150px;
}

/* controls */
#stat,
#debug,
#browser,
#scale,
#reconnect,
#keyboard,
#osk,
#clipboard,
#files,
#cad,
#mrc,
#vswipe,
#share,
#disconnect
{
    float: left;
    width: 110px;
}

/*****************************************************************************************************************************************************************************************************/
/*** POPUPS                                                                                                                                                                                        ***/
/*****************************************************************************************************************************************************************************************************/

/* background fader */

#bgfDiv
{
    position: absolute;
    visibility: hidden;
    display: none;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    filter: alpha(opacity=70);
    opacity: .70;
    -moz-opacity: 0.7;
    background-color: black;
    z-index: 300;
}

/* draggable popups */

#dragDiv
{
    position: absolute;
    overflow: hidden;
    left: 50px;
    top: 50px;
    background-color: white;
    z-index: 400;
    visibility: hidden;
    display: none;
    touch-action: none;
}

#dragHandle
{
    height: 20px;
    background-color: silver;
}

/* virtual keyboard popup */

#virtualKeyboardPopup
{
    width: 470px;
    height: 290px;
}

#virtualKeyboardPopupDesc
{
    font-weight: bold;
}

#virtualKeyboardPopupText
{
    width: 425px;
    height: 150px;
    margin-bottom: 5px;
}

/* on-screen keyboard popup */

#onScreenKeyboardPopup
{
    width: 500px;
    height: 300px;
}

/* show dialog popup */

#showDialogPopup
{
    width: 470px;
    height: 240px;
}

#showDialogPopupDesc
{
    font-weight: bold;
}

#showDialogPopupText
{
    width: 425px;
    height: 150px;
    margin-bottom: 5px;
}

/* file storage popup */

#fileStoragePopup
{
    width: 470px;
    height: 130px;
}

#fileStoragePopupDesc
{
    font-weight: bold;
}

#fileToDownloadSelect
{
    width: 250px;
}

/* host popup */

#editHostPopup,
#editHostPopupInner
{
    width: 420px;
    height: 450px;
}

#editHostPopupInner
{
    color: #000;
    background: #fff;
}

#editHostPopupTitle
{
    padding-top: 20px;
    padding-left: 10px;
}

.editHostPopupInput
{
    padding-left: 10px;
}

/* credential popup */

#editCredentialPopup,
#editCredentialPopupInner
{
    width: 400px;
    height: 250px;
}

#editCredentialPopupInner
{
    color: #000;
    background: #fff;
}

#editCredentialsPopupTitle
{
    padding-top: 20px;
    padding-left: 10px;
}

.editCredentialPopupInput
{
    padding-left: 10px;
}

/* host session popup */

#editHostSessionPopup,
#editHostSessionPopupInner
{
    width: 400px;
    height: 500px;
}

#editHostSessionPopupInner
{
    color: #000;
    background: #fff;
}

#editHostSessionPopupTitle
{
    padding-top: 20px;
    padding-left: 10px;
}

.editHostSessionPopupInput
{
    padding-left: 10px;
}

#sessionUrl
{
    width: 370px;
}

/* share session popup */

#shareSessionPopup,
#shareSessionPopupInner
{
    width: 400px;
    height: 370px;
}

#shareSessionPopupInner
{
    color: #000;
    background: #fff;
}

#shareSessionPopupTitle
{
    padding-top: 20px;
    padding-left: 10px;
}

.shareSessionPopupInput
{
    padding-left: 10px;
}

#guestControlLabel
{
    padding-top: 10px;
    width: 100px;
}

#guestControl
{
    margin-top: 17px;
}

/* change password popup */

#changePasswordPopup,
#changePasswordPopupInner
{
    width: 400px;
    height: 330px;
}

#changePasswordPopupInner
{
    color: #000;
    background: #fff;
}

#changePasswordPopupTitle
{
    padding-top: 20px;
    padding-left: 10px;
}

.changePasswordMessage
{
    padding-left: 10px;
}

.changePasswordPopupInput
{
    padding-left: 10px;
}

#changeError
{
    padding-left: 10px;
    font-size: 10pt;
    color: red;
    width:380px;
}

/* copy clipboard popup */

#copyClipboardPopup
{
    width: 470px;
    height: 240px;
}

#copyClipboardPopupDesc
{
    font-weight: bold;
}

#copyClipboardPopupText
{
    width: 425px;
    height: 150px;
    margin-bottom: 5px;
}

/* paste clipboard popup */

#pasteClipboardPopup
{
    width: 470px;
    height: 240px;
}

#pasteClipboardPopupDesc
{
    font-weight: bold;
}

#pasteClipboardPopupText
{
    width: 425px;
    height: 150px;
    margin-bottom: 5px;
}

/*****************************************************************************************************************************************************************************************************/
/*** HELPERS                                                                                                                                                                                       ***/
/*****************************************************************************************************************************************************************************************************/

/* remote session display */

#displayDiv
{
    position: absolute;
    z-index: 100;
    /* fix touchscreen on Edge (disabled by default and using pointer events instead of touch) by emulating mouse events */
    touch-action: none;
}

/* remote session display: canvas (HTML5) */

canvas
{
	position: absolute;
    z-index: 100;
}

/* remote session display: divs (HTML4) */

.imageDiv
{
	position: absolute;
	background-repeat: no-repeat;
	overflow: hidden;
	z-index: 100;
}

/* remote session helpers */

#cacheDiv
{
    visibility: hidden;
	display: none;
}

#statDiv
{
    visibility: hidden;
	display: none;
	font-size: 10px;
	background-color: black;
	color: lightgrey;
	z-index: 200;
}

#debugDiv
{
    visibility: hidden;
    display: none;
	font-size: 12px;
	background-color: lightgrey;
    color: black;
	z-index: 200;
}

#msgDiv
{
	position: absolute;
	visibility: hidden;
    display: none;
	font-size: 18px;
	font-weight: bold;
    overflow: hidden;
	background-color: red;
	color: white;
	z-index: 200;
}

#kbhDiv
{
	position: absolute;
	visibility: hidden;
	display: none;
	font-size: 18px;
	font-weight: bold;
	text-align: left;
	background-color: #FAF8CC;
	color: black;
	z-index: 200;
}
/* ONISEH ARPA LOGIN - FINAL */
#hostConnectDiv
{
    visibility: hidden !important;
    display: none !important;
}

#programLabel,
#program
{
    visibility: hidden !important;
    display: none !important;
}

/* ===== ONISEH LOGIN BACKGROUND ===== */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('../img/oniseh/login-bg.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* ===== ONISEH LOGIN UI ===== */

/* Login container */
#login {
    position: fixed !important;
    top: 50% !important;
    left: auto !important;
    right: 11% !important;
    transform: translateY(-50%) !important;

    width: 360px !important;
    padding: 38px 42px 42px 42px !important;

    background: rgba(255,255,255,0.88) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 55px rgba(0,0,0,0.12) !important;

    box-sizing: border-box !important;
}

/* ONISEH logo */
#logo {
    width: 95px !important;
    height: 125px !important;
    margin: 0 auto 28px auto !important;

    background-image: url('../img/oniseh/oniseh-mark.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Labels */
#userLabel,
#passwordLabel {
    display: block !important;
    width: 100% !important;
    margin: 14px 0 6px 0 !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    color: #4b5558 !important;
}

/* Username + Password */
#user,
#password {
    display: block !important;
    width: 100% !important;
    height: 42px !important;

    padding: 0 12px !important;
    margin: 0 0 10px 0 !important;

    box-sizing: border-box !important;
    border: 1px solid #ccd7d8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;

    font-size: 15px !important;
    outline: none !important;
}

/* Focus */
#user:focus,
#password:focus {
    border-color: #138f91 !important;
    box-shadow: 0 0 0 3px rgba(19,143,145,0.12) !important;
}

/* Connect button */
#connect {
    display: block !important;
    width: 100% !important;
    height: 44px !important;

    margin-top: 22px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #138f91 !important;
    color: #ffffff !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

#connect:hover {
    background: #107d7f !important;
}

/* Remove Myrtille details */
#version,
#admin {
    display: none !important;
}

/* Connection error */
#connectError {
    display: block !important;
    margin-top: 14px !important;
    text-align: center !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
}

/* Mobile */
@media (max-width: 800px) {
    #login {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 40px) !important;
        max-width: 360px !important;
    }
}


/* ===== ONISEH RTL ===== */
#userLabel,
#passwordLabel {
    text-align: right !important;
    direction: rtl !important;
}

#user,
#password {
    text-align: right !important;
    direction: rtl !important;
}

#connect {
    direction: rtl !important;
    text-align: center !important;
}


/* ===== ONISEH LOGIN CARD FIX ===== */

#login {
    width: 360px !important;
    height: auto !important;
    min-height: 520px !important;
    padding: 38px 42px 40px 42px !important;
    overflow: visible !important;
}

/* keep all login controls inside the card */
#userLabel,
#passwordLabel {
    width: 100% !important;
    box-sizing: border-box !important;
}

#user,
#password {
    width: 100% !important;
    box-sizing: border-box !important;
}

#connect {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 24px !important;
}


/* ===== ONISEH FINAL LOGIN ALIGNMENT ===== */

#connect {
    display: block !important;
    position: static !important;
    float: none !important;

    width: 100% !important;
    height: 44px !important;

    margin: 26px 0 0 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Hide Myrtille hosts management */
#adminText,
#adminLink {
    display: none !important;
}


/* ===== EQUAL LOGIN FIELDS ===== */
#user,
#password {
    display: block !important;
    position: static !important;
    float: none !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 12px !important;

    box-sizing: border-box !important;
}


/* ===== ONISEH FIELD + LOGO FINAL FIX ===== */

/* Logo 20% larger */
#logo {
    width: 114px !important;
    height: 150px !important;
    background-size: contain !important;
}

/* Force identical field dimensions */
#user,
#password {
    position: static !important;
    display: block !important;
    float: none !important;

    width: 276px !important;
    min-width: 276px !important;
    max-width: 276px !important;

    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 12px !important;

    box-sizing: border-box !important;
}

/* Button aligned with fields */
#connect {
    width: 276px !important;
    min-width: 276px !important;
    max-width: 276px !important;
}


/* ===== ONISEH MODE SELECTOR ===== */

#onisehModeSelector {
    display: flex !important;
    width: 276px !important;
    height: 42px !important;
    margin: 18px 0 0 0 !important;
    padding: 3px !important;

    box-sizing: border-box !important;
    direction: rtl !important;

    background: #eef3f3 !important;
    border: 1px solid #ccd7d8 !important;
    border-radius: 8px !important;
}

#onisehModeSelector .onisehModeOption {
    flex: 1 !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;

    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    color: #586466 !important;

    cursor: pointer !important;
}

#onisehModeSelector .onisehModeOption.active {
    background: #138f91 !important;
    color: #ffffff !important;
}

#connect {
    margin-top: 16px !important;
}


/* ONISEH PASSWORD EYE V2 */
#onisehPasswordEye {
    position: absolute;
    width: 20px;
    height: 20px;
    color: #718183;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.65;
    line-height: 0;
    user-select: none;
}

#onisehPasswordEye:hover {
    opacity: 1;
}

#onisehPasswordEye svg {
    display: block;
    width: 20px;
    height: 20px;
}
