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

}
/**
 * OpenSistemas Custom Theme for Apache Guacamole
 * Based on working example from Zer0CoolX/guacamole-customize-loginscreen-extension
 */

/* ============================================
   LOGO REPLACEMENT
   ============================================ */
/* Replace Apache Guacamole logo with OpenSistemas logo */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/opensistemas-branding/images/logo.png') !important;
    width: 12em !important;
    height: 4em !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Hide "APACHE GUACAMOLE" title text */
.login-ui .login-dialog h1,
.login-ui .login-dialog .title {
    display: none !important;
}

/* ============================================
   LOGIN PAGE BACKGROUND
   ============================================ */
/* Set white background for login page */
div.login-ui {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* ============================================
   LOGIN DIALOG BOX
   ============================================ */
.login-ui .login-dialog {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   PRIMARY BUTTON STYLING
   ============================================ */
/* Style the main login button with corporate color */
.login-ui button[type="submit"],
.login-ui .button,
.login-ui input[type="submit"] {
    background-color: #012450 !important;
    border-color: #012450 !important;
    color: #ffffff !important;
}

.login-ui button[type="submit"]:hover,
.login-ui .button:hover,
.login-ui input[type="submit"]:hover {
    background-color: #023570 !important;
    border-color: #023570 !important;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.login-ui input[type="text"],
.login-ui input[type="password"] {
    border: 1px solid #cccccc !important;
}

.login-ui input[type="text"]:focus,
.login-ui input[type="password"]:focus {
    border-color: #012450 !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(1, 36, 80, 0.3) !important;
}

/* ============================================
   OAUTH/OPENID BUTTON STYLING
   ============================================ */
/* Style the OpenID link/button as secondary button */
.login-ui .login-fields a,
.login-ui .login-fields .section a {
    background-color: #ffffff !important;
    color: #012450 !important;
    border: 2px solid #012450 !important;
    padding: 12px 24px !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
}

.login-ui .login-fields a:hover,
.login-ui .login-fields .section a:hover {
    background-color: #012450 !important;
    color: #ffffff !important;
    border-color: #012450 !important;
}

/* Ensure text color is white on hover for OAuth buttons */
.login-ui .login-fields a:hover *,
.login-ui .login-fields .section a:hover * {
    color: #ffffff !important;
}

/* ============================================
   LINKS AND TEXT HIGHLIGHTS
   ============================================ */
/* Apply corporate color to other links */
.login-ui a:not(.login-fields a),
.login-ui a:link:not(.login-fields a),
.login-ui a:visited:not(.login-fields a) {
    color: #012450 !important;
}

.login-ui a:hover:not(.login-fields a),
.login-ui a:active:not(.login-fields a) {
    color: #023570 !important;
}/*
 * 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;
}
