/*******************************************************************************
 * The content of this file is subject to the ITS4YouLoginDispatcher license.
 * ("License"); You may not use this file except in compliance with the License
 * The Initial Developer of the Original Code is IT-Solutions4You s.r.o.
 * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o.
 * All Rights Reserved.
 ******************************************************************************/

html,
body {
    min-height: 100%;
}
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: url('../../../resources/Images/login-background.jpg') center center / cover no-repeat fixed;
    color: #303030;
    font-family: Helvetica, Arial, sans-serif;
}

#page {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 86px;
}
.login-dispatcher-mode { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.login-dispatcher-page {
    flex: 1 0 auto;
    width: 100%;
}
.login-dispatcher-card {
    width: 100%;
    max-width: 380px;
    min-height: 410px;
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 10px #777;
}
.login-dispatcher-logo {
    box-sizing: content-box;
    height: 50px;
    margin: 0 auto;
    padding: 40px 0 20px;
}
.login-dispatcher-messages { min-height: 24px; text-align: center; }
.login-dispatcher-messages .failureMessage,
.login-dispatcher-messages .successMessage { display: block; padding: 0 20px 10px; }
.login-dispatcher-messages .failureMessage { color: #d32f2f; }
.login-dispatcher-messages .successMessage { color: #2e7d32; }
.login-dispatcher-group { position: relative; margin: 20px 20px 40px; }
.login-dispatcher-group input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 10px 10px 0;
    border: 0;
    border-bottom: 1px solid #757575;
    border-radius: 0;
    background: transparent;
    color: #636363;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
.login-dispatcher-group input:focus { outline: 0; }
.login-dispatcher-group input::placeholder { color: transparent; }
.login-dispatcher-group > label:not(.login-dispatcher-link) {
    position: absolute;
    top: 10px;
    left: 0;
    margin: 0;
    color: #636363;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    transition: all .2s ease;
}
.login-dispatcher-group input:focus ~ label,
.login-dispatcher-group input:not(:placeholder-shown) ~ label {
    top: -20px;
    left: -12px;
    font-size: 18px;
    transform: scale(.75);
}
.login-dispatcher-bar { position: relative; display: block; width: 100%; }
.login-dispatcher-bar::before,
.login-dispatcher-bar::after {
    position: absolute;
    bottom: 1px;
    width: 0;
    height: 1px;
    background: #35aa47;
    content: '';
    transition: width .2s ease;
}
.login-dispatcher-bar::before { left: 50%; }
.login-dispatcher-bar::after { right: 50%; }
.login-dispatcher-group input:focus ~ .login-dispatcher-bar::before,
.login-dispatcher-group input:focus ~ .login-dispatcher-bar::after { width: 50%; }
.login-dispatcher-skin-group { margin-bottom: 10px; }
.login-dispatcher-skin-group select { width: 100%; height: 30px; font-size: 16px; text-transform: capitalize; }
.login-dispatcher-actions { margin-bottom: 20px; }
.login-dispatcher-submit {
    display: inline-block;
    width: 100%;
    margin: .3em 0 1em;
    padding: 9px;
    border: 0;
    background: #35aa47;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
    text-align: center;
    transition: background .15s ease;
}
.login-dispatcher-submit:hover,
.login-dispatcher-submit:focus { background: #2e963f; color: #fff; outline: 0; }
.login-dispatcher-link { display: block; margin: 0; color: #15c; cursor: pointer; font-weight: 400; text-align: left; }
.login-dispatcher-link:hover { text-decoration: underline; }
.login-dispatcher-hint { display: block; color: #636363; font-size: 13px; line-height: 1.4; }
.login-dispatcher-back { float: right; margin-left: 15px; }
.login-dispatcher-forgot { display: none; }
.app-footer { flex: 0 0 auto; width: 100%; margin-top: auto; }
#loginDispatcherForgot:checked ~ .login-dispatcher-page .login-dispatcher-sign-in { display: none; }
#loginDispatcherForgot:checked ~ .login-dispatcher-page .login-dispatcher-forgot { display: block; }

@media (max-width: 1199px) {
    #page { padding-top: 45px; }
    .login-dispatcher-card { margin-top: 0; }
}
