[contenteditable="true"]:focus {
  outline: none;
}

em[contenteditable="true"] {
  display: block;
  border-bottom: 1px dashed;
  line-height: 30px;
  height: 30px;
  font-size: 14px;
}

.editable {
  height: 20px;
}

textarea {
  max-width: 100%;
  border: 1px solid $medium-grey;
  width: 100%;
  height: 130px;
  overflow: auto;
  box-sizing: border-box;
}

textarea.inline-editing {
  box-sizing: content-box;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="email"] {
  border: none;
}

.input-help {
  label {
    pointer-events: none;
    position: absolute;
    top: 5px;
    font-size: 14px;
    color: #aaa;
    transition: all 250ms ease;
    opacity: 1;

    &.hide {
      opacity: 0;
    }

    &.move {
      top: 35px;
      font-size: 12px;
    }
  }

  input[type="text"] {
    width: 100%;
  }

  textarea {
    height: 30px;
    margin-left: 60px;
    width: 662px;
    border: none;
    border-bottom: 1px solid #888;
    padding: 0;
  }
}

input-password {
  input {
    width: calc(100% - 50px);
    height: 32px;
    margin: 0px;
    box-sizing: border-box;
    display: inline-block;
    float: none;
    border-right: none;
  }
  button {
    width: 50px;
    height: 32px;
    margin: 0px;
    box-sizing: border-box;
    display: inline-block;
    float: none;
    vertical-align: middle;
    border-left: none;
  }
}

.lightbox-window form {
  input,
  label {
    display: block;
    float: left;
  }
}
.panel form {
  width: 415px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  padding: 15px;

  input[type="text"],
  input[type="password"],
  input[type="tel"],
  input[type="email"] {
    width: 200px;
    float: right;
    line-height: 20px;
  }
  a {
    display: block;
    clear: both;
  }
  h1 img {
    display: none;
  }

  input[type="submit"] {
    float: right;
  }
}

// Avoid red borders in firefox
@-moz-document url-prefix() {
  input[type="text"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="email"] {
    box-shadow: none;
  }
}
