/* Custom Login CSS
------------------------------- */

body.login {
    background: #EDE0D7 url(/wp-content/themes/2m-brand-portal/images/login-bg.svg) no-repeat right center/contain;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

#login {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto 28px 28px;
    grid-template-rows: auto auto 28px 28px;
    padding: 0;
    width: 1060px;
}

.login-action-lostpassword #login {
    grid-template-rows: auto auto 28px 28px;
}

.login h1 {
    grid-column: 1 / span 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.login-action-lostpassword h1 {
    grid-row: 1 / span 4;
}

.login h1 a {
    background: url(/wp-content/themes/2m-brand-portal/images/login-logo.svg) no-repeat center center/contain;
    height: 89px;
    margin-bottom: 48px;
    pointer-events: none;
    width: 333px;
}

.login #login_error,
.login .message, 
.login .success {
    background-color: #051b3a;
    border: 1px solid #EE494E;
    border-bottom: none;
    box-shadow: 4px 4px 0 0 #EE494E;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
    margin-left: 0;
    padding: 24px 20px 0 40px;
    position: relative;
    text-transform: uppercase;
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
    z-index: -1;
}

.login #login_error:before,
.login .message:before,
.login .success:before {
    background-color: #EE494E;
    content: '';
    display: block;
    height: calc( 100% - 24px );
    left: 24px;
    position: absolute;
    width: 4px;
}

.login form {
    background-color: #051b3a;
    border: 1px solid #EE494E;
    box-shadow: 4px 4px 0 0 #EE494E;
    color: #fff;
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
    margin-bottom: 24px;
    margin-top: 0;
}

.login-action-lostpassword form,
.login #login_error + form,
.login .message + form,
.login .success + form {
    border-top: none;
}

.login label {
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400 !important;
    color: #09FA92;
    margin-bottom: 8px;
}

.login form .input,
.login input[type=text] {
    background-color: transparent;
	border: none;
	border-bottom: 1px solid #1547FF;
	border-radius: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 400;
	padding: 0 8px;
	width: 100%;
}

 
.login form input[type=checkbox] {
    background: #fff;
    border: 1px solid #1547FF;
    border-radius: 0;
}

.login input[type=text],
.login input[type=password] {
    margin: 0;
}

.login form p:first-of-type,
.login form .user-pass-wrap {
    margin-bottom: 16px !important;
}

.login .button-primary,
.login .button.button-large {
    background-color: #1547FF;
	border: 0;
	border-radius: 24px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 400;
    line-height: 1.15;
    min-height: 1px;
	padding: 12px 48px;
	text-align: center;
	text-decoration: none;
    transition: all 0.2s ease-in-out;
	white-space: normal;
	width: auto;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background-color: #09FA92;
	border-width: 0;
	color: #061E3D;
}

.login #nav {
    grid-column: 2 / span 1;
    grid-row: 3 / span 1;
}

.login #backtoblog {
    grid-column: 2 / span 1;
    grid-row: 4 / span 1;
}

.login #backtoblog, 
.login #nav {
    margin: 0;
    padding: 0;
    text-align: center;
}

.login #backtoblog a, 
.login #nav a {
    color: #0E144C;
}

.login #backtoblog a:hover, 
.login #nav a:hover,
.login #backtoblog a:focus, 
.login #nav a:focus {
    color: #EE494E;
}