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

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

}

.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;
}
/* NTFS branding for the Guacamole login screen */

.login-ui {
    background: radial-gradient(circle at 20% 15%, #00c2d1 0%, #00a7b5 35%, #043c46 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
    padding: 2em 1em !important;
    box-sizing: border-box !important;
}

.login-ui .login-dialog-middle {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

.login-ui .login-dialog {
    max-width: 380px !important;
    width: 100%;
    box-sizing: border-box;
    padding: 2.5em 2.25em 2em !important;
    background: #ffffff;
    border: none !important;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 40, 46, 0.45);
    font-size: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login-ui .login-dialog .logo {
    width: 4em !important;
    height: 4em !important;
    background-size: 4em 4em !important;
    background-image: url("/app/ext/ntfs-branding/images/ntfs-favicon-2.png") !important;
    margin: 0 auto 0.6em !important;
}

.login-ui .login-dialog .version {
    padding: 0 0 1.25em 0;
}

.login-ui .login-dialog .version .app-name {
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: none;
    color: #0b3b42;
}

.login-ui .login-dialog .version .version-number {
    display: none !important;
}

.login-ui .login-fields .labeled-field .field-header {
    opacity: 0.45;
}

.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"],
.login-ui .login-dialog input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #dde8ea;
    border-radius: 9px;
    padding: 0.65em 0.85em;
    font-size: 0.95em;
    margin: 0.25em 0 0.75em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-ui .login-dialog input[type="text"]:focus,
.login-ui .login-dialog input[type="password"]:focus,
.login-ui .login-dialog input[type="email"]:focus {
    border-color: #00a7b5;
    box-shadow: 0 0 0 3px rgba(0, 167, 181, 0.16);
    outline: none;
}

.login-ui .login-dialog .buttons {
    margin-top: 0.5em;
}

.login-ui .login-dialog .buttons input.login,
.login-ui .login-dialog .buttons input.continue-login {
    width: 100%;
    background: #00a7b5;
    border: none;
    color: #ffffff;
    border-radius: 9px;
    padding: 0.75em 1em;
    font-weight: 600;
    font-size: 0.98em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.login-ui .login-dialog .buttons input.login:hover,
.login-ui .login-dialog .buttons input.continue-login:hover {
    background: #00838f;
}

.login-ui .login-dialog .buttons input.login:active,
.login-ui .login-dialog .buttons input.continue-login:active {
    transform: translateY(1px);
}

/* SSO section - redesigned as a full-width branded button below the form */
.login-ui .sso-providers {
    position: static !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    padding: 0 !important;
    margin: 1.5em auto 0 !important;
    width: 380px !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #d7ecee;
}

.login-ui .sso-providers ul.sso-provider-list {
    display: block !important;
    margin: 0.75em 0 0 !important;
    padding: 0 !important;
    list-style: none;
    width: 100% !important;
}

.login-ui .sso-providers li.sso-provider {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-ui .sso-providers li.sso-provider::before {
    content: "" !important;
}

.login-ui .sso-providers li.sso-provider a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65em;
    background: #ffffff;
    border: 1.5px solid #00a7b5;
    color: #00707a;
    border-radius: 9px;
    padding: 0.7em 1em;
    font-weight: 600;
    font-size: 1.05em;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.login-ui .sso-providers li.sso-provider a:hover {
    background: #00a7b5;
    color: #ffffff;
}

.login-ui .sso-providers li.sso-provider-openid a::before {
    content: "";
    flex: 0 0 auto;
    display: inline-block;
    width: 1.35em;
    height: 1.35em;
    background-image: url("/app/ext/ntfs-branding/images/ntfs-favicon-2.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-ui.error .login-error {
    border-radius: 10px;
}
