﻿body {
    background-color: white;
    padding: 0;
    margin: 0;
    font-family: Calibri;
}

div.login-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

div.main-image {
    overflow: hidden;
    flex: 1 0 auto;
    min-width: 100px;
}

.login-image
{
    background-image: url("../../Images/assetia-landing-image-1080.jpg");
    background-size: cover;
    background-position: left center;
    height: 100%;
}

.login-brand-image {
    position: absolute;
    left: 1em;
    bottom: 1em;
    max-width: 6%;
    min-width: 60px;
}

div.login-panel {
    font-size: 12px;
    flex: 0 0 40em;
    background-color: #002d62;
    display: flex;
    flex-direction: column;
}

div.login-header {
    padding: 1.6em;
    height: 6em;
    background: white;
    display: grid;
    grid-template-columns: 70% 30%;
}

div.login-header-image {
    background-image: url("../../Images/nh-logo.jpg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
}

div.login-header-title {
    text-align: right;
    line-height: 6rem;
    font-size: 4rem;
    font-weight: 700;
    color: #002d62;
}

div.login-body {
    display: flex;
    height: 100%;
    flex-direction: column;
    min-height: 0;
}

div.terms-panel {
    font-size: 12px;
    flex: 0 0 80em;
    background-color: #002d62;
    display: flex;
    flex-direction: column;
}

@media only screen and (min-width: 1200px) {
    div.login-body {
        padding: 1rem 1.5rem;
    }

    .login-input {
        margin-top: 2rem;
    }


    .login-header {
        margin-bottom: 1rem;
    }

    div.submit-area {
        margin-top: 2rem;
    }

    .login-links-panel {
        margin-top: 2rem;
    }
}

@media only screen and (min-width: 1920px) {
    div.login-body {
        padding: 4rem 4rem;
    }

    .login-links-panel {
        margin-top: 4rem;
    }

    div.submit-area {
        margin-top: 5rem;
    }

    .login-input {
        margin-top: 4rem;
    }

    .login-header {
        margin-bottom: 1.4rem;
    }
}

span.login-title {
    font-size: 3.6rem;
    font-weight: 100;
    color: white;
}

div.login-error {
    background-color: #FFF0F0;
    font-size: 1.44rem;
    color: #BB0000;
    padding: 0.8rem;
    margin-bottom: 4rem;
}

div.validation-summary-errors > ul {
    margin: 0;
    padding: 0.8rem;
    font-size: 1.44rem;
    color: #BB0000;
    background-color: #FFF0F0;
    margin-bottom: 4rem;
}

div.validation-summary-errors > ul > li {
    display: block;
}

form.login-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-input-field {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
}

.login-links-panel {
    display: flex;
    flex-direction: column;
}

.login-link {
    font-size: 1.8rem;
    font-weight: 400;
    color: white;
}

div.password-policy {
    font-size: 1.44rem;
    background: white;
    color: #002d62;
    padding: 0.8rem;
    margin-bottom: 4rem;
}

div.terms {    
    overflow-y: scroll;
    width: 100%;
    font-size: 1.5rem;
    font-weight: 200;
    color: white;
    flex: 1;
}

label {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin-bottom: 0.5rem;
}

input, .input {
    font-size: 2rem;
    background-color: transparent;
    color: white;
    box-shadow: none;
    border-width: 0;
    border-bottom: 0.1rem solid;
    width: 100%;
    height: 5rem;
    padding: 0;
}

/* Remove ugly border in firefox */
input:invalid {
    box-shadow: none;
}

input::-moz-focus-inner, button::-moz-focus-inner /*Remove button padding in FF*/ {
    border: 0;
    padding: 0;
}

div.submit-area {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.button {
    width: 16rem;
    height: 5rem;
    color: white;
    background: transparent;
    border-width: 0.1rem;
    border-color: white;
    border-style: solid;
    font-size: 2.4rem;
    font-family: Calibri;
    box-sizing: border-box;
    margin: 0 3em;
}

.button:hover {
    border-width: 0.1rem;
    border-color: transparent;
    background: #0093d0;
}

.button-action-link {
    width: 16rem;
    height: 5rem;
    color: white;
    background: transparent;
    border-width: 0.1rem;
    border-color: white;
    border-style: solid;
    line-height: 5rem;
    text-align: center;
    vertical-align: middle;
    font-size: 2.4rem;
    text-decoration: none;
    cursor: default;
    box-sizing: border-box;
    margin: 0 3em;
}

.button-action-link:hover {
    border-width: 0.1rem;
    border-color: transparent;
    background: #0093d0;
}

.login-branding {
    height: 8rem;
    color: white;
    display: flex;
    align-items: center;
    align-self: center;
    bottom: 0em;
}

.login-branding-text {
    font-size: 1.5em;
}

.login-branding-logo {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 2em;
    font-family: Marcellus;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.login-branding-logo-drop-cap {
    font-size: 1.6em;
}

.login-branding-strapline {
    font-family: Marcellus;
    display: flex;
    flex-direction: column;
    font-size: 1em;
    line-height: 1em;
    text-transform: uppercase;
    justify-content: space-between;
    border-left: 1px solid white;
    padding-left: 1em;
    height: 3em;
}

.links-panel {
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    margin-bottom: 4rem;
    align-self: center;
}

.link {
    font-size: 2rem;
    font-weight: 400;
    color: white;
}

div.checkbox-container {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: auto 1fr;
}

.checkbox-custom {
    all: unset;
    margin-right: 3rem;
    position: relative;
    width: 1.5em;
    height: 1.5em;
    border: 3px solid white;
    place-self: center;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
    border-right: 0.5em solid #0093d0;
    border-bottom: 0.5em solid #0093d0;
    left: 15%;
    right: 15%;
    bottom: 50%;
    height: 1.8em;
    transform-origin: bottom;
    transform: translate(-0.15em, 0.15em) rotateZ(45deg);
    animation: clip-in 200ms cubic-bezier(1, 1, 0, 1) forwards;
    display: none;
}

.checkbox-custom:checked::after {
    display: block;
}

@keyframes clip-in {
    0% {
        clip-path: circle(0 at 0% 100%);
    }

    100% {
        clip-path: circle(200% at 100% 100%);
    }
}