﻿/*
    First order of business: A disclaimer that a lot of lamenting the state of having to do stuff for IE 
    Such as the following selector.
    Note: Originally overflow part of this was on html, but this broke scrolling on mobile.
*/
.mainContent
{
    overflow: hidden;
    height:100vh;
    -ms-user-select: text; /* IE 11, Edge for not clicking on images to select. Seems to work better on IE */
}
body
{
    background-color: #f1f2f2; /* Snow */
}
form
{
    margin: 0;
}
.dfImage{
    height: 100vh;
/* This shouldn't be needed because of the S in SVG, but IE is unhelpful */
    width: 76vh;
}
.topImage {
    max-width: 200px;
    padding-bottom: 60px;
    margin: 0 auto;
    display: block;
}
.loginImage {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}
/*Thanks, Edge*/
.loginImage::selection{
    background: none;
}
.loginImage.clientImage{
    max-width: 300px;
}
.leftSide {
    display:none;
    -ms-user-select: none; /* IE 11, Edge (mostly Edge) */
}
.rightSide {
    display: inline-block;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}
.leftSide, .rightSide {
    vertical-align: top;
}
.centerdContent {
    height: 100%;
    position: relative;
    min-height: 600px;
    overflow-y: hidden; /*IE, let parent scroll, think it is caused by below top and transform*/
}
.centerdContent .middle {
    max-width: 350px;
    width: 100%;
    margin: 0 auto 75px auto; /* Centre horizontally, allow space for footer to fall into */
    position: relative;
    top:45%; /* Well, I think it looks better than strictly centered */
    transform: translateY(-50%);
}

/* Text */
.logoutMessage,
.labelLogin,
.labelResetPassword {
    color: #4d4d4f;
    display: block;
    font: 14px 'Arial';
    padding: 3px 0;
}

.errortext {
    font: 12px 'Arial';
    color: #D60004;
}

.copyrightText{
    font: 12px 'Arial';
    color: #4d4d4f;
}

.readOnlyText {
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.titleResetPassword {
    color: #4d4d4f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    white-space: nowrap;
}

.bottomLink {
    font: 12px 'Arial';
    color: #3067db;
    padding: 5px;
}

.formposition,
.formposition.btn,
.inputField {
    width: 100%;
}

.inputField{
    height: 75px;
    position: relative;
}

.inputField .dfLoginValidationError {
    position:absolute;
    left:0;
    bottom:4px;
}

.inputField .labelLogin {
    position:absolute;
    left:0;
    top:0;
}
/* 
  Login textboxes border line contains padding etc, but we want it to appear in line
  with everything else. Therefore we cut down the padding
*/
input[type=text].formposition,
input[type=password].formposition{
    padding: 4px 0;
    /*Offset top so label itself can be lower. Use margin so IE outlines or chrome autofills don't cover label. */
    margin-top: 22px;
}

/*Involves overrwiting bootstrap*/
.inputField input/*,
.inputField input:-webkit-autofill*/{
    background-color: transparent;
    font: 16px 'Arial';
    font-weight: bold;
    color:#393839;
    border:solid black;
    border-width: 0 0 1px 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    margin-bottom:0;
}
.inputField .dfLoginValidationError.invalid ~ input:focus{
    color:#393839;
}

.inputField input:focus/*,
.inputField input:-webkit-autofill:focus*/{
    background-color: transparent;
    border-width: 0 0 2px 0;
    border-color:#3067db;
    box-shadow: none;
}

.inputField input:focus ~ .labelLogin{
    color: #3067db;
}

.inputField .dfLoginValidationError.invalid ~ .labelLogin {
    color: #D60004;
}
.inputField .dfLoginValidationError.invalid ~ input {
    border-color:#D60004;
    border-width: 0 0 2px 0;
}

.btn { 
    background-color:#3067BD;
    border-color:#3067BD;
    color:#ffffff;
    font: 16px 'Arial';
    font-weight: bold;
    background-image:none;
    box-shadow: none;
    text-shadow: none;
}
.btn:hover { 
    background-color:#1e51bf;
    box-shadow: none;
    text-shadow: none;
    color: #ffffff;
}
.btn.btnLogin,
.btn.linkAsBtn{
    height:42px;
}

.btn.btnOutline {
    background-color: #f1f2f2;
    border-color: #bdbdbd;
    color: #393839;
    font: 12px 'Arial';
    line-height: 17px;
    min-width: 80px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.btn.btnOutline:hover { 
    background-color: #e9e9e9;
    box-shadow: none;
    color: #4d4d4f;
    text-shadow: none;
}
.btn.btnSmall {
    font: 12px 'Arial';
    line-height: 17px;
    min-width: 80px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

a.btn-link,
.btn-link {
    color: #3067db;
}

.loginMessages {
     text-align: center;
     padding: 9px 0;
}

.forgotPw {
    padding: 6px 0;
}

.footer { 
    width:100%; 
    position:absolute;
    bottom:15px;
    text-align: center;
    left:0;
    right:0;
    width: auto;
}

.linkAsBtn,
.logoutMessage{
    display:block;
}
.linkAsBtn{
    margin-top: 185px;
    line-height: 42px; /*See if we can't vertically align better*/
}
.logoutMessage{
    text-align:center;
    padding: 0 0 5px 0;
}

/* May seriously want to upgrade bootstrap */
.modal-backdrop,
.modal-backdrop.fade.in {
    opacity: 0.25;
    filter: alpha(opacity=25);
}
/* Width override causes centering issues in bootstrap dialog */
/*.modal {
    width: 400px;
}*/
.modal {
    border: 1px solid #868686;
    text-align: center;
    border: 1px solid rgba(154, 154, 154, 1);
    *border: 1px solid #868686;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}
.modal-footer {
    border-top: 0px solid #f5f5f5;
    background-color: #f5f5f5;
    -webkit-border-radius: 0 0 1px 1px;
    -moz-border-radius: 0 0 1px 1px;
    border-radius: 0 0 1px 1px;
    padding: 14px 15px 15px;
}

.modal-header {
    padding: 9px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.modal-header .close {
    margin-top: 0px;
    font-size:30px;
    line-height: 22px;
    padding-top: 0px;
    padding-right: 1rem;
    padding-bottom: 0px;
    padding-left: 0px;
    border: 0;
}

/* 
Microsoft browsers do not allow calc in min-width. Chrome is also being uncooperative.
Therefore we have a series of approximations and repitition.
IE is unhelpul still in the sense that min-width in vh fails. Using aspect ratio instead
Hopefully upper and lower bounds are good enough.
*/
@media all and (max-height:400px) and (min-width: 704px),
all and (min-height:400px) and (max-height:600px) and (min-aspect-ratio: 704/400),
all and (min-height:600px) and (max-height:800px) and (min-aspect-ratio: 856/600),
all and (min-height:800px) and (max-height:1000px) and (min-aspect-ratio: 1008/800),
all and (min-height:1000px) and (max-height:1400px) and (min-aspect-ratio: 1160/1000),
all and (min-height:1400px) and (max-height:1800px) and (min-aspect-ratio: 1464/1400),
all and (min-height:1800px) and (max-height:2200px) and (min-aspect-ratio: 1768/1800),
all and (min-height:2200px) and (min-aspect-ratio: 2072/2200)
{
    .leftSide {
        display: inline-block;
    }

    .leftSide + .rightSide{
        width: calc(100% - 76vh);
    }
}

.display-none {
    display:none;
}

.verify-button {
    margin-top: 5%;
}

.verify-companyid-label {
    margin-left: 30%;
    margin-top: 3%;
    font-family: Arial;
    font-size: 14px;
}

.invalid-login-label {
    margin-left:20%;
    margin-top: 5%;
    font-family: Arial;
    font-size: 14px;
}

.error-input {
    border-color: #D60004 !important;
}

.error-login-text {
    color: #d60004;
}

.inputField label:focus /*,
.inputField input:-webkit-autofill:focus*/ {
    background-color: transparent;
    border-width: 0 0 2px 0;
    border-color: #3067db;
    box-shadow: none;
}

a {
    color: #08c;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

.forgot-message {
    font-size: 14px;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

.btn-link {
    font-weight: 400;
    color: #007bff;
    background-color: transparent;
}

a:hover {
    color: #005580;
    text-decoration: underline;
}

.what-is-a-company-id-text {
    font: 14px 'Arial';
}

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.expander-control-open {
    background: url('../images/ExpanderControl_sprites.png') no-repeat -1px 1px;
    display:inline-block;
    width: 20px;
    height: 13px;
}

.expander-control-closed {
    background: url('../images/ExpanderControl_sprites.png') no-repeat -1px -15px;
    display: inline-block;
    width: 20px;
    height: 13px;
}

.expander-control {
    cursor: pointer;
    font: 14px 'Arial';
    color: #0053A4;
}

.advanced-settings-wrapper {
    text-align: center;
}

.advanced-settings {
    text-align: left;
}

.advanced-settings input {
    margin-right: 5px;
    vertical-align: middle;
}
.advanced-settings-hidden {
    display: none;
}

.header-admin-page {
    color: white;
    padding: 15px;
    height: 20%;
    background-color: rgb(48, 103, 189);
}

.tab-admin-page{
    padding: 20px;
    font-size: small;
}

.tab-button-admin-page {
    background-color: Transparent; 
    color:black; 
    border:none;    
}

.tab-button-admin-page:hover {
    background-color: rgb(172, 199, 200);
    color: black;
}

.tab-token-container-admin-page {
    word-break: break-all;
}

.info-area-admin-page {
    background-color: rgb(204, 201, 201);
    min-height: 100px;
    padding-top:30px;
}

.button-admin-page {
    color: black;
    font-weight: bold;
    padding-top: 20px
}

.btn-login {
    color: black;
    font-weight: bold;
    padding-top: 30px;
    padding-bottom: 30px;
}


.div-index-admin-page {
    padding-left:50px; 
    padding-right:50px;
}

.footer-admin-page {
    display: inline-block;
}
