/* Ofer Gates Appilcation Stylesheet */
/* Version 2022-01-12 */
/* brief: login stylesheet */

@font-face {
    font-family: Lato;
    src: url("/National_Library/oe_/https://ofer.cam/assets/fonts/Lato-Regular.ttf");
    font-display: swap;
}

input[type=text]:focus:invalid,
input[type=password]:focus:invalid,
input[type=tel]:focus:invalid{
    border: 1px solid red;
    transition: .3s;
}

input[type=text]:valid,
input[type=password]:valid,
input[type=tel]:valid{
    border: 1px solid green !important;
    transition: .3s;
}

* {
    box-sizing: border-box;
    font-family: Lato, sans-serif;
}

body {
    font-family: Lato, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #EDEDED;
    overflow-y: auto;
    min-width: max-content;
}

a, p, h1 {
    font-family: Lato, sans-serif;
    color: #333;
    text-align: center;
}

a {
    text-decoration: underline;
    font-size: 14px;
    transition: .3s;
    display: block;
}

a:hover {
    color: #c31e39;
    cursor: pointer;
}

p.title {
    margin: 10px auto 20px;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}

input {
    width: 100%;
    padding: 8px;
    margin: 8px auto;
    font-family: Lato, sans-serif;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
}

label {
    text-align: center;
    width: 100%;
    display: block;
    color: #a2a2a2;
    margin: 8px auto;
    font-size: 14px;
}

button {
    font-family: Lato, sans-serif;
    border: none;
    padding: 8px 16px;
    background-color: #c31e39;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    min-width: 100px;
    margin: 16px auto;
    display: block;
}

button:hover {
    opacity: .5;
}

.login_wrapper {
    display: flex;
    background-color: #EDEDED;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.login_forum {
    max-width: 320px;
    margin: auto;
    width: 90%;
}

form {
    background-color: white;
    height: min-content;
    padding: 24px;
    /* display: none; */ /* conditional form display handled by server */
    width: 100%;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.35);
}
form.active{
    display: block;
}

.powered {
    text-align: center;
    display: block;
    width: 100%;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
}

form img {
    width: 80px;
    display: block;
    margin: auto;
}

.web_bg img {
    display: none;
}

.error {
    color: red;
    text-align: right;
    padding: 0 8px;
}

@media (min-width: 768px) {
    body{
        background-image: url("/National_Library/oe_/https://ofer.cam/assets/images/loginBg.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .login_wrapper {
        max-width: 40%;
    }
    .web_bg img {
        display: block;
        height: 100vh;
    }
}

.login_type{
    display: flex;
    flex-wrap: wrap;
}
.login_type p{
    width: 100%;
    display: block;
}
.login_type a{
    width: calc(50% - 16px);
    text-decoration: none;
    padding: 8px 16px;
    margin: 16px 8px;
    border-bottom: 4px solid #ccc;
    font-size: 1.1em;
}
.login_type a.active{
    font-weight: bold;
    border-bottom: 4px solid #c31e39;
}