﻿html, body, #body {
  margin: 0;
  padding: 0;
  height: 100%;
  -ms-touch-action: none;
  touch-action: none;
}

body, #body, #login-panel, #login-panel {
  min-width: 310px;
}

body {
  overflow: hidden;
}

#fieldBackground {
  height: 135px;
  position: absolute;
  fill: #127AE0;
}

#body {
  background-color: white;
}

#login-panel {
  width: 750px;
  height: 300px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-left: -375px;
  margin-top: -150px;
}

  #login-panel .body {
    padding: 40px;
  }

  #login-panel .content {
    background-color: rgba(28, 28, 28, 0.85);
    margin: 0 auto;
    width: 100%;
    height: 100%;
  }

  #login-panel .footer {
    background-color: rgba(200, 200, 200, 0.1);
    padding: 10px 42px;
    width: 100%;
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
  }

  #login-panel form,
  #login-panel .version,
  #login-panel .version-number,
  #login-panel .logo,
  #login-panel .copyright,
  #login-panel form .fields {
    float: left;
  }

  #login-panel form {
    width: 317px;
    height: 136px;
  }

    #login-panel form .validation-summary-errors {
      position: absolute;
      color: red;
      top: -40px;
      left: 0;
      background: rgb(255, 255, 255);
      background: rgba(255, 255, 255, 0.9);
      height: 40px;
      width: 750px;
      text-align: left;
    }

    /* For Vertical Centering */
    #login-panel form .validation-summary-errors:before {
      content: '';
      display: inline-block;
      height: 100%; 
      vertical-align: middle;
      margin-right: -0.25em;
    }

      #login-panel form .validation-summary-errors .errorText {
        padding-left: 15px;
        font-size: 12px;
        line-height: 16px;
        /* Vertical Centering Properties */
        display: inline-block;
        vertical-align: middle;
      }

    #login-panel form .fields {
      width: 280px;
      margin: 13px 0px 12px 13px;
      position: absolute;
    }

    #login-panel form .fields.noClientId {
      margin-top: 32px;
    }

    #login-panel form label::selection,
    #login-panel form input::selection {
      background: #074E93;
    }

    #login-panel form label::-moz-selection,
    #login-panel form input::-moz-selection {
      background: #074E93;
    }
      
    #login-panel form label {
      display: block;
      float: left;
      width: 50px;
      height: 15px;
      padding-top: 10px;
      padding-left: 2px;
      text-align: left;
      font-family: Arial;
      font-size: 10px;
      color: white;
    }

    #login-panel form input:-webkit-autofill {
      width: 180px;
      height: 30px;
      padding: 0px 10px;
      margin-bottom: 10px;
      background-color: rgba(0,0,0,0);
      border: 0px;
      outline: none;
      color: white !important;
      -webkit-text-fill-color: white !important;
      -webkit-appearance: caret;
      -webkit-touch-callout: none;
      cursor: text;
    }

    #login-panel form input {
      width: 180px;
      height: 30px;
      padding: 0px 10px;
      margin-bottom: 10px;
      background-color: rgba(0,0,0,0);
      border: 0px;
      outline: none;
      color: white !important;
      -webkit-text-fill-color: white !important;
      -webkit-appearance: caret;
      -webkit-touch-callout: none;
      cursor: text;
    }

    #login-panel form .fields.noClientId label[for=Password],
    #login-panel form .fields.noClientId #Password{
      margin-top: 2px;
    }

    #login-panel form hr {
      display: none;
      border: solid 1px black;
      border-top: none;
      margin: 0;
      width: calc(100% - 20px);
    }
    
    #forgotPasswordLink {
      color: #127AE0;
      background: transparent;
      border: none;
      height: 20px;
      font: normal bold 10px Arial;
      cursor: pointer;
      text-decoration: none;
      z-index: 99;
    }
      
/*************Duplicate Login styles*************/
    #login-panel p {
      text-align: left;
      font-family: Arial;
      font-size: 12px;
      color: white;
      line-height: 20px;
    }
      
    #logOutButton {
      margin-top: 10px;
      font-family: Arial;
      font-size: 12px;
      color: white;
      line-height: 25px;
      background-color: #127AE0;
      border: none;
      border-radius: 5px;
      width: 150px;
      cursor: pointer;
    }

    #logOutButton:hover {
      background-color: #3F9AFF;
    }
/*************End Duplicate Login styles*************/
      
/*************Network Login styles*************/
#login-panel #networkLogin {
  width: 75%;
  position: absolute;
  top: 17%;
  padding: 0 12.5%;
}

/*************End Network Login styles*************/
    
@-webkit-keyframes fadeInAndOut {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0;
  }

  20% {
    opacity: 0.3;
  }

  30% {
    opacity: 0.5;
  }

  40% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }

  60% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.3;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeInAndOut {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0;
  }

  20% {
    opacity: 0.3;
  }

  30% {
    opacity: 0.5;
  }

  40% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }

  60% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.3;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

#login-panel .glowableButton {
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  width: 59px;
  height: 59px;
  position: absolute;
  left: 274px;
  top: 29px;
  cursor: pointer;
}

#login-panel .noClientId .glowableButton {
  top: 28px;
}

@-webkit-keyframes radialRotation {
    from {-webkit-transform: rotate(359deg);}
    to   {-webkit-transform: rotate(0deg);}
}
@-moz-keyframes radialRotation {
    from {-moz-transform: rotate(359deg);}
    to   {-moz-transform: rotate(0deg);}
}
@-o-keyframes radialRotation {
    from {-o-transform: rotate(359deg);}
    to   {-o-transform: rotate(0deg);}
}
@keyframes radialRotation {
    from {transform: rotate(359deg);}
    to   {transform: rotate(0deg);}
}

/*********End Login in process Login Button Styling************/
.cornerTitle {
  position: absolute;
  top: 20px;
  right: 20px;
  transform: scale(.35);
  transform-origin: top right;
}

.version {
  background-image: url('../Images/version.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 210px;
  height: 136px;
  padding-left: 60px;
}

.version-number {
  background-image: url('../Images/x.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 82px;
  height: 136px;
  padding-left: 0px;
}

#login-panel .logo {
  background-image: url('../Images/mrilogo.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  width: calc((100vw - 38em)/2 - 48px);
  max-width: 127px;
  min-width: 60px;
  height: 73px;
  margin: 16px;
  z-index: -1;
}

#login-panel .copyright {
  font-family: Arial;
  color: gray;
  font-size: 9px;
  width: 50%;
  padding: 10px 120px;
  margin: 0px;
  text-align: center;
  line-height: 12px;
}

/*Phone default media query*/
@media only screen and (max-width: 750px) {
  #fieldBackground {
    display: none;
  }
  
  #login-panel {
    background-image: none;
    background-size: 1024px 1024px;
    width: 100%;
    height: 100%;
    position: fixed;
    bottom: 0px;
    margin: 0px;
    top: auto;
    left: auto;
  }

    #login-panel .content {
      background-color: transparent;
    }

    #login-panel .body > p {
      background-color: rgba(28, 28, 28, 0.85);
      position: absolute;
      bottom: 75px;
      width: calc(100% - 60px);
      margin-left: 20px;
      padding: 10px;
    }

      #login-panel #Login.noClientId {
        height: 102px;
      }
      
      #login-panel form .validation-summary-errors {
        top: -40px;
        width: 100%;
      }
      


    #login-panel .content #title .version {
      background-size: contain;
      padding: 0px;
      height: 42px;
      width: 110px;
      display: inline-block;
      top: -7px;
      position: relative;
      float: none;
    }

    #login-panel .content #title .version-number {
      background-size: contain;
      width: 60px;
      height: 60px;
      display: inline-block;
      float: none;
    }

    #login-panel .body {
      position: absolute;
      padding: 0px;
      height: calc(100% - 80px);
      width: 100%;
      display: inline-block;
    }

    #login-panel form .fields {
      padding: 10px;
      width: 100%;
      margin: 0;
    }

      #login-panel form .fields.noClientId {
        margin-top: 0;
      }

      #login-panel form .fields label {
        margin: 5px 0;
      }

      #login-panel form .fields div {
        text-align: left;
      }

    #login-panel form input {
      margin: 5px 0;
      width: calc(100% - 95px);
    }

    #login-panel form hr {
      display: block;
    }

    #login-panel form .fields label[for=UserName],
    #login-panel form .fields #UserName{
      margin-bottom: 5px;
      margin-top: 10px;
    }

    #login-panel form .fields label[for=ClientID],
    #login-panel form .fields #ClientID{
      margin-top: 0;
    }

    #login-panel form .fields label[for=Password],
    #login-panel form .fields #Password{
      margin-top: 10px;
    }

  #login-panel .mobile-button {
    display: inline-block;
    width: calc(100% - 40px);
    height: 50px;
    background-color: #CFDB00;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 20px;
    position: absolute;
    bottom: 5px;
    border-radius: 5px;
  }

    #login-panel .mobile-button:hover {
      background-color: #F5F338;
    }

  #login-panel .noClientId .glowableButton,
  #login-panel .glowableButton {
    background-image: none;
    width: 100%;
    top: inherit;
    left: inherit;
    margin: 0;
    height: 50px;
    bottom: -70px;
  }

    #login-panel .glowableButton:before {
      content: "Log On";
    }

    #login-panel .glowableButton.loginWorking:before {
      content: "";
    }

  #login-panel .copyright {
    float: right;
    height: 50px;
    width: 200px;
    padding: 0px;
    margin-top: 5px;
    color: white;
    text-align: right;
  }

  #forgotPasswordLink {
    position: absolute;
    left: 20px;
    bottom: -25px;
  }

  /*************Network Login styles*************/

  #login-panel #networkLogin {
    width: 100%;
    height: calc(100% - 80px);
    top: 0;
    padding: 0;
  }
}

/*Phone landscape media query*/
@media only screen and (max-width: 750px) and (orientation: landscape) {
  #login-panel #Login {
    background-color: #127AE0;
    float: none;
    width: calc(100% - 40px);
    margin: 0px 20px;
    position: absolute;
    bottom: 45px;
  }

  #login-panel .content #title,
  #login-panel .content .cornerTitle {
      display: none;
  }

  #login-panel .footer {
    margin: 0px;
    border: none;
    display: inline-block;
    bottom: -20px;
    background-color: rgba(0, 0, 0, 0.3);
    height: 65px;
    padding-top: 0;
  }
}

/*Phone portrait media query*/
@media only screen and (max-width: 750px) and (orientation: portrait){
  #login-panel #Login {
      background-color: #127AE0;
      float: none;
      width: calc(100% - 40px);
      margin: 0px 20px;
      position: absolute;
      bottom: 85px;
    }

  #login-panel .content #title,
  #login-panel .content .cornerTitle {
    padding-top: 20px;
    height: 212px;
    display: block;
    background-image: url('../Images/darktotransparent.png');
    background-repeat: repeat-x;
    width: 100%;
    position: absolute;
    text-align: center;
    transform: none;
    top: 0;
    right: 0;
  }

   #login-panel .footer {
      margin: 0px;
      padding: 25px;
      border: none;
      display: inline-block;
      bottom: -20px;
      background-color: rgba(0, 0, 0, 0.3);
    }
}

/*Placeholder Text*/
::-webkit-input-placeholder {
   color: #bbbbbb;
   -webkit-text-fill-color:  #bbbbbb;
   font-style: italic;
   font-size: 12px;
   vertical-align: bottom;
}

:-moz-placeholder { /* Firefox 18- */
   color:  #bbbbbb;
   font-style: italic;
   font-size: 12px;  
   vertical-align: bottom;
}

::-moz-placeholder {  /* Firefox 19+ */
   color:  #bbbbbb;
   font-style: italic;
   font-size: 12px;
   vertical-align: bottom;
}

:-ms-input-placeholder {  
   color:  #bbbbbb;
   font-style: italic;
   font-size: 12px; 
   vertical-align: bottom;
}