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

}
/* Кастомный дизайн логина Guacamole - СИСТЕМА СПОЛОХ */

body.login {
    background: linear-gradient(135deg, #1a0a02 0%, #2d1810 50%, #3d2218 100%);
    background-attachment: fixed;
}

.login-ui .login-dialog {
    background: rgba(26, 10, 2, 0.98);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    padding: 3.5rem;
    max-width: 550px;
    min-height: 500px;
}

.login-ui .logo {
    background: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 2rem;
    text-align: center;
}

.login-ui .logo::before {
    content: 'СИСТЕМА СПОЛОХ';
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.login-ui .version .app-name {
    font-size: 0 !important;
    color: #fb923c;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-ui .version .app-name::before {
    content: 'Удаленное управление рабочим столом';
    font-size: 1.25rem !important;
}

.login-ui .version .version-number {
    color: #78716c;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-ui p {
    color: #d6d3d1;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.login-ui input[type="text"],
.login-ui input[type="password"] {
    background: rgba(45, 24, 16, 0.6);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 10px;
    color: #fafaf9 !important;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    width: 100%;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #fafaf9 !important;
}

.login-ui input[type="text"]:focus,
.login-ui input[type="password"]:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
    background: rgba(45, 24, 16, 0.95) !important;
    color: #fafaf9 !important;
    -webkit-text-fill-color: #fafaf9 !important;
}

.login-ui input::placeholder {
    color: #78716c;
}

.login-ui input:-webkit-autofill,
.login-ui input:-webkit-autofill:hover,
.login-ui input:-webkit-autofill:focus,
.login-ui input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(45, 24, 16, 0.95) inset !important;
    -webkit-text-fill-color: #fafaf9 !important;
    caret-color: #fafaf9 !important;
}

.login-ui label {
    color: #d6d3d1;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.login-ui input[type="submit"] {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.login-ui input[type="submit"]:hover {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.5);
}

.login-ui input[type="submit"]:active {
    transform: translateY(0);
}

.login-ui input[type="submit"]:disabled {
    background: linear-gradient(135deg, #57534e 0%, #44403c 100%);
    cursor: not-allowed;
    transform: none;
}

.login-ui .login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1rem;
}

.login-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #ea580c 25%, #fb923c 50%, #ea580c 75%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.login-ui::after {
    content: '© 2025 СИСТЕМА СПОЛОХ - Противопожарная безопасность';
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #57534e;
    font-size: 0.875rem;
}

.login-ui .logo[style*="background-image"] {
    background-image: none !important;
}

@media (max-width: 640px) {
    .login-ui .login-dialog {
        padding: 2.5rem 2rem;
        margin: 1rem;
        max-width: 90%;
    }
    .login-ui .logo::before {
        font-size: 2.25rem;
    }
    .login-ui .version .app-name::before {
        font-size: 1.125rem !important;
    }
    .login-ui input[type="text"],
    .login-ui input[type="password"] {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
}
