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

}
/* Match TEI-v1 auth-page/auth-card and core tokens; sign-in styles only. */
.login-ui, .login-ui.initial {
  --tei-navy: #082642; --tei-blue: #2879cf; --tei-ink: #071f38;
  --tei-muted: #718093; --tei-line: #d9dfdf;
  background: radial-gradient(circle at 50% 0%, #eaf3fb 0, #f4f5f2 42%);
  color: var(--tei-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}
.login-ui .login-dialog-middle { padding: 24px; box-sizing: border-box; }
.login-ui .login-dialog {
  width: 410px; max-width: calc(100vw - 48px); box-sizing: border-box;
  padding: 31px; border: 1px solid var(--tei-line); border-radius: 17px;
  background: white; box-shadow: 0 22px 65px rgba(13, 38, 64, .1);
  color: var(--tei-ink); text-align: left; font-family: inherit;
}
.login-ui .login-dialog .logo { display: none; }
.login-ui .tei-wordmark { margin-bottom: 29px; display: flex; align-items: center; gap: 12px; }
.login-ui .tei-wordmark img { display: block; width: 70px; height: auto; }
.login-ui .tei-wordmark strong { font-size: 14px; letter-spacing: -.01em; font-weight: 700; }
.login-ui .tei-workspace-icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf3fb; display: grid; place-items: center; }
.login-ui .tei-workspace-icon img { width: 24px; height: 24px; }
.login-ui .login-dialog .tei-heading h1 { margin: 15px 0 7px; font-size: 25px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; color: var(--tei-ink); text-align: left; }
.login-ui .tei-heading p { margin: 0; color: var(--tei-muted); font-size: 13px; line-height: 1.5; }
.login-ui .tei-capabilities { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0 23px; }
.login-ui .tei-capabilities span { padding: 5px 8px; background: #eaf3fb; border-radius: 6px; font-size: 10px; font-weight: 700; color: #2f608d; }
.login-ui .login-fields { margin: 0; }
.login-ui .labeled-field { margin: 0 0 14px; }
.login-ui .field-header { margin-bottom: 7px; color: #5e6e7d; font-size: 12px; font-weight: 750; }
.login-ui .login-fields input {
  box-sizing: border-box; width: 100%; max-width: none; padding: 0 11px; min-height: 44px;
  font-family: inherit; font-size: 14px; border: 1px solid var(--tei-line); border-radius: 8px;
  background: white; color: var(--tei-ink);
}
.login-ui .login-fields input:focus { outline: 3px solid rgba(40, 121, 207, .24); outline-offset: 2px; border-color: var(--tei-blue); }
.login-ui .buttons { margin: 20px 0 0; }
.login-ui .buttons input[type="submit"] {
  width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px;
  background: var(--tei-navy); color: white; font-family: inherit; font-size: 13px; font-weight: 800;
  text-shadow: none; box-shadow: none; cursor: pointer; transition: background .15s ease, box-shadow .15s ease;
}
.login-ui .buttons input[type="submit"]:hover { background: #0d3557; box-shadow: 0 5px 13px rgba(21, 48, 74, .12); }
.login-ui .buttons input[type="submit"]:focus-visible { outline: 3px solid rgba(40, 121, 207, .35); outline-offset: 3px; }
.login-ui .buttons input[type="submit"]:disabled { background: #b9c8d7; cursor: not-allowed; }
.login-ui .tei-login-note { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: var(--tei-muted); text-align: center; }
.login-ui .tei-login-footer { margin-top: 23px; padding-top: 18px; border-top: 1px solid #edf0ee; color: var(--tei-muted); font-size: 11px; text-align: center; }
.login-ui .login-error { z-index: 2; }
@media (max-width: 440px) {
  .login-ui .login-dialog-middle { padding: 16px; }
  .login-ui .login-dialog { max-width: calc(100vw - 32px); padding: 26px 23px; }
}
/* Override the gateway's floating labels to match TEI's persistent form labels. */
.login-ui .login-dialog .tei-heading h1 { padding: 0; }
.login-ui .login-dialog .login-fields .labeled-field .field-header {
  position: static; display: block; width: auto; margin: 0 0 7px;
  opacity: 1; visibility: visible; color: #5e6e7d; font-size: 12px; font-weight: 750;
}
.login-ui .login-dialog .login-fields .labeled-field .field-header label { display: block; }
.login-ui .login-dialog .login-fields input {
  margin: 0; padding: 0 11px; border-radius: 8px; font-family: inherit; font-size: 14px;
}
