﻿html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: normal;
    color: #586475;
}

/* ==================================================================================================== */
/* Texte */
a, a:hover {
    color: #009fe3;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: normal;
}

dl, ol, ul {
    margin-bottom: 0;
}

.link-forgot-password {
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.link-display-admin-provider {
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.link-display-external-provider {
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: none;
    cursor: pointer;
    color: #009fe3;
}

.link-display-external-provider span{
    color: #009fe3;
}

.link-display-external-provider:hover span{
    color: #009fe3;
    text-decoration: underline;
}

kbd {
    word-break: break-word;
}

/* ==================================================================================================== */
/* content */
.container {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    -ms-flex-align: center;
    min-height: 100%;
}

_:-ms-fullscreen, :root .container {
    min-height: 100%;
    height: 100%;
    -ms-flex: 1 auto;
    flex: 1 auto;
    padding-top: 70px;
}

.page {
    margin: 70px 0 0 0; /* footer */
    width: 98%;
    max-width: 610px;
    max-height: 100%;
}

_:-ms-fullscreen, :root .page {
    margin: 0;
}

.page .page-inner {
    pointer-events: auto;
    position: relative;
}

.page .panel {
    background-color: #fff;
    padding: 50px 40px 40px 40px;
    box-shadow: 0 2px 6px 6px rgba(0, 0, 0, .16);
    margin-bottom: 30px;
}

.internal-provider .pancel{
    padding: 50px 40px 25px 40px;
}

.page .panel-body {
    position: relative;
}

.page-diagnostic {
    margin-top: 60px;
}

.qr-code {
    margin-right: 10px;
}

/* ==================================================================================================== */
/* Formulare */
.form-control {
    color: #586475;
    border-radius: 4px;
    border-color: #ccc;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding: 0.7rem 0.75rem 0.375rem 0.75rem;
    font-size: 0.9rem;
}

.form-control-container label {
    font-size: 0.7rem;
    font-weight: normal;
    position: absolute;
    padding: 0 5px;
    background-color: #fff;
    transform: translate(8px, -50%);
    transform-origin: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #ccc;
}

.form-control:hover,
.form-control:focus {
    border-color: #009fe3;
    -webkit-box-shadow: none;
    box-shadow: none;
}

@keyframes autofill {
    100% {
        background: transparent;
        color: inherit;
    }
}

@-webkit-keyframes autofill {
    100% {
        background: transparent;
        color: inherit;
    }
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-animation: autofill 0s forwards;
    animation: autofill 0s forwards;
}

.form-group {
    margin-bottom: 1.5rem;
}

.dropdown-menu {
    padding: 8px 10px 10px;
}

/* ==================================================================================================== */
/* Button */
.form-button {
    display: flex;
    flex-wrap: wrap;
}

    .form-button .btn {
        margin-right: 55px;
        margin-bottom: 15px;
    }

        .form-button .btn:last-child {
            margin-right: 0;
        }

.btn,
.btn.btn-default,
.btn.btn-primary {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    color: #009fe3;
}

    .btn:hover,
    .btn:focus,
    .btn.btn-default:hover,
    .btn.btn-default:focus,
    .btn.btn-primary:hover,
    .btn.btn-primary:focus,
    .btn span:hover,
    .btn span:focus,
    .btn.btn-default:hover span,
    .btn.btn-default:focus span,
    .btn.btn-primary:hover span,
    .btn.btn-primary:focus span {
        color: #009fe3 !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle,
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle {
    background-color: transparent;
    color: #009fe3;
    border: none;
    outline: none;
    box-shadow: none;
}

.btn span {
    margin-left: 10px;
    color: #586475;
}

.btn::before {
    width: 30px;
    height: 30px;
}

.btn-back::before {
    content: url(../../img/ui/button-arrow.svg);
}

.btn-login::before {
    content: url(../../img/ui/button-login.svg);
}

.btn-abort::before {
    content: url(../../img/ui/button-close.svg);
}

.btn-forgot-password::before {
    content: url(../../img/ui/button-forgot-password.svg);
}

.btn-confirm::before {
    content: url(../../img/ui/button-check.svg);
}

.btn-edit::before {
    content: url(../../img/ui/button-check.svg);
}

.btn-reset::before {
    content: url(../../img/ui/button-check.svg);
}

.btn-change-password::before {
    content: url(../../img/ui/button-check.svg);
}

.btn-logout::before {
    content: url(../../img/ui/button-logout.svg);
}

/* hide native msedge password eye */
::-ms-reveal {
    display: none;
}

#btn-password-toggle {
    content: url(../../img/ui/icon-eye-off.svg);
    width: 20px;
    height: 20px;
    float: right;
    position: relative;
    margin-top: -27px;
    margin-left: -27px;
    margin-right: 10px;
}

/* Hover */

.btn-back:hover::before {
    content: url(../../img/ui/button-arrow_hover.svg);
}

.btn-login:hover::before {
    content: url(../../img/ui/button-login_hover.svg);
}

.btn-abort:hover::before {
    content: url(../../img/ui/button-close_hover.svg);
}

.btn-forgot-password:hover::before {
    content: url(../../img/ui/button-forgot-password_hover.svg);
}

.btn-confirm:hover::before {
    content: url(../../img/ui/button-check_hover.svg);
}

.btn-edit:hover::before {
    content: url(../../img/ui/button-check_hover.svg);
}

.btn-reset:hover::before {
    content: url(../../img/ui/button-check_hover.svg);
}

.btn-change-password:hover::before {
    content: url(../../img/ui/button-check_hover.svg);
}

.btn-logout:hover::before {
    content: url(../../img/ui/button-logout_hover.svg);
}

/* ==================================================================================================== */
/* Error */
.alert {
    border-radius: 0;
    border: 2px solid #ccc;
    padding: 30px;
    margin-bottom: 2rem;
}

.alert-danger {
    color: #9b2e22;
    background-color: transparent;
    border-color: #9b2e22;
}

.alert-error {
    display: flex;
    margin-bottom: 15px;
}

    .alert-error:last-child {
        margin-bottom: 0;
    }

    .alert-error::before {
        background-color: #9b2e22;
        flex-grow: 0;
        flex-Shrink: 0;
        flex-basis: 20px;
        height: 20px;
        max-width: 20px;
        border-radius: 10px;
        padding: 0 3px 3px 3px;
        content: url(../../img/ui/close_black_24dp.svg);
    }

    .alert-error span {
        margin-left: 15px;
        color: #9b2e22;
    }

/* ==================================================================================================== */
/* provider list */
.item-list > a.provider {
    display: flex;
    min-height: 60px;
    padding: 15px 15px;
    margin-bottom: 15px;
    text-align: center;
    color: #586475;
    background-color: #e3e3e3;
    cursor: pointer;
}

    .item-list > a.provider:hover,
    .item-list > a.provider:focus {
        background-color: #c9e8fb;
        color: #009fe3;
        text-decoration: none;
    }

    .item-list > a.provider:last-child {
        margin-bottom: 0;
    }

_:-ms-fullscreen, :root .item-list .provider > span {
    margin: 0;
}

.item-list .provider {
    display: flex;
    align-content: center;
    justify-content: center;
}

    .item-list .provider > img {
        align-items: center;
        max-height: 60px;
        max-width: 100%;
    }

/* ==================================================================================================== */
/* Diagnostic */
#diag {
    position: absolute;
    min-width: 45px;
    min-height: 45px;
    z-index: 2;
    right: 15px;
    top: 50px;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    -ms-flex-align: center;
    flex-direction: column;
    text-align: right;
}

.diag-invisible .diag-info-element {
    visibility: hidden;
}

.diag-info-element {
    visibility: visible;
    color: #888888;
    font-size: 10px;
}

_:-ms-fullscreen, :root .diag-info-element {
    padding-top: 10px;
}

@media only screen and (max-width: 719px) {
    #diag {
        top: 0;
        z-index: 10;
    }

    .diag-info-element {
        color: #ffffff;
    }

    .diag-info-element a {
        color: #ffffff;
    }
}

/* ==================================================================================================== */
/* Header CMI */
.page-header {
    background-color: #009fe3;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 48px;
    width: 100%;
    z-index: 3;
    box-shadow: 0 -3px 1px 0 rgba(0, 0, 0, .1), 0 -2px 2px 0 rgba(0, 0, 0, .07), 0 -1px 5px 0 rgba(0, 0, 0, .06);
}

    .page-header .logo {
        height: 100%;
        display: flex;
        display: -ms-flexbox;
        display: -webkit-flex;
        align-content: center;
        -ms-flex-align: center;
        padding-left: 25px;
        max-width: 1440px;
        margin: auto;
    }

        .page-header .logo img {
            width: 48px;
        }

    .page-header .info {
        position: absolute;
        top: 13px;
        left: 55px;
        opacity: 1.0;
        color: white;
        font-size: 22px;
        line-height: 23px;
    }

/* ================================================================================ */
/* iframe */
html.iframe .container {
    width: auto;
}

html.iframe body {
    border: solid 1px #ccc;
}

html.iframe .page .panel-default .panel-body {
    padding-left: 0;
    padding-right: 0;
}

/* ==================================================================================================== */
/* spinner */
.cmi-preloader {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, .6);
    opacity: 0;
    transition: opacity, transform .5s;
    z-index: 5;
    pointer-events: none;
}

    .cmi-preloader.cmi-visible {
        opacity: 1;
    }

    .cmi-preloader .cmi-hint {
        text-align: center;
        margin: 10px 10px 0 10px;
    }

.cmi-three-dots {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    width: 100px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

    .cmi-three-dots span {
        border-radius: 4px;
        width: 8px;
        height: 8px;
        background: #009fe3;
        opacity: .2;
    }

        .cmi-three-dots span:nth-child(1) {
            animation: lightUp 1.5s linear infinite;
        }

        .cmi-three-dots span:nth-child(2) {
            animation: lightUp 1.5s linear infinite 0.5s;
        }

        .cmi-three-dots span:nth-child(3) {
            animation: lightUp 1.5s linear infinite 1s;
        }


@keyframes lightUp {
    0% {
        opacity: 0.2;
        transform: scale3d(0.5, 0.5, 0.5);
    }

    40% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }

    50% {
    }

    60% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.2;
        transform: scale3d(0.5, 0.5, 0.5);
    }
}


/* ==================================================================================================== */
/* background */

body {
    background: url(../../img/background/01-cmi-welt-w.jpg) no-repeat center center fixed #000;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* ================================================================================ */
/* jquery-msg */
#jquery-msg-overlay {
    -moz-opacity: 0.67;
    -khtml-opacity: 0.67;
    opacity: 0.67;
    filter: alpha(opacity=67);
    background: white;
}

.jquery-msg-content {
    -webkit-background-clip: padding-box;
    padding: 0 0;
    margin: auto 0;
    width: 39px;
    height: 39px;
}
