body, html{
    width: 100%;
    font-family: system-ui, Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    min-width: 300px;
    margin: 0px;
}

html{
    background-color: rgb(34, 34, 34);
    background-image: url(/static/login_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    min-height: 100vh;
}

.content{
    text-align: center;
    margin: auto;
    width: 100%;
}


.login{
    position: relative;
    width: min(350px, 90%);
    padding: 30px 0px 20px 0px;
    margin: auto;
    background-color: white;
    margin-top: calc(30vh - 200px);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    box-shadow: rgb(99 99 99 / 20%) 0px 2px 8px 0px;
    z-index: 1;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    /* overflow: scroll; */
}

.logo{
    max-width: 80%;
    margin: auto;
    margin-bottom: 10px;
    object-fit: cover;
    object-position: top;
    border-radius: 5px;
    box-shadow: rgb(99 99 99 / 62%) 0px 3px 11px 1px;
}


@media (max-height: 700px) {
    .login{
        margin-top: 0px;
    }
}


@media (max-width: 500px) {
    .login{
        width: 100%;
        border-radius: 0px;
        margin-top: 0px;
        height: 100vh;
        padding: 20px 0px;
    }

    .logo{
        min-height: 100px;
        max-height: 25%;
    }
}


.field {
    margin: 5px auto 5px auto;
    width: 80%;
    text-align: left;
}

label{
    padding-left: 3px;
}

input{
    width: 100%;
    margin: 3px auto 3px auto;
    padding: 10px;
    border: 1px solid lightgrey;
    border-radius: 7px;
    box-shadow: rgb(99 99 99 / 20%) 0px 1px 5px 0px;
    box-sizing: border-box;
}

input:read-only {
    opacity: 60%;
}

.message{
    width: 90%;
    margin: 30px auto;
}

form{
    margin: 10px 0px;
    text-align: center;
}

footer{
    position: absolute;
    text-align: left;
    bottom: 0px;
    margin: 20px;
    color: rgb(34, 34, 34);
}

.error-msg{
    color: red;
    font-size: 0.8em;
    margin: auto;
    width: 90%;
}

.error-msg:first-letter {
    text-transform: uppercase;
}


.button-area{
    vertical-align: middle;
    height: 40px;
    position: relative;
}

.button-area > *{
    position: absolute;
    inset: 0;
}


button{
    font-family: system-ui, Arial, Helvetica, sans-serif;
    font-size: 1em;
    font-weight: 400;
    border: none;
    padding: 13px;
    text-transform: capitalize;
    border-radius: 3px;

    width: 80%;
    white-space: nowrap;
    cursor: pointer;
    margin: auto;
    background-color: rgb(255 132 63);
    color: white;
    height: 50px;
}

.links{
    margin-top: 5px;
    display: flex;
    justify-content: center;
}

.links > *{
    margin: 5px;
    color: gray;
    line-height: 12px;
}

.link{
    display: block;
    font-size: 0.8em;
    text-decoration: none;

}

.link:hover{
    color: rgb(255 132 63);
}

.lds-ellipsis {
    margin: auto;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgb(255, 174, 126);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

.or-sign-in-with{
    margin: 15px;
}

.third-party-providers{
    width: 80%;
    margin: auto;
    margin-top: 0px;
}

.third-party-provider img{
    width: 66%;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.trouble-note{
    width: 80%;
    margin: auto;
    margin-bottom: 0px;
    font-size: 0.8em;
    color: gray;
}

.trouble-note p{
    margin: auto;
}

.bold{
    font-weight: bold;
}

.space{
    margin: auto;
}