/*****************************************************************************
 ** Copyright (C) 2024 Akop Karapetyan
 **
 ** Licensed 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.
 ******************************************************************************
 */

html, body, .fields {
    height: 100%;
}

#header {
    position: absolute;
    left: 0;
    right: 0;
    border-bottom: solid 1px #ccc;
    background-color: #eee;
    padding: 0.5em 1em;
}

#header h1 {
    font-size: 24px;
    color: #575757;
    text-shadow: 0px 1px 1px #fff;
    margin: 0.25em 0;
}

body {
    font-family: Ubuntu, helvetica neue, helvetica, arial, sans-serif;
    font-size: 10pt;
    color: #444;
    margin: 0;
    background-color: #f5f5f5;
}

.fields {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    margin: auto auto;
}

.about {
    width: 100%;
    margin: 0.5em auto;
    text-align: center;
    font-size: 12pt;
    color: #999;
}

.about a {
    color: #999;
}

.about a:hover {
    color: #575757;
}

form {
    width: 300px;
    background-color: #fff;
    border: solid 1px #777;
    border-radius: 5px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
}

.fields input {
    font-family: Ubuntu, helvetica neue, helvetica, arial, sans-serif;
    font-size: 16pt;
    font-weight: normal;
}

.fields input[type=text],
.fields input[type=password] {
    border: solid 1px #777;
    border-radius: 5px;
    display: block;
    margin: 8px 0;
    padding: 0.25em 0.5em;
    width: 100%;
    box-sizing: border-box;
}

form a {
    color: #1F51FF;
    text-decoration: none;
    font-size: 14pt;
}

.fields a:hover {
    text-decoration: underline;
}

.fields input[type=submit] {
    margin: 8px 0;
    padding: 0.5em 1.5em;
    background-color: #eee;
    border: solid 1px #aaa;
    border-radius: 3px;
    box-shadow: 1px 1px 1px #ddd;
    color: #999;
    font-weight: 500;
}

.fields input[type=submit]:enabled {
    color: #555;
}

.fields input[type=submit]:hover:enabled {
    border-color: #000;
}

.fields input[type=submit]:active:enabled {
    color: #555;
}

.fields ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.fields li {
    margin: 1em 0em;
    font-size: 14pt;
    color: red;
    display: block;
}

.fields li.success {
    color: green;
}
