body {
	color: #fff;
	background-color: #222222;
	height: 100%;
	margin: 0;
	padding: 0;
    font: 12px/16px arial,sans-serif;
}

a {
	text-decoration: none;
	color: #78B743;
}

a:hover {
	text-decoration: underline;
}

h1.metrex-logo {
	font-size: 21px;
	color: #666;
}

#login h1 a {
    background: transparent url("/common/pwire/images/pharmacywire-logo-2015.png") no-repeat scroll center top;
    display: block;
    height: 60px;
    overflow: hidden;
    padding-bottom: 25px;
    text-indent: -9999px;
    width: 300px;
    margin: 0 auto;
}

#login {
    padding: 114px 0 0;
    visibility: hidden;/* allows the div to take up sapce, unlike display:none which removes the div's space in the layout */
}

#login-form-container {
    margin: 0 auto;
    width: 508px;
    height: 150px;
}

#login #login-form {
    /* background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #E5E5E5; */
    box-shadow: 0 2px 25px 6px rgba(200, 200, 200, 0.3);
    font-weight: normal;
    margin-left: 8px;
    -webkit-border-radius: 3px;
    border-radius: 9px;
    padding: 26px 90px 46px 90px;
    width: 300px;
}

#login #login-form .input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #222;
    border-radius: 3px;
    font-size: 21px;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 16px;
    margin-right: 6px;
    margin-top: 2px;
    outline: medium none;
    padding: 6px;
    width: 100%;
    color: #777;
}

#login #login-form .input:focus {
    background-color: #FFFED8;
}

#login label {
    color: #999;
    font-size: 14px;
}

#copyright {
	margin: 20px auto;
	text-align: center;
	font-family: arial;
	font-size: 11px;
}

#login-result {
	display: none;
}

#login-submit, .button {
    font-size: 13px !important;
    line-height: 16px;
    padding: 5px 12px;
    background: #0ecaf8;
    color: #FFFFFF;
    border: none;
    font-weight: bold;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
    border-radius: 13px;
    cursor: pointer;
}
#login-submit:hover, .button:hover {
	text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.3);
	background: none repeat-x scroll left top #61defd;
}

.button.submit-tempkey {
    width: 4.5rem;
}

.button.use-public-key {
    width: 5.1rem;
}

#login-form #login-submit {
    float: right;
}

#login #login-form input.disabled, #login #login-form input.disabled:focus {
	background: none repeat-x scroll left top #efefef;
}

#login #login-form #login-submit.disabled {
	background: none repeat-x scroll left top #999999;
}

#login h1 a {
    background: transparent url("/common/pwire/images/pharmacywire-logo-2015.png") no-repeat center top;
}

#login-form.show-2fa > .first-auth,                        .two-factor { display:none }
#login-form          > .first-auth, #login-form.show-2fa > .two-factor { display:block }

.two-factor > hr { margin-top: 1rem; margin-bottom: 1rem; }

#login form.show-2fa .two-factor { 
    top: 50%;
    left: 50%;
    margin: 0; 
}

/* .show-2fa .two-factor .reauthorize {
    left: 90px;
    position: relative;
    top: 10px;
} */

.shake {
    animation: kf_shake 0.5s 1 linear;
}

@keyframes kf_shake {
    0% {  transform: translate(32px);  }
    20% { transform: translate(-26px); }
    40% { transform: translate(19px);  }
    60% { transform: translate(-13px); }
    80% { transform: translate(6px);   }
   100% { transform: translate(0px);   }
}

#login.fade-in {
    visibility: visible;/* allows the div to take up sapce, unlike display:none which removes the div's space in the layout */
    animation: fade-in 1.25s 1 linear;
}
  
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


#login-form.show-2fa > .two-factor:has(.reauthorize) {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    grid-template-rows: 1fr; 
    gap: 0px 4rem; 
    grid-template-areas: ". reauthorize ."; 
    position: relative;
    top: 10px;
    left: 0px;
}
#login-form.show-2fa > .two-factor:has(.reauthorize):has(#login-submit) {
    grid-template-columns: 1fr 1fr; 
    grid-template-areas: "reauthorize login-submit"; 
}
.reauthorize { grid-area: reauthorize; }

#login-form.show-2fa > .two-factor > #login-submit { grid-area: login-submit; }

.html-error-block {
	width: 20rem;
	margin: 0 auto !important;
	text-align: center;
	padding: 3.5rem 0 1rem 0;
}
.html-error-block .error-code {
	font-size: 11rem;
	font-weight: bold;
}
.html-error-block .primary-error {
	float: left;
	width: 100%;
}
.html-error-block .error-description {
	font-size: 1.8rem;
    line-height: 1.2;
	padding: 2rem 0;
	display: block;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.primary-error-message {
	font-size: 0.8rem;
}
