/*
 * AVECU Branding for Apache Guacamole
 *
 * Brand Colors (from avecu.de):
 *   Primary/Accent: #ca6f6f (muted rose)
 *   Dark Background: #191919 (near-black)
 *   Light Background: #ffffff
 *   Dark Text: #0e2005
 *
 * Typography:
 *   Headings: DM Serif Display
 *   Body: Nunito Sans
 */

/* Import Google Fonts to match AVECU website */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Nunito+Sans:wght@400;600;700&display=swap');

/* ============================================
   LOGIN PAGE BACKGROUND
   ============================================ */
.login-ui {
    background: linear-gradient(135deg, #191919 0%, #2a2a2a 50%, #191919 100%);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Subtle pattern overlay */
.login-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(202, 111, 111, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(202, 111, 111, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   LOGO
   ============================================ */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/avecu-branding/images/logo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 280px !important;
    height: 100px !important;
}

/* ============================================
   LOGIN DIALOG BOX
   ============================================ */
.login-ui .login-dialog {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(202, 111, 111, 0.1);
    padding: 40px;
    max-width: 400px;
}

/* Login title */
.login-ui .login-dialog h1,
.login-ui .login-dialog .header {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #191919;
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 25px;
    text-align: center;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.login-ui .login-fields {
    margin-bottom: 20px;
}

.login-ui .login-fields input[type="text"],
.login-ui .login-fields input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Nunito Sans', sans-serif;
    background: #ffffff;
    color: #191919;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-ui .login-fields input[type="text"]:focus,
.login-ui .login-fields input[type="password"]:focus {
    border-color: #ca6f6f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(202, 111, 111, 0.15);
}

.login-ui .login-fields input::placeholder {
    color: #999;
}

/* Field labels */
.login-ui .login-fields label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #191919;
    font-size: 14px;
}

/* Empty field state - make input visible */
.login-ui .login-fields .labeled-field.empty input {
    background: #ffffff !important;
}

/* ============================================
   LOGIN BUTTON
   ============================================ */
.login-ui input[type="submit"],
.login-ui button.login {
    width: 100%;
    padding: 14px 24px;
    background: #ca6f6f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.login-ui input[type="submit"]:hover,
.login-ui button.login:hover {
    background: #b85c5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 111, 111, 0.3);
}

.login-ui input[type="submit"]:active,
.login-ui button.login:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(202, 111, 111, 0.2);
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.login-ui .login-dialog .error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   LINKS AND SECONDARY TEXT
   ============================================ */
.login-ui a {
    color: #ca6f6f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-ui a:hover {
    color: #b85c5c;
    text-decoration: underline;
}

/* Footer text */
.login-ui .login-dialog .footer,
.login-ui .copyright {
    color: #666;
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .login-ui .login-dialog {
        margin: 20px;
        padding: 30px 25px;
    }

    .login-ui .logo {
        width: 220px;
        height: 80px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.login-ui .login-dialog.loading input[type="submit"],
.login-ui .login-dialog.loading button.login {
    background: #d4a0a0;
    cursor: wait;
}

/* ============================================
   DARK MODE SUPPORT (for browsers that prefer dark)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but ensure consistency */
    .login-ui {
        background: linear-gradient(135deg, #191919 0%, #2a2a2a 50%, #191919 100%);
    }
}
/*
 * 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;

}
