.form_wrapper {
    background: url("/images/shadow_image_large.jpg") no-repeat scroll center bottom transparent;
    padding-bottom: 18px;

    .overlay & {
        background: none;
        padding-bottom: 0;
    }
}

.form_wrapper form, #searchbox form {
    margin: 0;
}

form {
    background-color: $bg1;
    padding: 2em;
    overflow: hidden;  // clearfix
}

form.list_filter {
    background: none;
}

form.list_filter label {
    font-size: $large;
}

form .savebox {
    padding-top: 0.5em;
}

#openid_form {
    width: auto !important; /*do not know why there was a fixed value here [joka] */
}
form div.prototype {
    display: none;
}


form p.info {
    margin-bottom: 0.8em;
    color: $fg1;
}

.input_wrapper {
    width: 100%;
    margin-bottom: 0.8em;
    clear: both;

    &.submit {
        font-size: $small;
        line-height: 2.2;
    }
}

textarea {
    width: 100%;
    min-height: 10em;
}

input[type=checkbox], input[type=radio] {
    vertical-align: text-top;
    margin-top: 1px;
}

.checkbox_inline label {
    display: block;
    padding-left: 1em;
    text-indent: -1em;
}

.checkbox_inline input {
    width: 1em;
    height: 1em;
    padding: 0;
    margin:0;
    position: relative;
    top: -1px;
    *overflow: hidden;
}

form .error-message {
    color: darkred;
}
form .error {
    border-color: darkred;
}

/* searchform */
#searchbox,
.list_filter {
    overflow: hidden;
    padding-top: 1.2em;
}
#searchbox {
    float: right;
}
.list_filter {
    display: block;
}

#subheader.logo #searchbox {
    padding-top: 2em;
}

.list_filter {
    padding: 0.4em 0 1.2em 1.5em;
}

#searchform,
.list_form,
#category_search {
    padding: 0;
    background: none;
    margin-bottom: 0;
}

#searchform,
.list_form {
    float: right;
}

.list_form label {
    display: inline;
}

input[type="text"].search_text {
    padding: 0 0.3em;
    vertical-align: top;
}

#searchform input[type="text"].search_text {
    width: 15em;
}

.list_form input[type="text"].search_text {
    width: 25em;
}

form#category_search .search_text {
    width: 11em;
}

.search_button {
    @include button($button-color);
    margin-left: -0.5em;
    min-width: 0;
    font-weight: normal;
    text-transform: uppercase;
}

input[type="text"].search_text,
.search_button {
    line-height: 1;  // firefox will ignore this
    height: 1.8em;
    @include box-sizing(border-box);
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

form#category_search {
    padding: 0;
}

form#user_welcome {
    margin: 0;
    padding: 0;

    > label {
        margin: 0;
        padding: 0.4em 0;
        text-align: center;
        font-size: $x-large;
        line-height: normal;

        > * {
            vertical-align: top;
            font-size: inherit;
            height: auto;
            line-height: normal;
        }
        > span {
            display: inline-block;
            padding-top: 0.2em;
        }
        > input[type="password"] {
            padding: 0.1em 0.4em;
            margin: 0;
            width: 5em;
        }
        > input[type="submit"] {
            padding: 0.1em 0.4em;
        }
    }
}

.login_form input[type="text"],
.login_form input[type="email"],
.login_form input[type="password"] {
    display: block;
    width: 16em;
}
.login_form input[type="password"] {
    margin-bottom: 0;
}

form.password-reset input[type="submit"] {
  padding: 0.4em 0.8em;
}

form.inline-form {
  background: inherit;
  padding: 0;
  display: inline-block;
}

.login_form.login-alternate input[type="email"],
.login_form.login-alternate input[type="text"] {
  display: inline;
}
.login_form.login-alternate label {
  margin-left: 1.5em;
  margin-top: 0.8em;
}
.login_form.login-alternate label>span {
  vertical-align: text-top;
}
.login_form.login-alternate input[type="password"] {
  display: block; margin-bottom: 0.8em; margin-left: 3em;
}

#tags_form form {
    background: none;
    padding: 0;
}

fieldset.logo {
    @include clearfix();

    .control-group {
        float: left;
    }
    .current {
        float: right;
        text-align: center;
    }
}

.only-no-formdata {
    display: none;
}
.overlay.no-formdata .only-no-formdata {
    display: block;
}
