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

}
.quickconnect-container{margin:.25em 0;width:100%;margin-left:.50em}.quickconnect-container .quickconnect-field{background-image:url('images/protocol-icons/guac-text.png');background-repeat:no-repeat;background-size:1.50em;background-position:.25em center;background-color:transparent;padding:.25em;padding-left:2.50em;width:100%;max-width:none;border:0;box-sizing:border-box}.quickconnect-button{clear:both;float:right;margin-right:.75em;font-size:.75em;padding:.25em}.quickconnect-list-item{vertical-align:middle;align-content:center;display:flex}/* =========================================================================
   RemoteHub branding — login page overrides (Guacamole 1.6.0 DOM)
   ========================================================================= */

/* --- Replace default Guacamole logo with OKTO logo ---------------------- */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/remotehub-branding/images/logo.png') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 260px;
    height: 110px;
    margin: 0 auto 10px;
}

/* --- Hide the default subtle "Connectez-vous avec: OpenID" block ------- */
.login-ui .sso-providers {
    display: none !important;
}

/* --- "Se connecter avec Microsoft 365" button -------------------------- */
.remotehub-ms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 14px;
    background: #2F2F2F;
    color: #FFFFFF !important;
    border: 1px solid #8C8C8C;
    border-radius: 4px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.remotehub-ms-button:hover,
.remotehub-ms-button:focus {
    background: #4A4A4A;
    text-decoration: none;
    outline: none;
    color: #FFFFFF !important;
}

.remotehub-ms-button .ms-logo {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* --- Divider between MS button and local login ------------------------- */
.remotehub-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9A9A9A;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 6px 0 14px;
}

.remotehub-divider::before,
.remotehub-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.remotehub-divider::before { margin-right: 12px; }
.remotehub-divider::after  { margin-left: 12px; }

/* =========================================================================
   Lien OKTO Remote sur la page d'accueil (preversion)
   ========================================================================= */
.home-view .connection-list-ui .remotehub-remote-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 1em 0;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    color: inherit;
    font-size: 0.9em;
    text-decoration: none;
}

.home-view .connection-list-ui .remotehub-remote-link:hover,
.home-view .connection-list-ui .remotehub-remote-link:focus {
    border-color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    outline: none;
}

.home-view .connection-list-ui .remotehub-remote-link .badge {
    padding: 1px 6px;
    border-radius: 9px;
    background: #4A4A4A;
    color: #FFFFFF;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================================
   Panneau presse-papiers (vue client)
   ========================================================================= */
.rh-clip {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
}

.rh-clip[hidden],
.rh-clip-panel[hidden] {
    display: none !important;
}

.rh-clip button {
    font: inherit;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #333333;
    color: #FFFFFF;
    padding: 6px 12px;
}

.rh-clip button:hover,
.rh-clip button:focus {
    background: #4A4A4A;
    outline: none;
}

/* --- barre ancree : ne bouge pas quand le panneau s'ouvre ou se ferme ---- */
.rh-clip-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.15s ease-in-out;
}

.rh-clip:hover .rh-clip-bar,
.rh-clip-bar:focus-within {
    opacity: 1;
}

.rh-clip-name {
    padding: 6px 10px;
    border-radius: 4px 0 0 4px;
    background: #2A2A2A;
    color: #B9B9B9;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right: none;
    white-space: nowrap;
}

.rh-clip-bar .rh-clip-fix  { border-radius: 0; margin-left: -8px; }
.rh-clip-bar .rh-clip-open { border-radius: 0 4px 4px 0; margin-left: -1px; }

/* Message court pose par « Réparer » quand le panneau est ferme. */
.rh-clip-flash {
    max-width: 46ch;
    padding: 0 4px;
    text-align: right;
    font-size: 12px;
    line-height: 1.3;
    color: #B9B9B9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.rh-clip-flash:empty { display: none; }
.rh-clip-flash.ok     { color: #7FD68A; }
.rh-clip-flash.echec  { color: #F08C7A; }
.rh-clip-flash.neutre { color: #B9B9B9; }

/* --- panneau ------------------------------------------------------------- */
.rh-clip-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    border-radius: 6px;
    background: #2A2A2A;
    color: #EDEDED;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.rh-clip-status {
    margin: 0;
    min-height: 2.6em;
    font-size: 12px;
    line-height: 1.35;
    color: #B9B9B9;
}

.rh-clip-status.ok     { color: #7FD68A; }
.rh-clip-status.echec  { color: #F08C7A; }
.rh-clip-status.neutre { color: #B9B9B9; }

.rh-clip-actions {
    display: flex;
    gap: 8px;
}

.rh-clip-actions .rh-clip-action {
    flex: 1;
    border-radius: 4px;
    text-align: center;
}

.rh-clip-input {
    font: inherit;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #1E1E1E;
    color: #EDEDED;
}

.rh-clip-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
}
