/*
 * 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;

}
.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}body {
    font-family: "Helvetica", sans-serif;
    color: var(--neutral-100);
    font-size: 16px;

	--primary-light: #fffae8;
	--primary: #e3b510;
	--primary-dark: #cfa50b;

    --neutral-10: #F2F3F8;
    --neutral-20: #E8EAF2;
    --neutral-40: #CBCDDC;
    --neutral-60: #9CA0BA;
    --neutral-80: #646881;
    --neutral-100: #232639;
    --neutral-120: #050710;
}


::selection {
    color: #fff;
    background-color: var(--primary);
}
  
::-moz-selection {
    color: #fff;
    background-color: var(--primary);
}

* {
    box-sizing: border-box;
}

*:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.login-dialog-middle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    background-image: url(app/ext/revisaudit-style/images/background.jpg);
    background-position: left center;
    background-size: cover;
    z-index: -1;
}

.login-ui {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    height: 100vh;
}

.login-ui .login-dialog {
    width: 100%;
    max-width: 480px;
    text-align: left;
    padding: 40px;
    border: inherit;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.15);
    display: inline-block;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    -khtml-border-radius: 16px;
    border-radius: 16px;
	background-color: white;
}

.login-ui .login-dialog .logo {
	background-image: url(app/ext/revisaudit-style/images/logo.png);
	background-repeat: no-repeat;
    background-size: 80px 80px;
    -webkit-background-size: 80px 80px;
    background-position: center center;
    -webkit-background-position: center center;
    width: 80px;
    height: 80px;
    border-radius: 8px;
}
.login-ui .login-dialog .version .app-name {
    text-transform: none;
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.login-ui .login-dialog .login-fields input,
.login-ui .login-fields .labeled-field .field-header,
input[type="submit"], button, a.button {
    padding: 16px 24px;
    font-size: 16px;
    line-height: 24px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
    border: 2px solid #000;
    margin-bottom: 16px;
}
.login-ui .login-dialog .login-fields input {
    border-color: var(--neutral-60);
}
.login-ui .login-fields .labeled-field .field-header {
    border-color: transparent;
    color: var(--neutral-60);
    z-index: -1;
    margin: 0;
    opacity: 1;
}
.login-ui .login-dialog .login-fields input:hover {
    border-color: var(--neutral-80);
}
.login-ui .login-dialog .login-fields input:focus,
.login-ui .login-dialog .login-fields input:focus-within,
.login-ui .login-dialog .login-fields input:focus-visible {
    border-color: var(--primary);
    outline: none;
}
.login-ui .login-dialog .login-fields input::placeholder {
    font-size: 16px;
    line-height: 24px;
}

.login-ui .login-dialog .buttons {
    margin-top: 16px;
}
input[type="submit"], button, a.button {
    background-color: var(--primary);
    border: 0;
    color: white;
    text-shadow: -1px -1px rgba(0,0,0,0.3);
    box-shadow: inherit;
    text-shadow: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

input[type="submit"]:hover, button, a.button:hover {
	background-color: var(--primary-dark);
}

.login-ui .sso-providers:last-child {
    display: flex !important;
}
.login-ui .sso-providers {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
    background-color: #fff;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    -khtml-border-radius: 16px;
    border-radius: 16px;
    width: 480px;
    padding: 40px !important;
    position: static !important;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.15);
}
.login-ui .sso-providers ul {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
}
.login-ui .sso-providers ul li a {
    display: block;
    padding: 16px 24px;
    text-align: center;
    border: 2px solid var(--neutral-100);
    background-color: transparent;
    color: var(--neutral-100);
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease-out;
}
.login-ui .sso-providers ul li a:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background-color: var(--primary-light);
}
.sso-providers li::before {
    content: none !important;
}

/* a[href="api/ext/openid/login"]::before,
a[href="api/ext/saml/login"]::before {
    content: "Microsoft " !important;
} */

.sso-providers {
    text-indent: -9999px;
    line-height: 0; /* Collapse the original line */
}
.sso-providers::before {
    content: "SSO Microsoft";
    font-size: 24px;
    font-weight: 600;
    text-indent: 0;
    display: block;
    line-height: initial; /* New content takes up original line height */
}

a[href="api/ext/openid/login"],
a[href="api/ext/saml/login"] {
    text-indent: -9999px;
    line-height: 0; /* Collapse the original line */
}
a[href="api/ext/openid/login"]::after,
a[href="api/ext/saml/login"]::after {
    content: "Se connecter avec Microsoft";
    text-indent: 0;
    display: block;
    line-height: initial; /* New content takes up original line height */
}

/** Cache le numéro de version */
.login-ui .login-dialog .version .version-number {
    display: none;
}/*
 * 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.
 */

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

    display: none;

}

.login-ui .sso-providers:last-child {
    display: block;
}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
