/* --- GLOBAL STYLES --- */

*:not(input) {
    box-sizing: border-box;
    cursor: default;

    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Likely future */
}

body {
	margin: 0;
    background-color: #bbb;

    /* Font from WebApp*/
    font-family: 'Segoe UI', 'Lucida Grande', 'Open Sans Regular';
    /* Fontsize from Specification*/
    font-size: 12px;
}

p {
    margin: 0;
}

.bold{
    font-weight: bold;
}

.medium{
    font-weight: 500;
}

::-ms-clear {
    display: none;
}

::-ms-reveal {
    display: none;
}

.hidden {
    display: none;
}

/* --- WINDOW / FRAME --- */

#main-window {
    width: 804px;
    height: 513px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
    display: grid;
}

#main-container {
    display: grid;
    grid-template-columns: 145px 258px 401px;
    grid-template-rows: auto 15px;
    grid-template-areas: 
        "license license login" 
        "green blue gray";
    background: #F9F9FA;
    box-sizing: unset;
    color: #51606a;
    border: 1px solid #D0DBE2;
}

#bg-footer-left {
    grid-area: green;
    background-color: #8CBE00;
}

#bg-footer-center {
    grid-area: blue;
    background-color: #50646E;
}

#bg-footer-right {
    grid-area: gray;
    background-color: #7896AA;
}

#right-content-container {
    grid-area: login;
    display: flex;
    flex-direction: column;
    padding: 40px 40px 50px 40px;
}

#form-content-container {
    line-height: 16px;
}


/* --- LICENSE INFO SECTION --- */

#license-content-container {
    grid-area: license;
    padding: 20px 20px 10px 20px;
    line-height: 20px;
    background: #FFF;
}

#license-content div {
    min-height: 16px;
    padding: 2px 0;
}

#logo {
    height: 55px;
    margin-left: 1px;
}

#instance-name{
    height: 20px;
    margin-bottom: 121px;
}

#install-name{
    margin-bottom: 16px;
}

.license-text {
    font-size: 19px;
    margin-bottom: 10px;
}

#license-info-container {
    margin-top: 20px;
}

#license-content-grid{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    height: 80px;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #d0dbe2;
    border-bottom: 1px solid #d0dbe2;
}

.icon-grid-box{
    display: grid;
    justify-items: center;
    line-height: 10px;
}

.icon-grid-box .icon-grid-icon-container{
    height: 24px;
}

.icon-grid-icon {
    height: 40px;
    margin-top: -9px;
}

.icon-grid-box .icon-grid-label{
    font-size: 10px;
    font-weight: bold;
    color: #7896aa;
    margin-top: 5px;
}

#icon-grid-box-middle{
    border-right: 1px solid #d0dbe2;
    border-left: 1px solid #d0dbe2;
}

#module-content-grid{
    display: grid;
    grid-template-columns: 1fr 2fr;
}

#module-icon{
    align-self: end;
}

#module-checkbox-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#module-checkbox-grid #left{
    margin-left: -10px;
    margin-right: 10px;
}

.module-checkbox{
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.module-checkbox .module-checkbox-icon{
    height: 10px;
    margin-right: 5px;
}

.module-checkbox .module-checkbox-text{
    font-size: 10px;
    line-height: 10px;
}

.module-checkbox .checkbox_inactive{
    color: #CDC8CD;
}


/* --- LOGIN SECTION / FORM --- */

#title-text{
    font-size: 27.65px;
    font-weight: 500;
    margin-bottom: 25px;
}

.form-item-container > * {
    display: block;
    margin-bottom: 5px;
}

input {
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

input[type=text], input[type=password] {
	height: 32px;
    width: 100%;
    padding: 0px 6px;
    background-color: #fff;
    border: 1px solid #d0dbe2;
    box-sizing: border-box;
}

input[type=text]:focus, input[type=password]:focus {
    border-color: #8FA8B8;
}

.input_label{
    font-size: 16px;
    margin-bottom: 8px;
}

/* link format (copied from portal pages) */ 
a {
    font-size: 16px;
    margin-top: 20px;
    text-decoration: none;
    color: #51606a;
}

a:hover, a:focus {
    text-decoration: underline;
}
  
a:active, a:hover {
    outline: 0
}

a.action-link {
    color: #8cbe00
}
  
#username_input, #pin_input{
    margin-bottom: 20px;
}

#password_input{
    margin-bottom: 25px;
}

#error-content {
    color: #ad0000;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#login-button {
    font-size: 16px;
    height: 35px;
    padding: 0 20px;
    background-color: #8cbe00;
    border: none;
    transition: all 0.05s;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    margin-top: 7px;
}

#login-button:hover {
    background-color: #749D00;
}

#login-button:focus {
    border-color: #9EA6AE;
}

#login-button:active {
    border-color: #8CB300;
}

#two-factor-form {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 277px;
}


/* --- ABOUT SECTION --- */
.about-text-container{
    display: flex;
    font-size: 14px;
}

.about-text-container .about-text-label{
    width: 110px;
}

.about-text-container #license-link{
    color: inherit;
    text-decoration: underline;
    margin-top: 20px;
    cursor: pointer;
}

#about-close-button{
    font-size: 16px;
    height: 35px;
    padding: 0 20px;
    border: 2px solid #8cbe00;
    transition: all 0.05s;
    border-radius: 3px;
    color: #8cbe00;
    cursor: pointer;
    margin-top: 112px;
}

/* ERROR SECTION */
#error-content-container {
    flex: auto
}


/* CUSTOM CHECKBOX */

#save_credentials_label{
    font-size: 16px;
    margin-left: 6px;
}

.checkbox-container {
    height: 18px;
}

.checkbox input {
    position: absolute; opacity: 0; z-index: -1;
}

.checkbox > div {
    float: left;
    width: 19px;
    height: 19px;
    margin-right: 4px;
    border: 1px solid #d0dbe2;
    background: #fff;
}

.checkbox > div > div {
    width: 100%;
    height: 100%;
}

.checkbox input:checked + div > div {
    background: url('../images/check.svg') no-repeat center;
    background-size: 13px;
    background-position-x: 2px;
}

.checkbox input:focus + div {
    border-color: #9EA6AE !important;
}

.checkbox input:hover + div {
    border-color: #9EA6AE !important;
}

.checkbox input:active + div {
    border-color: #BBB;
    background: transparent linear-gradient(180deg, #fff 0%, #eaeaea 100%) repeat scroll 0% 0%;
}
