input.btn {
  height: 30px;
  border-style: solid;
  border-width: 6px;
  .border-image('../images/button-border.png', 6);
  display: inline-block;
  text-align: center;
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  
  &:hover {
    text-decoration: none;
    color: #fff;
    .opacity(90);
  }

  &:focus {
    outline: none;
  }
}

.form {
  
  textarea, input[type="text"], input[type="password"], input[type="datetime"],
  input[type="datetime-local"], input[type="date"], input[type="month"],
  input[type="time"], input[type="week"], input[type="number"],
  input[type="email"], input[type="url"], input[type="search"],
  input[type="tel"], input[type="color"], .uneditable-input {
    display: inline-block;
    padding: 5px;
    font-size: @font-size + 2;
    .border-radius(2px);
    .box-sizing();
    width: 200px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 2px;
    border: 1px solid #ccc;
    
    &.error {
      background-color: #ffe0e0;
      border-color: #f89595;
    }
    
    &:focus {
      outline: 0;
    }
  }
  
  input[type=submit] {
    &.btn {
      line-height: 0;
    }
  }
  
  select {
    border: 1px solid #ccc;
    height: 28px;
    max-width: 100%;

    &.error {
      background-color: #ffe0e0;
      border-color: #f89595;
    }
  }

  [type=file] {
    margin-top: 6px;
  }
  
  textarea {
    width: 100%;
    max-width: 100%;
    height: 130px;

    &.error {
      background-color: #ffe0e0;
      border-color: #f89595;
    }
  }
  
  .error-message {
    color: #f82323;
    font-size: 10px;
    
    label {
      &:after {
        content: ""!important;
      }
    }
  }
  
  .row {
    position: relative;
    padding: 6px 0;
    border-bottom: 1px solid #E2DFDF;
    min-height: 30px;

    &:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    &:first-child {
      padding-top: 0;
    }

    .label {
      width: 130px;
      margin-top: 3px;
      float: left;
      min-height: 25px;
      padding-top: 5px;
      
      label {
        font-weight: bold;
      }
      
      .required {
        color: red;
      }
    }
    
    .field {
      margin-left: 130px;
      
      .input-action {
        position: absolute;
        top: 2px;
        right: 5px;
        font-size: 14px;
      }

      &.checkbox {
        line-height: 25px;
      }
      
      &.block {
        margin-left: 0;
        display: block;
      }
      
      &.readonly {
        padding: 5px 0;
      }
    }
  }
  
  .submit {
    margin-top: 10px;
  }
  
}

.captcha {
  img {
    border: 1px solid #ccc;
  }
  
  input[type=text] {
    width: 202px;
    margin-top: 5px;
  }

  .img {
    position: relative;
    display: inline-block;

    .reload-captcha {
      position: absolute;
      top: 10px;
      right: 10px;
    }
  }
}