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

}
cat > css/theme.css <<'EOF'
/*
 * TFICO Access Portal
 * Cyber Crime Challenge 2026
 */


/* =========================================================
   FULL-SCREEN TFICO BACKGROUND
   ========================================================= */

html,
body {
    background-color: #17324D !important;
}

div.login-ui {
    background-color: #17324D !important;

    background-image:
        url("app/ext/tfico-ccc26/resources/images/TFICO-wallpaper.png")
        !important;

    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-ui .login-dialog {
    background: rgba(255, 255, 255, 0.96);

    border-radius: 8px;
    border-top: 4px solid #C59A3D;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.38);

    padding: 24px 30px 22px;

    width: 420px;
    max-width: calc(100vw - 40px);
}


/* =========================================================
   TFICO LOGO
   ========================================================= */

.login-ui .login-dialog .logo {
    display: block;

    width: 300px;
    height: 105px;

    margin: 0 auto 8px auto;

    background-image:
        url("app/ext/tfico-ccc26/resources/images/tfico-logo-primary.png") !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}


/* =========================================================
   PORTAL TITLE
   ========================================================= */

.login-ui .login-dialog .app-name {
    color: #17324D;

    font-size: 21px;
    font-weight: 600;

    text-align: center;
}


/* Hide Apache Guacamole version */

.login-ui .login-dialog .version-number {
    display: none;
}


/* =========================================================
   LOGIN FIELDS
   ========================================================= */

.login-ui input[type="text"],
.login-ui input[type="password"] {
    border-radius: 4px;
    border: 1px solid #c5ced6;
    padding: 10px;
}


.login-ui input.login {
    background: #17324D;

    color: white;

    border: none;
    border-radius: 4px;

    font-weight: 600;
}


.login-ui input.login:hover {
    background: #234867;
}


/* =========================================================
   CCC26 WELCOME MESSAGE
   ========================================================= */

.tfico-welcome {
    margin-top: 20px;
    padding-top: 17px;

    border-top: 1px solid #d9e0e5;

    text-align: center;

    color: #465868;

    line-height: 1.45;
}


.tfico-welcome p {
    margin: 7px 0;
}


.tfico-event-title {
    color: #17324D;

    font-size: 17px;
    font-weight: 700;

    letter-spacing: 0.2px;

    margin-bottom: 10px;
}


/* =========================================================
   SMALL SCREENS
   ========================================================= */

@media (max-width: 600px) {

    .login-ui .login-dialog {
        width: auto;
        margin: 20px;
        padding: 20px;
    }

    .login-ui .login-dialog .logo {
        width: 240px;
        height: 85px;
    }
}
EOF
