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

}
.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.
 */

@font-face {
    font-family: 'Raleway';
    font-weight: normal;
    font-style: normal;
    src: url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Regular.woff') format('woff'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Regular.otf') format('opentype'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Regular.ttf') format('ttf');
}

@font-face {
    font-family: 'Raleway';
    font-weight: bold;
    font-style: normal;
    src: url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Bold.woff') format('woff'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Bold.otf') format('opentype'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Bold.ttf') format('ttf');
}

@font-face {
    font-family: 'Raleway';
    font-weight: normal;
    font-style: italic;
    src: url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Italic.woff') format('woff'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Italic.otf') format('opentype'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-Italic.ttf') format('ttf');
}

@font-face {
    font-family: 'Raleway';
    font-weight: bold;
    font-style: italic;
    src: url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-BoldItalic.woff') format('woff'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-BoldItalic.otf') format('opentype'),
         url('app/ext/speedy-branding/resources/fonts/raleway/Raleway-BoldItalic.ttf') format('ttf');
}
/*
 * 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.
 */

/**
 * Changes the font of the login dialog to prefer Raleway, with some fallbacks.
 */
.login-ui .login-dialog .login-fields input {
    font-family: Raleway, FreeSans, Helvetica, Arial, sans-serif;
}

/**
 * Set up the logo used at the top of the login dialog box, including sizing it
 * appropriately and pulling in the custom image.
 */
.login-ui .login-dialog .logo {
    width: 5em;
    height: 3em;
    background-size:         5em 3em;
    -moz-background-size:    5em 3em;
    -webkit-background-size: 5em 3em;
    -khtml-background-size:  5em 3em;
    background-image: url('app/ext/speedy-branding/resources/images/Logo-400x86.png');
}

/*
 * For our custom warning code, specify the font order, as well as the italic
 * style, and size it down a little.
 */
.login-ui .login-dialog .warning {
    font-family: Raleway, FreeSans, Arial;
    font-style: italic;
    font-size: 0.75em;
    text-align: center;
}

/*
 * Sets up the custom coloring around the header elements.
 */
.header {
    border-bottom: 1px solid rgba(0,0,0,1.0);
    box-shadow: rgba(0,0,0,0.75);
    background: rgba(0,0,0,1.0);
    color: rgba(255,255,255,1.0);
}

/*
 * Changes the default color and fonts of the submit buttons, along with font
 * size and weight.
 */
input[type="submit"], button, a.button {
    background-color: rgba(0,145,255,1.0);
    border: 1px solid rgba(0,255,145,1.1);
    font-size: 1em;
    font-weight: bold;
    font-family: Raleway, FreeSans, Helvetica, Arial, sans-serif;
}

/*
 * Changes the coloring on the submit-styled buttons when you hover over them.
 */
input[type="submit"]:hover, button:hover, a.button:hover {
    background-color: rgb(53, 119, 241);
    border: 2px solid rgba(0,145,255,1.0);
}

/*
 * Changes the coloring on the submit-styled buttons when you click on them.
 */
input[type="submit"]:active, button:active, a.button:active {
    background-color: rgba(0,145,255,1.0);
    border: 1px solid rgba(255,95,0,1.0);
}

/*
 * Provide a custom color scheme for danger-styled buttons.
 */
button.danger, a.button.danger {
    background: rgba(255,95,0,1.0);
    border: 1px solid rgba(255,0,0,1.0);
}

/*
 * Provide a cusotm color scheme for hovering over danger-styled buttons.
 */
button.danger:hover, a.button.danger:hover {
    background: rgba(255,0,0,0.75);
    border: 1px solid rgba(255,95,0,1.0);
}

/*
 * Provide a custom color scheme for danger-styled buttons when clicked.
 */
button.danger:active, a.button.danger:active {
    background: rgba(255,0,170,1.0);
    border: 1px solid rgba(255,95,0,1.0);
}

/*
 * Change the default font order of preference across the entire interface.
 */
body {
    font-family: Raleway, FreeSans, Helvetica, Arial, sans-serif;
}
