/* fonts ***************************************/
@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/opensans/opensans-regular-webfont.woff2') format('woff2'),
         url('/fonts/opensans/opensans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/opensans/opensans-bold-webfont.woff2') format('woff2'),
         url('/fonts/opensans/opensans-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
  font-family: 'Raleway';
  src: url('/fonts/raleway/raleway-regular-webfont.woff2') format('woff2'),
  url('/fonts/raleway/raleway-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/raleway-bold-webfont.woff2') format('woff2'),
         url('/fonts/raleway/raleway-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;

}


/* html tags ***********************************/
* {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

html {
  height: 100%;
}

body {
  color: #666666;
  font-size: 12px;
  margin: 0;
  min-height: 100%;
  padding: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

a {
  color: #36bed6;
  cursor: pointer;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Raleway, 'Open Sans', sans-serif;
}


/* buttons *************************************/
.btn {
  background: #ffffff;
  border: 1px solid #97dfeb;
  color: #36bed6;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  height: 30px;
  min-width: 120px;
  padding-left: 20px;
  padding-right: 20px;
  text-transform: uppercase;
}

.btn + .btn {
  margin-left: 10px;
}

.btn.primary {
  background: #36bed6;
  color: #ffffff;
}

.btn-normal-case {
  text-transform: none;
}

.btn:hover, .btn:active, .btn:focus, .btn.active {
  background-color: #eaf6fa;
  color: #36bed6;
}

.btn-group {
  font-size: 0;
}

.btn-group > .btn + .btn {
  margin-left: 0;
}

.btn-group > .btn:nth-of-type(1) {
  border-bottom-left-radius: 15px;
  border-top-left-radius: 15px;
}
.btn-group > .btn:nth-last-of-type(1) {
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
}

/* input ***************************************/
input {
  border: 1px solid #97dfeb;
  color: #666666;
  font-size: 12px;
}

input[type='text'],
input[type='password'] {
  height: 30px;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

input[type='radio'] {
  cursor: pointer;
}

textarea {
  border: 1px solid #e1e1e1;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #cccccc;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #cccccc;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #cccccc;
}
:-moz-placeholder { /* Firefox 18- */
  color: #cccccc;
}


/* select **************************************/
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #ffffff;

  /* arrow */
  background-image:
    linear-gradient(55deg, transparent 55%, #36bed6 50%),  /* left side of arrow */
    linear-gradient(125deg, #36bed6 50%, transparent 50%),  /* right side of arrow */
    linear-gradient(to bottom, #36bed6, #36bed6),  /* left border of arrow box */
    linear-gradient(to right, #eaf6fa, #eaf6fa);  /* border box background */
  background-position:
    calc(100% - 14px) calc(50% + 1px),
    calc(100% - 7px) calc(50% + 1px),
    calc(100% - 30px) 0,
    100% 0;
  background-size:
    7px 7px,
    7px 7px,
    1px 30px,
    30px 30px;
  background-repeat: no-repeat;
  border: 1px solid #97dfeb;
  border-radius: 0;
  color: #666666;
  font-size: 12px;
  height: 30px;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

select::-ms-expand {
  display: none;
}

option {
  color: #666666;
}

select.placeholder {
  color: #cccccc;
}

option[value=''][disabled] {
  display: none;
}


/* forms ***************************************/
.form-group {
  margin-bottom: 20px;
  position: relative;
}

hr {
  border-top: 1px solid #e1e1e1;
  color: #e1e1e1;
}

.hr-text {
  color: #e1e1e1;
  border: 0;
  height: 1.5em;
  line-height: 1em;
  opacity: .5;
  outline: 0;
  position: relative;
  text-align: center;
}

.hr-text:before {
  /* use the linear-gradient for the fading effect
     use a solid background color for a solid bar */
  background: #e1e1e1;
  content: '';
  height: 1px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
}

.hr-text:after {
  /* this is really the only tricky part, you need to specify the background color of the container element... */
  background-color: #ffffff;
  color: #666666;
  content: attr(data-content);
  display: inline-block;
  line-height: 1.5em;
  padding: 0 .5em;
  position: relative;
}


/* dialog **************************************/
.dialog-overlay {
  background: rgba(0, 0, 0, 0.3);
  bottom: 0;
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1001;
}

.dialog {
  background: #ffffff;
  border-radius: 12px;
  height: 220px;
  left: 50%;
  margin-left: -200px;
  margin-top: -110px;
  top: 50%;
  position: absolute;
  width: 400px;
  z-index: 1002;
}

.dialog > .title {
  border-bottom: 1px solid #e1e1e1;
  font-family: Raleway, sans-serif;
  font-size: 20px;
  padding: 20px 30px 15px 30px;
}

.dialog > .title > * {
  line-height: 28px;
  vertical-align: middle;
}

.dialog > .content {
  padding: 20px 30px 20px 30px;
}

.dialog > .buttons {
  bottom: 30px;
  position: absolute;
  right: 30px;
}


/* login window ********************************/
#login-window {
  background: #ffffff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.50);
  height: 450px;
  margin-left: -225px;  /* width / 2 */
  margin-top: -255px;   /* height / 2 */
  position: fixed;
  left: 75%;
  top: 50%;
  width: 450px;
}

#login-window > header {
  background: #b32317 radial-gradient(circle at center, #e10000 0%, #b32317 100%);
  border-bottom: 1px solid #e1e1e1;
  height: 150px;
  line-height: 150px;
  text-align: center;
}

#login-window > header > .logo {
  display: block;
  height: 150px;
  margin: 0 auto;
  width: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#login-window > form {
  margin: 60px 100px;
}

#login-window > form > .saml {
  display: none;
  text-align: center;
}

#login-window > form > .saml > button {
  margin-bottom: 30px;
}

#login-window > form > .saml > hr {
  margin-bottom: 30px;
}

#login-window > form > .buttons {
  margin-top: 25px;
  text-align: center;
}

#error_container {
  display: block;
  text-align: center;
  color: #666;
  background-color: #f2dede;
  padding: 8px 35px 8px 14px;
  margin-bottom: 16px;
}
#login-window > form > #error_container {
  margin-top: 20px;
}

#applications-page > #error_container {
  margin-top: 48px;
}

#error_container.hide {
  display: none
}

/* two-factor page ******************************/
#two-factor-page > #login-window > form {
  text-align: center;
}

#two-factor-page > #login-window .two-factor-header > .icon {
  background: #ffffff;
  left: 50%;
  margin-left: -22.5px;
  margin-top: -35px;
  position: relative;
  text-align: center;
  width: 55px;
}

#two-factor-page > #login-window > form > h3 {
  font-weight: bold;
}

#two-factor-page > #login-window > form > .reset-link {
  margin-top: 10px;
  margin-botom: 10px;
}

/* applications page ****************************/
/* applications page - header *********/
#applications-page > header {
  background: #333333;
  clear: both;
  height: 48px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1;
}

#applications-page > header > .logo {
  background: #b32317 radial-gradient(circle at center, #e10000 0%, #b32317 100%);
  float: left;
  height: 48px;
  padding: 5px;
  position: relative;
  vertical-align: middle;
  width: 234px;
}

#applications-page > header > .logo > .image {
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

#applications-page > header > .title {
  color: #ffffff;
  float: left;
  font-size: 16px;
  line-height: 48px;
  margin-left: 20px;
}

#applications-page > header > .account {
  color: #ffffff;
  float: right;
}

#applications-page > header > .account > .user {
  display: inline-block;
  line-height: 48px;
  margin-right: 30px;
}

#applications-page > header > .account > a {
  color: #ffffff;
  display: inline-block;
  font-size: 16px;
  line-height: 48px;
  text-decoration: none;
}

#applications-page > header > .account > a > svg {
  height: 16px;
  vertical-align: middle;
  width: 16px;
}

#applications-page > header > .account > .account-menu-button {
  padding: 0 10px;
}

#applications-page > header > .account > .search-button {
  padding: 0 20px;
}

#applications-page > header > .account > .hide-search-button {
  padding: 0 24px;
}

#applications-page > header > .account > .search-button.hide {
  display: none;
}

#applications-page > header > .search {
  background: #ffffff;
  bottom: 0;
  display: block !important;
  left: 0;
  position: absolute;
  right: 60px;
  top: 0;
  transition: left 0.25s ease-out;
  z-index: 2;
}

#applications-page > header > .search.hide {
  left: 100%;
}

#applications-page > header > .search > input {
  border: 0;
  font-size: 18px;
  height: 48px;
  line-height: 48px;
  outline: none;
  padding-left: 35px;
}

#applications-page > header > .search.hide > input {
  padding: 0;
}

#applications-page > #account-menu {
  background: #f2f2f2;
  height: 0px;
  left: auto;
  overflow: hidden;
  padding: 0;
  position: fixed;
  right: 0;
  top: 48px;
  transition: height 0.25s ease-out;
  width: 175px;
}

#applications-page > #account-menu > a {
  color: #666666;
  display: block;
  padding: 15px 25px;
}

/* applications page - body ***********/
#applications-page > #applications {
  padding: 138px 30px 30px 30px;
}

/* applications page - tabs ***********/
#applications-page > #applications .tabs > .tab-bar {
  font-size: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

#applications-page > #applications .tabs > .tab-bar > .tab {
  background: #36bed6;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  padding: 10px 18px 7px 18px;
  text-decoration: none;
}

#applications-page > #applications .tabs > .tab-bar > .tab + .tab {
  margin-left: 1px;
}

#applications-page > #applications .tabs > .tab-bar > .tab.active {
  background: #ffffff;
  color: #36bed6;
}

#applications-page > #applications .tabs > .tab-bar > .tab-search {
  display: none;
}

#applications-page > #applications .tabs > .tab-container {
  background: #ffffff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.50);
  display: none;
  font-size: 0;
  min-height: 308px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 35px 25px;
}

#applications-page > #applications .tabs > .tab-container.active {
  display: block;
}

#applications-page > #applications .tabs > .tab-container > h2 {
  font-size: 18px;
  font-weight: normal;
  margin: 25px 25px 0 25px;
}

#applications-page > #applications .tabs > .tab-container > .app {
  display: inline-block;
  font-size: 12px;
  margin: 18px 0 32px 0;
  text-align: center;
  text-decoration: none;
  vertical-align: top;
}

#applications-page > #applications .tabs > .tab-container > .app > .icon {
  background: #f2f2f2;
  border: 1px solid #e1e1e1;
  display: block;
  height: 100px;
  line-height: 100px;
  margin: 0 25px;
  text-align: center;
  width: 100px;
}

#applications-page > #applications .tabs > .tab-container > .app > .icon > img {
  max-height: 64px;
  max-width: 64px;
  vertical-align: middle;
}

#applications-page > #applications .tabs > .tab-container > .app > .name {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 150px;
}

#applications-page > #applications .tabs > .tab-container > .app > .caption {
  color: #999999;
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 150px;
}




/* saml ****************************************/
#login-window.saml {
  height: 530px;
  margin-top: -290px;
}

#login-window.saml > form {
  margin: 40px 100px;
}

#login-window.saml > form > .saml {
  display: block;
}

/* ipad ****************************************/
@media (min-width: 768px) and (max-width: 1024px) {
 #login-window {
   left: 66%;
 }
}


/* iphone **************************************/
@media (max-width: 767px) {
  #login-window, #login-window.saml {
    bottom: 0;
    box-shadow: none;
    height: auto;
    left: 0;
    margin-left: 0;
    margin-top: 0;
    right: 0;
    top: 0;
    width: 100%;
    overflow: scroll;
  }

  body #login-window > header {
    background-repeat: no-repeat;
    background-position: 30% 30%;
    background-size: cover;
  }

  #login-window > header, #login-window > header > .logo {
    height: 266px;
  }

  #login-window.saml > header, #login-window.saml > header > .logo {
    height: 150px;
  }

  #login-window > form {
    margin: 40px 40px;
  }

  #login-window.saml > form {
    margin: 30px 40px;
  }

  #login-window > form > .saml > button {
    margin-bottom: 15px;
  }

  #login-window > form > .saml > hr {
    margin-bottom: 15px;
  }

  #login-window > form > .buttons {
    text-align: center;
    margin-top: 25px;
  }

  #login-window > form > .buttons > button:nth-of-type(1) {
    float: none;
  }

  #login-window > form > .buttons > button:nth-of-type(2) {
    float: none;
    margin-left: 10px;
  }

  #applications-page > header {
    background: #b32317 radial-gradient(circle at center, #e10000 0%, #b32317 100%);
  }

  #applications-page > header > .logo {
    display: none;
  }

  #applications-page > header > .account > .user {
    display: none;
  }

  #applications-page > #account-menu {
    left: 0;
    width: auto;
  }

  #applications-page > #applications {
    padding: 138px 20px 20px 20px;
  }

  #applications-page > #applications .tabs > .tab-container {
    min-height: 90px;
    padding: 0;
  }

  #applications-page > #applications .tabs > .tab-container > h2 {
    display: none;
  }

  #applications-page > #applications .tabs > .tab-container > .app {
    border-bottom: 1px solid #e1e1e1;
    display: block;
    margin: 0;
    padding: 20px;
    text-align: left;
  }

  #applications-page > #applications .tabs > .tab-container > .app:nth-last-of-type(1) {
    border-bottom: 0;
    margin-bottom: 0;
  }

  #applications-page > #applications .tabs > .tab-container > .app:after {
    clear: both;
    content: "";
    display: table;
  }

  #applications-page > #applications .tabs > .tab-container > .app > .icon {
    float: left;
    height: 42px;
    line-height: 36px;
    margin: 0 15px 0 0;
    width: 42px;
  }

  #applications-page > #applications .tabs > .tab-container > .app > .icon > img {
    max-height: 32px;
    max-width: 32px;
  }

  #applications-page > #applications .tabs > .tab-container > .app > .name {
    margin-top: 10px;
    width: 235px;
  }

  #applications-page > #applications .tabs > .tab-container > .app.includes-caption > .name {
    margin-top: 0;
  }

  #applications-page > #applications .tabs > .tab-container > .app > .caption {
    width: 235px;
  }
}

/* iphone 5/6SE **************************************/
@media (max-width: 320px) {
  #login-window > header, #login-window > header > .logo {
    height: 140px;
  }

  #login-window.saml > header, #login-window.saml > header > .logo {
    height: 70px;
  }

  #login-window > form {
    margin: 20px 30px;
  }

  #login-window.saml > form {
    margin: 20px 30px;
  }

  #login-window > form > .saml > button {
    margin-bottom: 10px;
  }

  #login-window > form > .saml > hr {
    margin-bottom: 10px;
  }


  #applications-page > #applications {
    padding: 75px 20px 20px 20px;
  }

}
