/**
 * Forms
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
  max-width:100%;
}
input {
  line-height: normal;
}

button[disabled],
html input[disabled] {
  opacity:.5;
  cursor:not-allowed;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 34px;
  padding: 6px 12px; /* The 6px vertically centers text on FF, ignored by Webkit */
  background-color: #fff;
  box-shadow: none;
  box-sizing: border-box;
  font-size: 1.4rem;
  color: #555;
  line-height: 1.4rem;
  border:solid 1px #ccc;
}
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px;
}
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0;
}
label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}
fieldset {
  border: 1px solid #DDD;
  margin: 0 0 1.5em;
  padding: 1.5em;
}
input[type="checkbox"],
input[type="radio"] {
  display: inline;
}
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal;
}

.form-item,
.form-actions {
  margin-top:1em;
  margin-bottom:1em;
}
.filter-wrapper {
  /* margin-top:-1em; */
}
a.tabledrag-handle .handle {
  width:25px;
  height:25px;
  padding:0;
  margin:-0.3em 1em;
}


/* Fieldset min-width hack*/
/* http://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content */
/* Chrome */
fieldset {
  min-width:0;
}
/* Mozilla */
@-moz-document url-prefix() {
  fieldset {
    display: table-cell;
  }
}
/* The below is for some styled checkboxes but we only want them to appear in certain places, not shibboleth */

form:not("#shib-submit-form") input[type=checkbox] {
  display: none;
}
form:not("#shib-submit-form") input[type=checkbox]+label:before {
  background-image: url(../../img/icon-checkbox.svg);
  background-repeat: no-repeat;
  background-position: 0 0;
  content: ' ';
  cursor: pointer;
  display: inline-block;
  height: 19px;
  margin: -1px .3em 0 0;
  vertical-align: middle;
  width: 23px;
}
form:not("#shib-submit-form") input[type=checkbox]:checked+label:before {
  background-image: url(../../img/icon-checkbox-checked.svg);
}

#shib-idp-cache {
  float: left;
  margin: 6px;
}

#highwire-alerts-article-sign-up-form fieldset{
  border: 0;
  margin: 0;
  padding: 0;
}
#highwire-alerts-article-sign-up-form fieldset .fieldset-legend h2,
#highwire-alerts-article-sign-up-form .form-item-frequency label{
  font-size: 2.5rem;
  font-weight: 500;
  color: #333;
  padding-top: 30px;
}
#highwire-alerts-article-sign-up-form fieldset .form-item-citedby,
#highwire-alerts-article-sign-up-form fieldset .form-item-correction,
#highwire-alerts-article-sign-up-form fieldset .form-item-eletter{
  padding-left: 20px;
  padding-top: 20px;
  margin-bottom: 0;
}
#highwire-alerts-article-sign-up-form .form-item-frequency .form-select,
#highwire-alerts-article-sign-up-form .form-submit{
  margin-left:20px;
  margin-top:20px;
}
#highwire-alerts-article-sign-up-form fieldset .form-item-citedby-label,
#highwire-alerts-article-sign-up-form fieldset .form-item-correction-label,
#highwire-alerts-article-sign-up-form fieldset .form-item-eletter-label{
  margin-top: 0;
  padding-left: 20px;
}

#forward-form{
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

#forward-form label{
  font-weight: 400;
  margin-bottom: 0;
}
#forward-form #edit-page{
  display:none;
}
#forward-form #edit-instructions{
  margin-top: 0;
}

/* Share Email Form */
form#forward-form input[type="text"],
form#forward-form textarea {
  width: 75%;
}
form#forward-form .grippie {
  display: none;
}
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

/*Login forms & buttons*/
.opportunity-challenge-login .drupal-login form [id^="edit-customtext"]{
  font-size: 1.5rem;
  line-height: 110%;
  margin: 0 0px 5px 0;
}
.opportunity-challenge-login .drupal-login .relogin-message{
  font-size: 1.5rem;
}
.opportunity-challenge-login .drupal-login.compact .form-item-name{
  max-width: 100%;
  width: 100%;
  margin-bottom: 10px;
}
.drupal-login.compact .bmjj-reset-password a{
  font-size: 15px;
  font-size: 1.5rem;
}
.drupal-login.compact .bmjj-reset-password a+a{
  display: block;
}
.drupal-login.compact .bmjj-reset-password a:hover{
  text-decoration: underline;
}
.drupal-login.compact input.form-text {
  width: 100%;
}
.opportunity-challenge-login form .form-actions,
.menu-attach-block-wrapper .opportunity-challenge-login form .form-submit{
  margin-bottom: 0;
  margin-top: 10px;
}
/* SF-594563
  Styling changes for "Log in via Institution" Link.
*/
.button.society-login-link,
.society-logins input[type="submit"],
.opportunity-challenge-login .form-submit,
.opportunity-challenge-login .form-submit:focus {
  background-color: #0a58a3;
  border: none;
  color: #fff;
  display: block;
  font-size:1.4rem;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}
.button.society-login-link {
  padding: 10px 17px;
  border-radius: 2px;
  line-height: 20px;
}
.button.society-login-link:hover,
.opportunity-challenge-login .form-submit:hover {
  background-color: #2a6ebb;
  color: #fff;
}
.society-login-link-anchor {
  color:#fff;
}
.society-login-link-anchor:hover {
  color:#fff;
}
/* SF-594563
  End of changes for SF-594563.
*/
.drupal-login .reset-password{
  display:none;
}
