.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}/*
 * 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.
 */

/* === Inter 字體宣告 === */
@font-face {
    font-family: 'Inter';
    font-weight: 400;
    font-style: normal;
    src: url('app/ext/guacamole-custom-branding/resources/fonts/inter/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 600;
    font-style: normal;
    src: url('app/ext/guacamole-custom-branding/resources/fonts/inter/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;
    src: url('app/ext/guacamole-custom-branding/resources/fonts/inter/Inter-Bold.woff2') format('woff2');
}

/* === 全站字體設定 === */
body {
    font-family: 'Inter', 'Noto Sans', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}
/* ==== 全域字體與背景設定 ==== */
body {
    font-family: 'Inter', 'Noto Sans TC', 'Helvetica Neue', sans-serif;
    background-color: #f4f6fa;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    animation: fadeInBody 1s ease-in-out both;
}

/* ==== 登入框容器 ==== */
.login-ui .login-dialog {
    max-width: 440px;
    margin: 8vh auto;
    padding: 3em 2.5em;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 51, 160, 0.08);
    text-align: center;
    animation: floatUp 0.8s ease-out both;
}

/* ==== LOGO 樣式 ==== */
.logo {
    width: 100% !important;
    height: 200px !important;
    /* force margin padding to zero */
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    background-image: url('app/ext/guacamole-branding-example/resources/images/saturn/saturn.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}


/* ==== 標題 ==== */
.login-ui .login-dialog h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0033A0;
    margin-bottom: 0.8em;
}

.app-name {
    /* force font size */
    font-size: 2rem !important;
    font-weight: 600;
    color: #0033A0;
    margin-bottom: 0.5em;
    animation: fadeSlideIn 0.5s ease-out both;
}


/* ==== 描述說明 ==== */
.description {
    font-size: 0.8em;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.6em;
    animation: fadeSlideIn 0.7s ease-out both;
}


.sub-description {
    font-size: 0.5em;
    color: #666;
    margin-top: 0.5em;
    line-height: 1.4;
    animation: fadeGrow 0.6s ease-out both;
}
/* description link */
.sub-description a {
    color: #0033A0;
    text-decoration: none;
}

/* ==== 輸入欄位 ==== */
.login-fields input {

    border: 1px solid #cbd6e2;
    border-radius: 10px;
    background-color: #f8fbff;
    box-sizing: border-box;
    transition: 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: left !important;
}
.login-fields input:focus {
    border-color: #0033A0;
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.2);
    outline: none;
}

/* ==== 登入按鈕 ==== */
input[type="submit"], button, a.button {
    background: linear-gradient(to right, #0033A0, #4a90e2);
    border: none;
    border-radius: 10px;
    padding: 0.9em;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    margin-top: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 51, 160, 0.25);
}
input[type="submit"]:hover,
button:hover,
a.button:hover {
    background: linear-gradient(to right, #4a90e2, #0033A0);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 51, 160, 0.35);
}
input[type="submit"]:active,
button:active,
a.button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 51, 160, 0.2);
}

/* ==== Danger 按鈕樣式 ==== */
button.danger,
a.button.danger {
    background: #ff5f00;
    border: none;
    color: #fff;
}
button.danger:hover,
a.button.danger:hover {
    background: #d70000;
}
button.danger:active,
a.button.danger:active {
    background: #c3004b;
}

/* ==== Header 樣式（可選）==== */
.header {
    background: #0033A0;
    color: #ffffff;
    padding: 0.8em 1.2em;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==== 動畫效果 ==== */
@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeGrow {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/*
 * Change the default font order of preference across the entire interface.
 */
body {
    font-family: Raleway, FreeSans, Helvetica, Arial, sans-serif;
}/*
 * 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;

}
