@import url("colourConfig.css?v=123");


.modal { 
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: fixed; 
    z-index: 1; 
    left: 0; 
    top: 0; 
    width: 100vw;
    height: 100vh;
    background-color: rgba(var(--contrast2_rgb), var(--alpha2)); 
}

/* modal content style */
.modal > * {
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

.modal .animate {
    animation: animatezoom 0.6s 
}

@keyframes animatezoom { 
    from { transform: scale(0) } 
    to { transform: scale(1) } 
} 


.login-form { 
    background-color: var(--neutral2_hex);
    border: 0.5px solid var(--shadow2_hex);
    width: 60vw;
    max-width: 600px;
}

.forgot-info {
    width: 40%;
    background-color: var(--theme1_hex);
    padding: 24px 16px;
    border: 0.5px solid var(--theme2_hex);
    color: var(--neutral2_hex);
    max-width: 400px;
    min-width: 240px;
    text-align: center;
}

.forgot-info img {
    width: 200px;
    height: 150px;
    position: relative;
    margin-bottom: 16px;
}

.ice-age {
    width: 95vw;
    height: 90vh;
}

.verybegin-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-flow: column;
    align-items: center;
    overflow-y: auto;
    cursor: default;
    padding: 16px;
}

.verybegin-container h1 {
    display: block;
    position: relative;
    color: var(--theme1_hex);
    width: 50%;
    max-width: 600px;
    min-width: 260px;
    text-align: center;
    margin:42px 0 60px 0;
}

.verybegin-container button {
    width: 200px;
    background: var(--theme2_hex);
    color: var(--neutral2_hex);
    padding: 16px 20px; 
    margin: 8px 0; 
    border: 1px solid var(--theme2_hex);
    cursor: pointer;
    border-radius: 40px;
}

.verybegin-container button:hover {
    background: var(--neutral2_hex);
    color: var(--theme2_hex);
}

.login-form input[type=text], 
.login-form input[type=password] {
    position: relative;
    width: 96%;
    left: 2%;
    clear: right;
    padding: 12px 20px; 
    margin: 4px 0 16px 0; 
    display: inline-block; 
    border: 1px solid var(--theme1_hex);
    color: var(--theme2_hex);
}

.login-form input[type=text]:focus, 
.login-form input[type=password]:focus { 
    outline: 2px solid var(--theme2_hex);
}

.login-form input[type=text].warning, 
.login-form input[type=password].warning { 
    border: 2px solid var(--warning_hex);
}

.login-form label {
    position: relative;
    left: 2%;
    clear: right;
    color: var(--theme1_hex);
}

.login-form button {
    background-color: var(--theme2_hex);
    color: var(--neutral2_hex);
    padding: 16px 20px;
    margin-top: 16px;
    border: 1px solid var(--theme2_hex);
    cursor: pointer; 
    width: 100%;
    border-radius: 40px;
}

.login-form button:hover {
    background-color: var(--neutral2_hex);
    color: var(--theme2_hex);
}

.login-form button.cancelbtn { 
    width: auto; 
    padding: 10px 18px;
    margin: 0;
    background-color: var(--theme1_hex);
    color: var(--neutral2_hex);
    border: 1px solid var(--theme1_hex);
}

.login-form button:hover.cancelbtn {
    background-color: var(--neutral2_hex);
    color: var(--theme1_hex);
}

.login-form .imgcontainer { 
    position: relative;
    text-align: center; 
    margin: 24px 0 36px 0; 
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
} 

.login-form .avatar {
    width: 44vw;
    height: 44vw;
    max-width: 440px; /* according to .login-form! */
    max-height: 440px;
    box-shadow: 0 0 12px 12px var(--neutral2_hex) inset; /*, 0 0 4px 4px rgba(var(--contrast2_rgb), var(--alpha1));*/
    overflow: hidden;
    position: relative;
    background: linear-gradient(to top, rgba(var(--neutral1_rgb), var(--alpha1)), rgba(var(--contrast1_rgb), var(--alpha1))), url('/images/lock_gray.jpg');
    background-size: cover;
    /* buggy, see: https://bugs.chromium.org/p/chromium/issues/detail?id=29427 */
    border-radius: 50%;
}

.login-form .hackyBorderBugFix {
    position: absolute;
    width: calc(44vw + 2px);
    height: calc(44vw + 2px);
    max-width: 442px; /* according to .login-form! */
    max-height: 442px;
    border: 2px solid var(--neutral2_hex);
    border-radius: 50%;
    z-index: 10;
}

.login-form fieldset { 
    padding: 16px;
    padding-bottom: 72px;
    border: none;
}

.login-form fieldset.below {
    background-color: rgba(var(--shadow2_rgb), var(--alpha3));
    padding-bottom: 16px;
}

.login-form span.errormsg {
    position: relative;
    display: block;
    width: 96%;
    color: var(--warning_hex);
    font-size: 10px; /* TODO */
    text-transform: uppercase;
    text-align: right;
}

.login-form span.forgot-passwd {
    padding: 10px;
    float: right;
}

.login-form span.forgot-passwd > a {
    text-decoration: underline;
    color: var(--neutral2_hex);
}

.login-form span.forgot-passwd > a:hover {
    cursor: pointer;
}

.login-form .close { 
    position: absolute; 
    right: 25px; 
    top: 0; 
    color: var(--theme1_hex); 
    font-size: 35px; 
    font-weight: bold; 
} 
  
.login-form .close:hover, 
.login-form .close:focus { 
    color: var(--theme2_hex);
    cursor: pointer; 
} 

@media only screen and (max-width: 720px) {

    .login-form {
        width: 80%;
    }

    .login-form span.forgot-passwd { 
        display: block; 
        float: none;
        margin-top: 12px;
    }
    
    .login-form .avatar {
        width: 56vw;
        height: 56vw;
    }
    
    .login-form .hackyBorderBugFix {
        width: calc(56vw + 2px);
        height: calc(56vw + 2px);
    }
}


/* tablets and mobiles without any mouse */
@media (pointer:coarse),
       (pointer:none) {
       
    .verybegin-container button:hover {
        background: var(--theme2_hex);
        color: var(--neutral2_hex);
    }
    
    .login-form button:hover {
        background-color: var(--theme2_hex);
        color: var(--neutral2_hex);
    }
    
    .login-form button:hover.cancelbtn {
        background-color: var(--theme1_hex);
        color: var(--neutral2_hex);
    }
    
    .login-form .close:hover { 
        color: var(--theme1_hex);
    } 
}

