/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
.restrictionList{border:0}button.restrictionListButton{font-size:.75em}img.restrictionListHeader{width:.75em;height:.75em}img.restrictionListItem{width:1em;height:1em}.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}/* Fond de l'écran de connexion */
div.login-ui {
    background: #231F1F;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    padding-top: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Boîte de dialogue */
.login-ui .login-dialog {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #1a284d;
    max-width: 5in;
    margin: 0 auto;
}

/* Message RGPD inséré au-dessus des champs */
.login-ui::before {
    content: "Toute activité effectuée sur ce bastion fait l’objet d’un enregistrement vidéo des sessions distantes, sans enregistreur de frappe. Ces enregistrements sont conservés à des fins de sécurité, d’audit et de conformité. L’accès à ce système implique l’acceptation des conditions d’utilisation préalablement transmises par e-mail.";
    display: block;
    background-color: #ffdddd;
    color: #ED1C24;
    padding: 1.2em 2em;
    margin-bottom: 1.5em;
    text-align: justify;
    font-weight: bold;
    font-size: 1.05em;
    border: 2px solid #ED1C24;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    white-space: pre-wrap;
	width: 600px;
}

/* Logo personnalisé */
.login-ui .login-dialog .logo {
    background-image: url("app/ext/grm/images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 10em;
    height: 5em;
    margin: 0 auto 1em auto;
}

/* Champs de saisie */
.login-ui .login-dialog input {
    padding: 0.7em;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 1em;
    box-sizing: border-box;
    font-size: 1em;
}

/* Bouton de connexion */
.login-ui .login-dialog button {
    background-color: #fcb813;
    color: #1a284d;
    border: none;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-ui .login-dialog button:hover {
    background-color: #e6a90f;
}

/* Message de bienvenue */
.login-ui .login-dialog .login-message {
    font-size: 1.3em;
    color: #1a284d;
    text-align: center;
    margin-bottom: 1em;
}

.welcome{
	max-width: 1000px;
	background-color: #FFDDDD;
	padding-bottom: 1px;
	border: 3px solid #E0004D;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    z-index: 999;
}

.welcome h2{
	color: #6D6F72;
}

.welcome p{
	padding-left: 1.5em;
    margin-top: 0;
}

.welcome div{
    text-align: center;
    padding: 0.5em;
    background-color: rgba(35,31,31,15%);
}

.recent-connections .thumbnail img{
	width: 100px;
}

.recent-connections .caption{
	width: 100px;
	margin-left: 0.5em;
	margin-right: 0.5em;
}

div.recent-connections div.connection{
	margin: 0 !important;
	padding: 0 !important;
}

.headerConnections{
	padding: 0.5em;
	height: 4em;
	background-color: #231F1F;
    color: white;
    position: relative;
}

.headerConnections img{
	position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    height: 80%;
    width: auto;

    filter: drop-shadow(0 0 1px #fff)
            drop-shadow(0 0 3px #fff)
            drop-shadow(0 0 7px rgba(255, 255, 255, 0.95))
            drop-shadow(0 0 14px rgba(255, 255, 255, 0.65));
}

.headerConnections h1{
	float: right;
    margin: 0;
    padding: 0;
    font-style: italic;
	font-size: 2em;
    line-height: 1.5em;
}

.warning{
    max-width: 1000px;
	background-color: #FAE571;
	padding: 5px;
	border: 3px solid #DEAA00;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    z-index: 999;
}

.welcome .btnClose, .warning .btnClose{
	float: right;
	padding: 0.5em;
	cursor: pointer;
}

.welcome a{
    color: #ED1C24;
    font-weight: bold;
}

.welcome ul, .warning ul{
    margin-top: 0;
    margin-top: 0;
}

.welcome li, .warning li{
    margin-bottom: 1.2rem;
}

.manage-connection input[type="text"],
.manage-connection input[type="number"],
.manage-connection input[type="password"]{
    field-sizing: content;
    max-width: unset;
    min-width: 30ch;
}