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

}
/* Tiba Parking — Guacamole login themed like SPARK Backoffice */

:root {
  --tiba-blue: #0985eb;
  --tiba-text: #2c3e50;
  --tiba-muted: #6b7c8f;
  --tiba-border: #dee2e6;
  --tiba-card-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --tiba-header-height: 72px;
  --tiba-card-width: 388px;
  --tiba-font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tiba-title-font: Quicksand, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.login,
div.login-ui {
  font-family: var(--tiba-font);
  color: var(--tiba-text);
  background: #ffffff !important;
  background-image: none !important;
}

/* Full-page login shell */
div.login-ui {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Dark branded header (matches SPARK account login) */
.tiba-login-header {
  flex: 0 0 var(--tiba-header-height);
  width: 100%;
  height: var(--tiba-header-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background-color: #152436;
  background-image: url("app/ext/tiba-branding/resources/account-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tiba-login-header .tiba-login-logo {
  height: 28px;
  width: auto;
  display: block;
}

div.login-ui .login-dialog-middle {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 16px 48px;
  box-sizing: border-box;
  vertical-align: middle;
  text-align: center;
}

/* Card */
div.login-ui .login-dialog {
  width: 100%;
  max-width: var(--tiba-card-width);
  margin: 0 auto;
  padding: 28px 24px 24px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--tiba-border);
  border-radius: 4px;
  box-shadow: var(--tiba-card-shadow);
  font-size: 15px;
  box-sizing: border-box;
  display: inline-block;
}

/* Hide stock Guacamole logo / version chrome */
div.login-ui .login-dialog .logo,
div.login-ui .login-dialog .version,
div.login-ui .login-dialog .version-number {
  display: none !important;
}

/* Welcome copy (SPARK-style) */
.tiba-welcome {
  margin: 0 0 22px;
  text-align: left;
}

.tiba-welcome-eyebrow {
  font-family: var(--tiba-title-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tiba-text);
  margin: 0 0 8px;
}

.tiba-welcome-title {
  font-family: var(--tiba-title-font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tiba-text);
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Form fields */
div.login-ui .login-dialog .login-fields {
  margin: 0;
}

div.login-ui .login-dialog .login-fields .labeled-field {
  margin-bottom: 14px;
}

div.login-ui .login-dialog .login-fields .labeled-field .field-header {
  position: static;
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
  color: var(--tiba-text);
  z-index: auto;
}

div.login-ui .login-dialog .login-fields input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  height: 40px;
  border: 1px solid var(--tiba-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--tiba-text);
  font-family: var(--tiba-font);
  font-size: 14px;
  line-height: 1.2;
  max-width: none;
}

div.login-ui .login-dialog .login-fields input:focus {
  outline: none;
  border-color: var(--tiba-blue);
  box-shadow: 0 0 0 3px rgba(9, 133, 235, 0.15);
  background: #ffffff;
}

div.login-ui .login-dialog .login-fields .labeled-field.empty input {
  background: #ffffff;
}

/* Primary Login button */
div.login-ui .login-dialog .buttons {
  text-align: left;
  margin: 8px 0 0;
}

div.login-ui .login-dialog .buttons input[type="submit"].login,
div.login-ui .login-dialog .buttons input[type="submit"] {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--tiba-blue);
  background: var(--tiba-blue);
  color: #ffffff;
  font-family: var(--tiba-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 40px;
  cursor: pointer;
  text-transform: none;
  box-shadow: none;
}

div.login-ui .login-dialog .buttons input[type="submit"].login:hover,
div.login-ui .login-dialog .buttons input[type="submit"]:hover {
  opacity: 0.92;
  background: var(--tiba-blue);
  border-color: var(--tiba-blue);
}

div.login-ui .login-dialog .buttons input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Divider between password login and SAML */
.tiba-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--tiba-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tiba-login-divider::before,
.tiba-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tiba-border);
}

/* Microsoft / SAML button (SPARK secondary style) */
a.tiba-microsoft-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 16px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid var(--tiba-blue);
  background: #ffffff;
  color: var(--tiba-blue) !important;
  font-family: var(--tiba-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  text-transform: capitalize;
  cursor: pointer;
}

a.tiba-microsoft-login:hover {
  background: rgba(9, 133, 235, 0.06);
}

a.tiba-microsoft-login img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Hide default SSO strip (replaced by Microsoft button in the card) */
div.login-ui .sso-providers {
  display: none !important;
}

/* Errors */
div.login-ui.error p.login-error {
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(var(--tiba-header-height) + 12px);
  z-index: 30;
}

@media only screen and (max-width: 600px) {
  .tiba-login-header {
    padding: 0 16px;
  }

  div.login-ui .login-dialog {
    max-width: none;
    border: none;
    box-shadow: none;
    padding: 8px 4px;
  }

  .tiba-welcome-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   Post-login app chrome (home, settings, menus) — same SPARK palette
   ========================================================================== */

body {
  font-family: var(--tiba-font);
  color: var(--tiba-text);
  background: #f5f7fa;
}

#content {
  background: #f5f7fa;
  min-height: 100vh;
}

h1,
h2 {
  font-family: var(--tiba-title-font);
  color: var(--tiba-text);
}

/* Top bar */
.header {
  background-color: #152436;
  background-image: url("app/ext/tiba-branding/resources/account-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.header h2 {
  color: #ffffff;
  font-family: var(--tiba-title-font);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.header:not(.ng-hide) ~ * .header,
.header:not(.ng-hide) ~ .header {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a2d42;
  background-image: none;
}

.header .filter input {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  background: transparent;
}

.header .filter input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header .filter input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

/* Primary actions */
input[type="submit"],
button,
a.button {
  background-color: var(--tiba-blue);
  border: 1px solid var(--tiba-blue);
  color: #ffffff;
  text-shadow: none;
  font-family: var(--tiba-font);
  font-weight: 600;
  border-radius: 4px;
  box-shadow: none;
  min-height: 36px;
}

input[type="submit"]:hover,
button:hover,
a.button:hover {
  background-color: #0876d2;
  border-color: #0876d2;
  opacity: 0.95;
}

input[type="submit"]:active,
button:active,
a.button:active {
  background-color: #0663b3;
  border-color: #0663b3;
  box-shadow: none;
}

input[type="submit"]:disabled,
button:disabled,
button.danger:disabled {
  background-color: var(--tiba-blue);
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.85);
}

button.danger,
a.button.danger {
  background: #d64545;
  border-color: #d64545;
}

button.danger:hover,
a.button.danger:hover {
  background: #c03939;
  border-color: #c03939;
}

button.danger:active,
a.button.danger:active {
  background: #a83232;
  border-color: #a83232;
}

/* Connection / list chrome */
.list-item .name,
.user a,
.user-group a,
.connection a,
.connection-group a,
.user a:hover,
.user-group a:hover,
.connection a:hover,
.connection-group a:hover,
.user a:visited,
.user-group a:visited,
.connection a:visited,
.connection-group a:visited {
  color: var(--tiba-text);
}

.list-item.selected {
  background: rgba(9, 133, 235, 0.12);
}

.list-item:not(.selected) .caption:hover {
  background: rgba(9, 133, 235, 0.08);
}

.disabled .list-item:not(.selected):hover {
  background: inherit;
}

.recent-connections .connection {
  background: #ffffff;
  border: 1px solid var(--tiba-border);
  box-shadow: var(--tiba-card-shadow);
  border-radius: 4px;
}

.recent-connections .connection:hover {
  background: rgba(9, 133, 235, 0.06);
  border-color: rgba(9, 133, 235, 0.35);
}

div.recent-connections,
div.all-connections,
div.settings,
div.clipboardDiv {
  background: #ffffff;
  border: 1px solid var(--tiba-border);
  border-radius: 4px;
  box-shadow: var(--tiba-card-shadow);
  padding: 16px;
  margin: 16px;
}

div.all-connections .list-buttons {
  padding-top: 8px;
}

/* User menu / dropdowns */
.menu-dropdown {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.menu-dropdown:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-dropdown.open,
.menu-dropdown.open:hover {
  background: rgba(9, 133, 235, 0.35);
}

.menu-dropdown .menu-title {
  color: #ffffff;
}

.menu-dropdown .menu-contents {
  background: #ffffff;
  border: 1px solid var(--tiba-border);
  border-top: none;
  box-shadow: var(--tiba-card-shadow);
}

.menu-dropdown .menu-contents li a {
  color: var(--tiba-text);
}

.menu-dropdown .menu-contents li a:hover {
  background-color: rgba(9, 133, 235, 0.08);
  color: var(--tiba-text);
}

.menu-dropdown .menu-contents li a.current,
.menu-dropdown .menu-contents li a.current:hover {
  background-color: transparent;
  color: var(--tiba-muted);
  opacity: 1;
}

.menu-dropdown .menu-contents li a.danger {
  color: #ffffff;
  background-color: #d64545;
}

.menu-dropdown .menu-contents li a.danger:hover {
  background-color: #c03939;
}

.user-menu .menu-dropdown .menu-contents .profile {
  border-bottom: 1px solid var(--tiba-border);
  color: var(--tiba-text);
}

.user-menu .menu-dropdown .menu-contents .profile a {
  color: var(--tiba-blue);
  text-decoration: none;
}

/* Tabs (settings sections, etc.) */
.page-tabs .page-list ul,
.section-tabs ul {
  background: #ffffff;
  border-bottom: 1px solid var(--tiba-border);
}

.page-tabs .page-list li a[href],
.section-tabs li a,
.page-tabs .page-list li a[href]:visited {
  color: var(--tiba-text);
}

.page-tabs .page-list li a[href]:hover,
.section-tabs li a:hover {
  background-color: rgba(9, 133, 235, 0.08);
}

.page-tabs .page-list li a[href].current,
.page-tabs .page-list li a[href].current:hover,
.section-tabs li a.current,
.section-tabs li a.current:hover {
  background: var(--tiba-blue);
  color: #ffffff;
}

/* Generic form controls outside login */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--tiba-border);
  border-radius: 4px;
  color: var(--tiba-text);
  font-family: var(--tiba-font);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--tiba-blue);
  box-shadow: 0 0 0 3px rgba(9, 133, 235, 0.15);
}

/* Notifications / modals */
.notification,
.guac-modal .notification {
  border-radius: 4px;
}

a {
  color: var(--tiba-blue);
}
/*
 * 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;
}
