@font-face{
    font-family:"ms_sans_serif";
    src: url("../fonts/ms_sans_serif.woff") format(woff),
         url("../fonts/ms_sans_serif.woff2") format(woff2);
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family:"ms_sans_serif";
    src: url("../fonts/ms_sans_serif_bold.woff") format(woff),
         url("../fonts/ms_sans_serif_bold.woff2") format(woff2);
    font-weight: bold;
    font-style: normal;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'ms_sans_serif';
    font-size: 12px;
    word-spacing: 1px;
}

#login_desktop {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    min-height: 240px;
    min-width: 320px;
    background-color: #007f82;
    overflow: auto;
}

#login_window {
    display: flex;
    flex-flow: column;
    z-index: 100;
    height: 100%;
    width: 500px;
    height: 175px;
    background-color: silver;
    border: solid 2px #666;
    box-shadow: 5px 5px 5px;
    overflow: auto;
    position:absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}


#login_top {
    font-family: "ms_sans_serif", Arial;
    font-size: 11px;
    background: linear-gradient(90deg, #000080, #1084d0);
    flex: 0 1 auto;
    width: 100%;
    background-color: #888;
    position: relative;
}

#login_title {
    line-height: 25px;
    color: #fff;
    margin-left: 5px;
    font-weight: bold;
}

#login_buttons {
    position: absolute;
    right: 2px;
    top: 2px;
}

#login_buttons > button {
    height: 20px;
    width: 20px;
    background-color: silver;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
    border: none;
}

#login_buttons > button:active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
}

#login_button_help {
  background-image: url(../assets/help.svg);
}

#login_button_close {
    background-image: url(../assets/close.svg);
    margin-left: 2px;
}

#login_content {
    flex: 1 1 auto;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: row;
}

#img_wrapper{
  margin: 25px 30px 0px 30px;
}

#win_keya {
  width: 45px;
}

#login_central_block{
  width: 100%;
}

#log_cent_blk_p{
  text-align: center;
}


#login-wrapper, #password-wrapper{
  display: flex;
  flex-direction: row;
}


#login-wrapper p, #password-wrapper p {
  width: 75px;
}


#login-wrapper p:first-letter, #password-wrapper p:first-letter {
  text-decoration:underline;
}

#login-wrapper input, #password-wrapper input{
  line-height: 2;
  height: 21px;
  background-color: #fff;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  box-sizing: border-box;
  padding: 3px 4px;
  border: none;
  border-radius: 0;
  margin: auto 0 auto 0;
}



#login_button_block, #button_block_404{
    display: flex;
    flex-direction: column;
}

#login_button_block > button,  #help_button_ok, #error_button_ok, #button_404 {
    height: 23px;
    width: 75px;
    background-color: silver;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    font-family: 'ms_sans_serif';
    font-weight: bold;
    color: transparent;
    text-shadow: 0 0 #222;
    font-size: 12px;
}


#login_button_ok, #help_button_ok, #error_button_ok, #button_404{
  margin: 13px 15px 0px 15px;
  box-shadow: inset -2px -2px #0a0a0a, inset 1px 1px #0a0a0a, inset 2px 2px #fff, inset -3px -3px grey, inset 3px 3px #dfdfdf;
}

#login_button_ok:active, #help_button_ok:active, #error_button_ok:active , #button_404:active{
  box-shadow: inset 2px 2px #0a0a0a, inset -1px -1px #0a0a0a, inset -2px -2px #fff, inset 3px 3px grey, inset -3px -3px #dfdfdf;
}


#login_button_cancel{
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  margin: 10px 15px 0px 15px;
}

#login_button_cancel:active{
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
}


#login_border{
    height: 10px;
    flex: 0 0 auto;
}


#login_help {
    display: none; 
    flex-flow: column;
    z-index: 200;
    width: 400px;
    height: 135px;
    background-color: silver;
    border: solid 2px #666;
    box-shadow: 5px 5px 5px;
    overflow: auto;
    position:fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#login_help > #login_top {
  cursor: move;
}

#help_content {
  display: flex;
  flex-direction: column;
}


#help_content p{
  font-weight: bold;
  margin: 7% auto 0 auto;
}

#help_button_ok{
  margin: 29px 0 0 73%;
}


#login_error {
    display: none; 
    flex-flow: column;
    z-index: 200;
    width: 400px;
    height: 135px;
    background-color: silver;
    border: solid 2px #666;
    box-shadow: 5px 5px 5px;
    overflow: auto;
    position:fixed;
    top: 35%;
    left: 56%;
    transform: translate(-50%, -50%);
}

#login_error > #login_top {
  cursor: move;
}


#win_x {
  width: 45px;
  position: absolute;
  margin-top: 40px;
  margin-left: 40px;
}


#error_content{
  display: flex;
  flex-direction: column;
}

#error_button_ok{
  margin: 29px auto 0 auto;
}


#error_content_p{
  margin: 7% auto 0 auto;
}


#central_block_404{
  width: 100%;
  margin-top: 45px;
  font-weight: bold;
}

#img_wrapper_404{
  margin: 40px 0px 0px 50px;
}

#button_block_404{
  margin-top: 40px;
  margin-right: 30px;
}
