/*
 * Login screens: the desktop login (/login/index) and the technician login
 * the tablet uses (/login/index_mobile).
 *
 * Kept separate from tanknology-login.css, which the forbidden page and the
 * MC and PIMS password prompts still use with their older look.
 *
 * Bootstrap 3.3.2 supplies the layout and form classes; everything here is
 * either a brand colour or a softening of a Bootstrap default.
 */

html, body{
  height:100%;
}

body{
  margin:0;
  background-color:#f4f6f8;
  color:#1f2d3d;
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* Centres the card without the old absolutely-positioned .login block.
   margin:auto on the card keeps it horizontally centred if flexbox is
   unavailable. */
.login-page{
  min-height:100%;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-align:center;
  -ms-flex-align:center;
  align-items:center;
  -webkit-box-pack:center;
  -ms-flex-pack:center;
  justify-content:center;
  padding:40px 15px;
}

.login-card{
  width:100%;
  max-width:400px;
  margin:0 auto;
  padding:36px 34px 30px;
  background-color:#fff;
  border:1px solid #e5e9ef;
  border-radius:10px;
  box-shadow:0 1px 3px rgba(16,32,52,.06), 0 12px 28px rgba(16,32,52,.08);
}

.login-brand{
  text-align:center;
  margin-bottom:28px;
}

.login-brand img{
  width:190px;
  max-width:100%;
}

/* Only the tablet login carries a title under the logo. */
.login-title{
  margin-top:14px;
  font-size:20px;
  font-weight:600;
  color:#1f2d3d;
}

.login-version{
  margin-top:8px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  color:#b5b7ba;
  text-align:right;
}

.login-card .form-group{
  margin-bottom:18px;
}

.login-card .control-label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  color:#6b7785;
}

.login-card .form-control{
  height:44px;
  padding:10px 14px;
  font-size:15px;
  color:#1f2d3d;
  background-color:#fff;
  border:1px solid #d7dde5;
  border-radius:6px;
  box-shadow:none;
  -webkit-transition:border-color .15s ease, box-shadow .15s ease;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.login-card .form-control:focus{
  border-color:#8bc9ba;
  outline:0;
  box-shadow:0 0 0 3px rgba(139,201,186,.35);
}

.password-field{
  position:relative;
}

.password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  width:32px;
  height:32px;
  padding:0;
  color:#6b7785;
  background:transparent;
  border:0;
  border-radius:4px;
  transform:translateY(-50%);
}


/* Employee picker + refresh button on the tablet login. Bootstrap's
   input-group replaces the old inline-block/float pair; these rules only
   match the taller .form-control and the 6px radius used above. */
.login-card .input-group{
  width:100%;
}

.login-card .input-group-btn .btn{
  height:44px;
  padding:0 14px;
  font-size:16px;
  line-height:42px;
  color:#6b7785;
  background-color:#fff;
  border:1px solid #d7dde5;
  border-top-right-radius:6px;
  border-bottom-right-radius:6px;
}

/* Font Awesome sets line-height:1 on .fa, and the icon is an inline-block
   sitting on the line box's baseline rather than at its centre, which leaves
   it riding ~13px high in a 44px button. Giving the icon the button's own
   line-height and aligning it to the top centres it exactly. */
.login-card .input-group-btn .btn .fa{
  line-height:42px;
  vertical-align:top;
}

.login-card .input-group-btn .btn:hover,
.login-card .input-group-btn .btn:focus{
  color:#1f2d3d;
  background-color:#f4f6f8;
}

/* #8bc9ba is the Englobe logo green; it is too light to carry white text, so
   the button uses a darkened version of it and keeps the logo green for the
   focus ring. */
.btn-brand{
  height:46px;
  padding:0 16px;
  font-size:15px;
  font-weight:600;
  color:#fff;
  background-color:#2f8570;
  border:1px solid #2f8570;
  border-radius:6px;
  -webkit-transition:background-color .15s ease, border-color .15s ease;
  transition:background-color .15s ease, border-color .15s ease;
}

.btn-brand:hover,
.btn-brand:focus{
  color:#fff;
  background-color:#26705e;
  border-color:#26705e;
}

.btn-brand:focus{
  outline:0;
  box-shadow:0 0 0 3px rgba(139,201,186,.4);
}

.btn-brand:active,
.btn-brand.active{
  color:#fff;
  background-color:#215f50;
  border-color:#215f50;
  box-shadow:none;
}

.login-help{
  margin-top:16px;
  text-align:center;
  font-size:13px;
}

.login-help a{
  color:#2f8570;
}

.login-message{
  margin-bottom:18px;
  padding:10px 12px;
  border-radius:6px;
  font-size:13px;
  line-height:1.4;
}

.login-message.error{
  color:#8a1f1f;
  background:#fcebea;
  border:1px solid #f3c5c2;
}

.login-message.notice{
  color:#276749;
  background:#edf8f1;
  border:1px solid #c5e8d1;
}

/* "Back to main menu", shown only when the tablet login is served from the
   server rather than from a tablet. */
.login-footer{
  margin-top:14px;
  padding-top:16px;
  border-top:1px solid #eef1f5;
}

.login-footer .btn{
  height:42px;
  padding:0 16px;
  font-size:14px;
  line-height:40px;
  color:#6b7785;
  background-color:#fff;
  border:1px solid #d7dde5;
  border-radius:6px;
}

.login-footer .btn:hover,
.login-footer .btn:focus{
  color:#1f2d3d;
  background-color:#f4f6f8;
}

@media (max-width:480px){
  .login-card{
    padding:28px 22px 24px;
  }
}
