* {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

@-webkit-viewport {
  width: device-width;
}

@-ms-viewport {
  width: device-width;
}

@-o-viewport {
  width: device-width;
}

@viewport {
  width: device-width;
}


/* Begin clearfix */

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    *zoom: 1;
}

/* End clearfix */



    html, body { margin:0; padding:0; height:100%;}
    #main-wrap {min-height: 100%; position: relative; overflow:visible}
    footer {position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;}


  #main-wrap {
      background-color: #2F2965;
      background-attachment: fixed;
  }

   header {
  top: 0px;
  left: 0px;
  right: 0px;}

  .main {

      overflow: visible;
  }

  section {
      margin-top: 20px;
      margin-bottom: 110px;
  }


  #main-wrap>footer {
      background-color: #ffffff22;
      position: absolute;
      border: none;

  }

  #main-wrap>footer p {
      color: white !important;
  }

   #main-wrap>footer a {
      color: white !important;
  }





/* IE6/7/8/9 disable */
#disabledLogin {
  background: #fff5f5;
  border: 2px solid #f88;
  display: none;
}

.ie6 #disabledLogin, .ie7 #disabledLogin,.ie8 #disabledLogin, .ie9 #disabledLogin, .oldie #disabledLogin {
  display: block;
}

.ie6 #loginSection, .ie7 #loginSection,.ie8 #loginSection, .ie9 #loginSection {
  display: none !important;visibility: hidden;
}


.ie6 #notificationSection, .ie7 #notificationSection,.ie8 #notificationSection, .ie9 #notificationSection {
  display: none !important;visibility: hidden;
}

section {
  background: #fff;
  background-clip: padding-box;
  -webkit-border-radius: 4px;
          border-radius: 4px;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
          box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  margin: auto;
  max-width: 700px;
    padding-top: 0px;
    padding-bottom: 0px;
  padding: 0.5em;
  text-align: center;
  width: 100%;
    margin-top: 20px;
    margin-bottom: 110px;
}


  section footer {
    font-size: 1em;
    margin: 0;
    padding: 0.5em;
      position: static;
  }



section ul {
  -webkit-box-shadow: 0px 31px 24px -36px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0px 31px 24px -36px rgba(0, 0, 0, 0.3);
          box-shadow: 0px 31px 24px -36px rgba(0, 0, 0, 0.3);
  list-style: none;
  margin: 0;
  padding: 1em 0.5em 0.5em 0.5em;
}

  section li {
    position: relative;
    margin: 0 0;
    padding: 0.4em 0.5em 0.5em 2.7em;

    background: 0.4em center no-repeat;
    background-size: 2em auto;
    font-size: 1.7em;
    text-align: left;
    cursor: pointer;
  }

    section li.application:hover {
      background-color: #8881;
      -webkit-border-radius: 4px;
              border-radius: 4px;
    }

    section li div.appName {
      font-size: 0.85em;
      color: #2F2965;
        font-weight: 400;

    }

    section li div.appDescription {
      font-size: 0.46em;
      color: #666;
    }

#loadingIndicator {
  color: #888;
  font-size: 1.3em;
  padding: 0.6em;
}

.forgot-password-label {
  color: #888;
  float: right;
  font-size: 0.9em;
}

.forgot-password {
  color: #888;
  display: none;
}

.notification {
  color: #C00;
  font-size: 1em;
  line-height: 2em;
  margin: 0.25em 0 0.5em 0;
}


.wrapper {
  display: table;
  height: 100%;
  width: 100%;
}

.cell {
  align: center;
  display: table-cell;
  height: 100%;
  vertical-align: middle;
}

.alert-list {
 overflow: auto;
max-height: 128px;
}

form {
  margin: auto;
  padding: 10px 0;
  width: 95%;
}

 fieldset {
    padding: 0 0 0.5em 0;
    border: none;
    font-size: 1em;
  }

    label {
      display: inline-block;
      float: left;
      padding: 0.75em 0 0 0.25em;
      width: 100%;

      color: #2F2965;
      text-align: left;
      font-size: 1em;
    }

    input, select {
      color: #2F2965;
      font-size: 1.5em;
      font-family: "Ubuntu", helvetica;
      font-weight: lighter;
      height: 2em;
    }

    input {
      float: left;
      margin: 0;
      padding: 0.3em;
      width: 100%;

      border: 1px solid #ced3e7;
      -webkit-border-radius: 5px;
         -moz-border-radius: 5px;
              border-radius: 5px;

      -webkit-appearance: none;
        min-width: 0;
        max-width: 100%;
    }

    select {
      position: relative;
      border: 1px solid #ced3e7;
      left: -3px;
      margin: 0;
      padding-left: 0.25em;
      width: 100%;

      -webkit-border-radius: 5px;
         -moz-border-radius: 5px;
              border-radius: 5px;

      -moz-appearance: none;
    }

    .ff #organizations {
      padding-top: 0.5em;
    }

/**
Adding all these media queries to prevent zooming on iOS devices while maintaining correct height for inputs
so that label and inputs align
*/
#divLogin input {
  font-size: 16px; /* Prevents zooming on phone-sized devices */
}

@media (min-width: 640px) {
  #divLogin input {
    height: 2.65em; /* Fix height for tablet-sized devices */
  }
}

@media (min-width: 800px) {
  #divLogin input {
    height: 2em;
    font-size: 2em; /* Fix height for larger tablet-sized devices and above */
  }
}


section footer {
  clear: both;

  margin: 0.5em auto 0 auto;
  text-align: center;
  width: 100%;
}

  section footer.actions {
    padding: 0;
  }

  section footer.actions a.button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #000;
    cursor: pointer;
    display: inline-block;
    padding: 0.6em;
    margin: 0.25em 0.25em;
    text-decoration: none;

    -webkit-border-radius: 3px;
       -moz-border-radius: 3px;
            border-radius: 3px;
  }

  section footer.actions a.button:hover {
    background-color: #2F2965;
    background-image: linear-gradient(to bottom, #2f296587, #2F2965);
    border-color: #2F2965;
    color: #eee;
    text-decoration: none;
  }

  section footer.actions a.button:active {
    background-image: linear-gradient(to bottom, #2f296557, #2F2997);
    text-decoration: none;
  }




@media only screen and (max-width: 639px) {
    section {
        width: auto;
        margin-left: 10px;
        margin-right: 10px;
    }
}


@media only screen and (min-width: 640px) {


    fieldset {
      margin: 0em 0 2em 0;

      font-size: 0.8em;
    }

    section label {
      margin: 0;
      padding: 0 1em 0 0;
      width: 25%;
      height: 4em;

      -webkit-border-radius: 5px 0 0 5px;
              border-radius: 5px 0 0 5px;

      background: #2F2965;

      color: #fff;
      font-size: 1em;
      line-height: 1em;
      text-align: right;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    section input {
      width: 75%;

      border-left: none;

      -webkit-border-radius: 0 5px 5px 0;
              border-radius: 0 5px 5px 0;

      font-size: 2em;
    }

    .organization-list select {
      height: 51px;
      width: 79%;

      -webkit-border-radius: 0 5px 5px 0;
              border-radius: 0 5px 5px 0;

    }

    .ff #organizations {
      padding-top: 0.9em;
    }

  #districtLogoHolder {
    display: block;
  }

  h1 {
    height: 70px;
  }


  section {
    max-width: 650px;
  }

  .forgot-password-label {
    display: none;
  }

  .forgot-password {
    display: inline;
  }

}


@media only screen and (min-width: 800px) {
  section li {
    float: left;
    margin: 0em 0;
    min-height: 3.5em;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    width: 50%;
  }
}
