/*
 * Copyright (C) 2012 University of Dundee & Open Microscopy Environment.
 * All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

html {
  height: 100%;
}

html body {
  font-size: 62.5%;
}

body {
  color: #555555;
  -webkit-font-smoothing: antialiased;
  /* Deliciously smooths text for webkit browsers */
  font-family: "HelveticaNeue-Medium", Helvetica, Arial, Verdana, Lucida,
    sans-serif;
  height: 100%;
  padding: 0px;
  margin: 0px;
  position: relative;
  background: hsl(215, 9%, 88%);
  -webkit-transition: color 0.2s linear;
  transition: color 0.2s linear;
}

a:hover,
a,
a:visited {
  color: #1b7bc7;
  color: hsl(207, 60%, 40%);
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;
  text-decoration: none;
}

h1 {
  font-size: 15px;
  text-align: left;
  margin: 0;
  padding: 10px 0;
}

h1.page_title {
  border-bottom: solid 1px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

h2 {
  font-size: 1.1em;
  line-height: 1.6em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
  text-transform: uppercase;
  color: hsl(210, 7%, 60%);
  font-weight: bold;
  margin-bottom: 6px;
}

p,
dl {
  font-size: 1.2em;
  line-height: 1.4em;
  margin-bottom: 15px;
}

h1 p {
  margin-bottom: 0;
}

dl {
  overflow: hidden;
}

dt,
dd {
  display: inline-block;
}

dt {
  width: 30%;
}

dd {
  width: 69%;
}

strong {
  font-weight: bold;
}

ul.errorlist {
  list-style: none;
  margin: 0;
  color: #e3646f;
}

label {
  font-weight: bold;
}

.clear {
  clear: both;
  width: 0px;
  margin: 0px;
  padding: 0px;
}

.form_error {
  background-color: hsl(0, 30%, 80%);
}

.error,
.form_error {
  color: #e3646f;
  line-height: 1.3em;
  padding: 5px;
  -webkit-border-radius: 2px;
  -webkit-border-radius: 2px;
  /* Saf3+, Chrome */
  -moz-border-radius: 2px;
  /* FF1+ */
  border-radius: 2px;
  /* Opera 10.5, IE 9 */
  font-size: 1.1em;
}

.disabled {
  background: #dcdcdc;
  color: #777777;
}

.toolbar_noborder {
  height: 19px;
  padding: 5px;
}

.align_left {
  float: left;
}

.align_right {
  float: right;
  text-align: right;
}

.align_center {
  text-align: center;
}

/* hidden div to specify which parent tab is 'current' */
#parent_id {
  display: none;
}

/* used by the dialog in popup.js 
.ui-dialog-titlebar { background: gray; color: white } */

.absolute_fill {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  overflow: auto;
}

body {
  background: #e0e4ea;
  height: 0%;
}

.login-logos {
  width: 100%;
  height: 10%;
  position: relative;
  text-align: center;
}

.custom_logo {
  position: absolute;
  bottom: 100%;
  width: 100%;
  text-align: center;
}

#login {
  width: 370px;
  margin: 0 auto;
  color: #333;
}

#login form {
  border: solid 1px #a4a4a5;
  background: #f4f4f5;
  padding: 30px 50px;
  -webkit-border-radius: 5px;

  -webkit-border-radius: 5px;
  /* Saf3+, Chrome */
  -moz-border-radius: 5px;
  /* FF1+ */
  border-radius: 5px;
  /* Opera 10.5, IE 9 */
  border-radius: 5px;
  background: hsl(215, 4%, 96%);
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);

  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  /* Saf3.0+, Chrome */
  -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  /* FF3.5+ */
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  /* Opera 10.5, IE 9.0 */

  border-top: solid 1px white;
  border-right: solid 1px white;
  border-left: solid 1px white;
  border-bottom: solid 1px white;
  overflow: hidden;
}

#login div {
  padding: 3px;
  clear: left;
  overflow: hidden;
  position: relative;
}

/* Choose Server */

#choose_server {
  overflow: hidden;
}

#choose_server label {
  float: left;
}

#login select {
  margin-right: 8px;
  float: left;
  width: 56%;
  margin-left: 4px;
}

#login label {
  position: absolute;
  top: 11px;
  left: 11px;
  font-weight: lighter;
  font-size: 1.3em;
  color: rgba(0, 0, 0, 0.4);
  margin-top: -1px;
}

#ssl {
  overflow: hidden;
  position: relative;
  clear: none !important;
}

#ssl img {
  position: relative;
  float: left;
  top: 3px;
}

/* Username and Password */

#login input[type="text"],
#login input[type="password"] {
  width: 95%;
  border: solid 1px rgba(0, 0, 0, 0.2);
  border-top: solid 1px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 1px 0 white, inset 0 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 1px 0 white, inset 0 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 0 white, inset 0 1px 1px rgba(0, 0, 0, 0.1);
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  padding: 5px;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus,
#login input[type="text"]:active,
#login input[type="password"]:active {
  border: solid 1px hsl(210, 20%, 50%);
}

#login input[type="submit"] {
  cursor: pointer;
  float: right;
  width: 40%;
  margin-right: 10px;
  display: block;
  background-color: hsl(210, 50%, 60%);
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(hsl(210, 40%, 60%)),
    to(hsl(210, 40%, 70%))
  );

  background: hsl(210, 50%, 60%);
  /* Old browsers */
  background-image: -moz-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* FF3.6+ */
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, hsl(210, 40%, 70%)),
    color-stop(100%, hsl(210, 40%, 60%))
  );
  /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* Chrome10+,Safari5.1+ */
  background-image: -o-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* Opera11.10+ */
  background-image: -ms-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* IE10+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='hsl(210,40%,70%)', endColorstr='hsl(210,40%,60%)', GradientType=0);
  /* IE6-9 */
  background: linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* W3C */

  border-top: solid 1px hsl(210, 40%, 50%);
  border-right: solid 1px hsl(210, 40%, 40%);
  border-left: solid 1px hsl(210, 40%, 40%);
  border-bottom: solid 1px hsl(210, 40%, 35%);
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.3);
  padding: 5px;
  font-size: 1.3em;
  font-weight: bold;
  color: hsl(210, 70%, 10%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#login input[type="submit"] {
  cursor: pointer;
  display: block;
  background-color: hsl(210, 70%, 60%);
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(hsl(210, 40%, 60%)),
    to(hsl(210, 40%, 70%))
  );

  background: red;
  /* Old browsers */
  background-image: -moz-linear-gradient(
    top,
    hsl(210, 70%, 80%) 0%,
    hsl(210, 70%, 70%) 100%
  );
  /* FF3.6+ */
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, hsl(210, 40%, 70%)),
    color-stop(100%, hsl(210, 40%, 60%))
  );
  /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* Chrome10+,Safari5.1+ */
  background-image: -o-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* Opera11.10+ */
  background-image: -ms-linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* IE10+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A6CBEF', endColorstr='#7EB3E8', GradientType=0);
  /* IE6-9 */
  background: linear-gradient(
    top,
    hsl(210, 40%, 70%) 0%,
    hsl(210, 40%, 60%) 100%
  );
  /* W3C */

  border: solid 1px hsl(210, 40%, 60%);

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;

  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);

  padding: 6px;
  font-size: 1.3em;
  font-weight: bold;
  color: hsl(210, 70%, 10%);

  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);

  border-radius: 5px;

  border-radius: 3px;
  float: right;
  margin: 3px;
  margin-bottom: 0px;
}

.error {
  display: block;
  width: 100%;
  text-align: center;
  padding: 5px;
  margin-bottom: 10px;
}

.form_error {
  margin-left: 26%;
  display: inline-block;
}

#login-footer {
  clear: both;
  font-size: 1.1em;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5em;
  color: hsl(210, 10%, 65%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.login-divider {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

.login-link {
  position: relative;
  width: 100%;
  height: auto;
  text-align: right;
  padding: 0;
}

.login-link-text {
  font-size: 1.5em;
}

a[href="/webadmin/forgottenpassword/"] {
  display: none;
}
