//! (C) Copyright 2020 Hewlett-Packard Enterprise Company, L.P.

@import "hp-piano-mixins";

#hp-login-page, #hp-initial-password-page {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 30px;
  padding-left: 80px;
  @include box-sizing(border-box);
  background-color: #fff;
  font-family: 'HPRegular', Arial, Helvetica, sans-serif;
  overflow: auto;
  
  > header {
    margin-bottom: 40px;
    width: 400px;
    
    .hp-logo {
      width: 50px;
      height: 50px;
      background-position: -260px -180px;
    }
    .hp-login-header {
      margin-top: 20px;
      font-family: 'HPLight', Arial, Helvetica, sans-serif;
      font-size: 64px;
      line-height: normal;
      color: #000;
      border-top: 5px solid #0096D6;
    }
    #hp-login-alternate {
    }
    .hp-login-sub-header {
      display: block;
      float: right;
      font-size: 20px;
      color: $secondary-color;
    }
  }
  
  #hp-security-notice {
    margin-top: -20px;
    width: 400px;
  }
  
  #hp-login-status {
    height: auto;
    text-align: left;
    margin: 20px 0px;
    padding: 15px;
    width: 400px;
    color: $attention-color;
    background-color: $attention-background;
    font-family: Arial, Helvetica, sans-serif;
    
    .hp-status {
      display: inline-block;
      margin-left: 0px;
      margin-top: 2px;
      margin-right: 5px;
      vertical-align: top;
    }
    
    label, .hp-message {
      display: inline-block;
      font-weight: bold;
      margin-bottom: 5px;
      white-space: normal;
    }
    
    .hp-message {
      max-width: 360px;
    }
  }
  
  #hp-login-hero {
    position: absolute;
    left: 500px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    min-height: 600px;
    background-image: url($img-dir + '/../login_hero.png');
    background-repeat: no-repeat;
  }
}

#hp-login-form {
  width: 400px;
  margin-bottom: 30px;
  
  ol li {
    padding: 0px;
    margin: 10px 0px;
    
    input, .selectBox {
      width: 100%;
      margin: 0px;
      height: auto; //32px;
      margin-bottom: 5px;
      padding: 7px 13px;
      border-color: #999;
      font-size: 20px;
      line-height: normal;
      font-family: 'HPRegular', Arial, Helvetica, sans-serif;
      
      &.valid {
        background-image: none;
      }
      
      &.hp-error {
        background-position: right 8px;
      }
    }
    
    .selectBox { 
      @include box-sizing(border-box);
      margin-bottom: 0; 
      
      .selectBox-arrow {
        top: 5px;
      }                   
    }
    
    .hp-form-content {
      > span {
        padding: 0px 13px;
        font-size: 20px;
        line-height: normal;
        font-family: 'HPRegular', Arial, Helvetica, sans-serif;
      }
      label.hp-error {
        padding: 0px 16px;
      }
    }
    
    label {
      display: none;
    }
    
    &.hp-unset-inactive {
      position: relative;
      
      > label {
        position: absolute;
        top: 12px;
        left: 15px;
        display: block;
        font-family: 'HPRegular', Arial, Helvetica, sans-serif;
        font-size: 20px;
        color: #ccc;
      }
    }
  }
  
  .hp-buttonset {
    display: inline-block;
    vertical-align: middle;
    
    #hp-login-button, #hp-initial-password-button {
      height: 32px;
    }
  }
}

#hp-initial-password-form {
  width: 200px;
  margin: 0px auto;
  text-align: left;
  
  li {
    position: relative;
    margin-bottom: 5px;
    
    label {
      display: block;
      margin-bottom: 5px;
    }
    input {
      margin-top: 0px;
      margin-left: 0px;
      width: 100%;
      &:disabled {
        border-color: #fff;
      }
    }
    label.hp-error {
      position: absolute;
      left: 210px;
      top: 30px;
      color: #f99;
      width: 200px;
    }
  }
  
  .hp-buttonset {
    text-align: right;
  }
}

#hp-initial-password-form-heading {
  margin: 0px auto 20px auto;
  text-align: center;
}

.hp-replace-logout-button {
  text-align: center;
}
