/*
 * 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;
}
/* ThoughtSpot Labs look for Guacamole, matching thoughtspot.com: deep navy (#0A082D) with a soft cyan glow, white
   card, indigo (#1B1B61) Geist Mono headings, cyan (#00D2FF) button with a dark upper-case mono label.
   Fonts: Geist and Geist Mono, loaded by hol.js with a <link> (an @import here never loads: Guacamole appends this
   file to its own stylesheet and @import only works at the very top). System fonts are the fallback. */

.login-ui .login-dialog input,
.login-ui .login-dialog button { font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.login-ui {
  background: radial-gradient(900px 600px at 85% -10%, rgba(0,210,255,0.20) 0%, rgba(0,210,255,0) 60%),
              #0a082d !important;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* White ThoughtSpot wordmark above the card */
.login-ui::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 52px;
  background: url("app/ext/hol-branding/images/wordmark-white.svg") center / contain no-repeat;
}

/* Short windows: the card is tall enough to reach the wordmark, so drop it (the card has the app icon) */
@media (max-height: 860px) {
  .login-ui::before { display: none; }
}

.login-ui .login-dialog {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(3, 2, 20, 0.45);
  padding: 2.25em 2.25em 2em;
  max-width: 400px;
  width: calc(100% - 32px);
}

.login-ui .login-dialog .logo {
  background-image: url("app/ext/hol-branding/images/appicon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 0 auto 0.75em;
}

.login-ui .login-dialog .version .app-name {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #1b1b61;
}
.login-ui .login-dialog .version .version-number { display: none; }

.login-ui .login-dialog .login-fields input[type="text"],
.login-ui .login-dialog .login-fields input[type="password"] {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.7em 0.85em;
  font-size: 1em;
  background: #ffffff;
}
.login-ui .login-dialog .login-fields input:focus {
  outline: none;
  border-color: #00b9e2;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.28);
}

.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog .buttons input[type="submit"] {
  background: #00d2ff;
  border: none;
  border-radius: 8px;
  color: #0a082d;
  font-weight: 500;
  font-size: 0.9em;
  padding: 1em;
  text-transform: uppercase;
  box-shadow: none;
  text-shadow: none;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}
.login-ui .login-dialog input[type="submit"]:hover { background: #00b9e2; }

/* Layout: card and "Other ways to sign in" stacked in a centred column (CSS only: never move Guacamole's
   AngularJS-owned nodes from JS). Scoped to :not(.ng-hide) so Guacamole can still hide the screen after sign-in. */
.login-ui:not(.ng-hide) {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 24px 0;
  box-sizing: border-box;
}
/* Centred with auto margins, not justify-content: on a short window (1366x768, zoomed, or with an error message)
   "center" pushes the top of the card above the scroll area, where the logo and username box can't be reached. */
.login-ui .login-dialog-middle { display: block; width: 100%; margin-top: auto; }
.login-ui:not(.ng-hide) > :last-child { margin-bottom: auto; }

/* Other sign-in options (SSO extensions: email code for attendees, Okta for instructors): a white panel
   directly under the card, same width, outlined buttons. */
.login-ui .sso-providers {
  position: static;
  transform: none;
  width: calc(100% - 32px);
  max-width: 400px;
  box-sizing: border-box;
  margin: 12px auto 0;
  padding: 1.1em 2.25em 1.4em;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(3, 2, 20, 0.45);
  text-align: center;
  color: #55607a;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 0.82em;
}
.login-ui .sso-providers ul,
.login-ui .sso-providers li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.login-ui .sso-providers ul { margin-top: 0.5em; }
.login-ui .sso-providers li::before { content: none; display: none; }
.login-ui .sso-providers a {
  display: block;
  margin-top: 0.55em;
  padding: 0.75em 1em;
  border: 1px solid #0a082d;
  border-radius: 8px;
  background: #ffffff;
  color: #0a082d;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.02em;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.login-ui .sso-providers a:hover,
.login-ui .sso-providers a:focus-visible {
  background: #0a082d;
  color: #ffffff;
  outline: none;
}

/* Privacy note under the form (added by hol.js) */
.login-ui .login-dialog .hol-privacy {
  margin: 1.25em 0 0;
  font-size: 0.78em;
  line-height: 1.45;
  color: #55607a;
  text-align: center;
}

/* Placeholders (added by hol.js) */
.login-ui .login-dialog input::placeholder { color: #7c879c; }

/* Main app header after sign-in */
.header, .menu .header { font-family: "Geist", system-ui, sans-serif; }
