:root {
    --accent-color: #0e1f47;
}

html, body, h1, h2, h3, h4{
    margin: 0;
    padding: 0;
}
body{
    background: #F5F5F6;
    color: #141414;
    font-family: Open Sans, sans-serif;
}
main{
    min-height: calc(100vh - 241px);
}
h1{
    font-family: Roboto, sans-serif;
    font-size: 42px;
    font-weight: 400;
}
h2{
    font-family: Roboto, sans-serif;
    font-size: 29px;
    font-weight: 400;
}
.colored-header{
    color: var(--accent-color);
}
p{
    font-size: 16px;
    line-height: 1.618em;
}
a{
    color: #141414;
    font-weight: 400;
    text-decoration: none;
}

/* General page styling */
header .mainheader{
    background: var(--accent-color);
    color: #FFFFFF;
    height: 50px;
    width: 100%;
}
header .mainheader-inner{
    height: 50px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    width: 1020px;
}
header .mainheader-inner a,
header .mainheader-inner p{
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-family: Open Sans, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4em;
}
header .mainheader-inner a i.fa,
header .mainheader-inner a i.fas{
    font-size: 18px;
    line-height: 50px;
}
header .mainheader-inner a:hover p{
    border-bottom: 1px solid #FFF;
    cursor: pointer;
    line-height: 1.4em;
}
header .mainheader-inner p{
    cursor: default;
    margin: 0;
}
header .mainheader-inner i.fas{
    margin: 0 0 0 10px;
}
header .mainheader-inner i.fas.fa-list{
    margin: 0 10px 0 0;
}
header .mainheader-inner span{
    margin: 0;
    position: absolute;
    right: 0;
}
header .subheader{
    background: #FFFFFF;
    height: 125px;
}
header .subheader-inner{
    align-items: center;
    display: flex;
    gap: 30px;
    margin: 0 auto;
    max-width: 1020px;
    padding: 0 50px;
}
header .brand-logo{
    cursor: pointer;
    height: 80px;
    margin: 25px 0;
    width: auto;
}
header .brand-name{
    font-family: Open Sans, sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.5em;
    color: #888;
    width: 400px;
}
main #content{
    padding: 50px;
}
main #content .template-wrapper{
    height: auto;
    position: relative;
    width: 100%;
}
main #content .template-wrapper .template-inner{
    min-height: 455px;
    background: #FFF;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin: 0 auto;
    padding: 50px;
    position: relative;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}
main #content .template-wrapper .template-inner.no-padding{
    padding: 0;
    width: 800px;
}
footer{
    background: #FFF;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 15px 0 0 0;
    min-height: 50px;
    width: 100%;
}
footer .footer-inner{
    margin: 0 auto;
    text-align: center;
    width: 1020px;
}
footer .footer-inner p{
    color: #3E3E3E;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    line-height: 50px;
}

/* General form styling */
.form-container{
    background: #F9F9FB;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 3px;
    padding: 25px 30px;
    position: relative;
}
form{
    font-family: Open Sans, sans-serif;
    margin: 0;
}
form p:first-of-type{
    margin-top: 0;
}
form ul{
    margin: 0;
    padding: 0;
}
form label{
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 8px 0;
    padding: 25px 0 0 0;
    width: 100%;
}
form ul li{
    cursor: pointer;
    display: inline-table;
    list-style: none;
    margin: 15px 15px 0 5px;
    width: calc(25% - 24px);
}
form ul li label{
    cursor: pointer;
}
form input[type="checkbox"],
form input[type="radio"]{
    border: none;
    padding: 10px;
}
form input[type="checkbox"]:focus,
form input[type="radio"]:focus,
form textarea:focus,
form textarea:hover{
    border: 3px solid var(--accent-color) !important;
}
form input[type="email"],
form input[type="number"],
form input[type="text"],
form input[type="password"],
input[type="submit"]{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 1px solid #000;
    border-radius: 3px;
    color: #000;
    cursor: pointer;
    font-family: Open Sans, sans-serif;
    font-size: 15px;
    outline: none;
    padding: 5px 5px 5px 10px;
}
form input[type="email"],
form input[type="text"],
form input[type="password"]{
    min-width: 250px;
}
input[type="submit"]{
    background: var(--accent-color);
    border: none;
    border-radius: 3px;
    color: #FFF;
    font-size: 16px;
    padding: 8px 20px;
}
input[type="submit"]:hover{
    filter: brightness(120%);
}
form input[type="number"]:focus,
form input[type="number"]:hover{
    border: 1px solid transparent;
    box-shadow:inset 0px 0px 0px 3px var(--accent-color);
    -moz-box-shadow:inset 0px 0px 0px 3px var(--accent-color);
    -webkit-box-shadow:inset 0px 0px 0px 3px var(--accent-color);
    cursor: pointer;
}
form select{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: url('../img/arrow-down-black.png') right / 20px no-repeat #FFF;
    border: 1px solid #000;
    border-radius: 3px;
    color: #000;
    cursor: pointer;
    font-family: Open Sans, sans-serif;
    font-size: 16px;
    outline: none;
    padding: 5px 30px 5px 10px;
    text-indent: 0.01px;
    text-overflow: '';
    width: auto;
}
form select:focus,
form select:hover{
    border: 1px solid transparent;
    box-shadow:inset 0px 0px 0px 3px var(--accent-color);
    -moz-box-shadow:inset 0px 0px 0px 3px var(--accent-color);
    -webkit-box-shadow:inset 0px 0px 0px 3px var(--accent-color);
}
form select option{
    cursor: pointer;
}
form textarea{
    border: 1px solid #000;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Open Sans, sans-serif;
    font-size: 16px;
    height: 125px;
    padding: 10px 15px;
    resize: none;
    width: 100%;
}

/* General buttons */
.btn-container{
    margin: 15px 0 0 0;
}
.btn-container a{
    background-color: var(--accent-color);
    border-radius: 3px;
    color: #FFF;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}
.btn-container:hover{
    filter: brightness(120%);
}
.btn-container.signup a{
    padding: 10px 15px 10px 20px;
}
.btn-container.signup .btn-arrow{
    margin: 0 0 0 10px;
}
.btn-container.back a{
    padding: 10px 20px 10px 15px;
}
.btn-container.back .btn-arrow{
    margin: 0 10px 0 0;
}

/* Error styling */
ul.errorlist{
    animation: errorlistAnim;
    animation-duration: 1s;
    color: #DB2B39;
    font-size: 16px;
    font-style: italic;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.errorlist li{
    margin: 0;
    width: 100%;
}

@keyframes errorlistAnim{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 100%;
    }
}

@media screen and (max-width: 1200px){
    header .subheader{
        height: auto;
    }
    header .subheader-inner{
        max-width: 100%;
        padding: 0 35px;
        width: calc(100% - 70px);
    }
    header .brand-logo{
        height: 50px;
        margin: 16px 0 10px 0;
    }
    header .brand-name{
        font-size: 1.1em;
        margin-left: 55px;
    }
    header .mainheader-inner{
        padding: 0 35px;
        width: calc(100% - 70px);
    }
    header .mainheader-inner span{
        right: 24px;
    }
}
@media screen and (max-width: 1000px){

    main #content{
        padding: 35px;
    }
    main #content .template-wrapper .template-inner{
        padding: 35px;
        width: 100%;
    }
    main #content .template-wrapper .template-inner.no-padding{
        width: 100%;
    }
    footer .footer-inner{
        width: 100%;
    }
    footer .footer-inner p{
        padding: 0 35px;
    }

    div#content{
        padding: 35px;
    }
    .mainheader-inner{
        padding: 0 35px;
    }
    .subheader-inner{
        padding: 0 35px;
    }
    .aiac-name{
        font-size: 1.40em;
        width: 350px;
    }
}

@media screen and (max-width: 760px){
    body h1{
        font-size: 28px;
    }
    body h2{
        font-size: 22px;
    }
    body p{
        font-size: 14px;
        margin: 10px 0;
    }
    body ul li{
        font-size: 14px;
    }
    header .subheader-inner {
        padding: 0 20px;
        width: calc(100% - 40px);
    }
    header .mainheader-inner{
        padding: 0 20px;
        width: calc(100% - 40px);
    }
    header .mainheader-inner p{
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3em;
    }
    header .mainheader-inner a{
        margin: 0;
    }
    header .mainheader-inner i.fas{
        margin: 0 0 0 5px;
    }
    header .mainheader-inner i.fas.fa-list{
        margin: 0 5px 0 0;
    }
    header .brand-logo{
        height: 35px;
    }
    header .brand-name{
        font-size: 0.8em;
    }
    main {
        min-height: calc(100vh - 160px);
    }
    main #content{
        padding: 20px;
    }
    main #content .template-wrapper .template-inner{
        padding: 20px;
        width: calc(100% - 40px);
    }
    footer{
        margin: 0;
        min-height: unset;
        padding: 10px 0;
    }
    footer .footer-inner p{
        font-size: 10px;
        line-height: 1.4em;
        padding: 0 20px;
    }

    .form-container {
        background: #F9F9FB;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 3px;
        padding: 15px 20px;
        position: relative;
    }
    form-inner{
        position: relative;
    }
    form input[type="email"],
    form input[type="text"],
    form input[type="password"]{
        min-width: unset;
    }

    input[type="submit"]{
        font-size: 14px;
    }
    form label{
        font-size: 14px;
        padding: 0 0 3px 0;
    }
    form select {
        font-size: 14px;
        width: 100%;
    }

    .btn-container a{
        font-size: 14px;
    }

    /* --- */
    .aiac-name {
        font-size: 1.20em;
        margin: 40px 0 0 25px;
        width: 300px;
    }
    .footer-inner p{
        font-size: 11px;
        line-height: 1.2em;
        padding: 12px 25px;
    }
}

@media screen and (max-width: 600px){
    /* --- */
    .subheader{
        height: 110px;
    }
    .aiac-logo{
        height: 60px;
    }
    .aiac-name{
        font-size: 1.00em;
        margin: 38px 0 0 15px;
        width: 250px;
    }
}

@media screen and (max-width: 500px){
    /* --- */
    .aiac-logo{
        height: 50px;
        margin: 20px 0;
    }
    .aiac-name {
        font-size: 0.80em;
        margin: 32px 0 0 12px;
        width: 200px;
    }
    a.no-account-yet{
        font-size: 13px;
    }
}
