﻿#forgotpasswordwrapper {
    margin-top: 15%;
    min-height: 150px;
    display: flow-root;
}

#form {
    vertical-align: top;
    display: inline-block;
    zoom: 1;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 50%;
    float: left;
    text-align: left;
}

/* Html.ReturnAlert box - site.css zeroes paragraph margins, which leaves the text on the border */
#form .ui-state-error > p {
    padding: 0.6em 0;
}

#form > form > ul {
    margin-top: 2em;
    list-style-type: none;
    padding: 0;
    display: block;
    list-style-position: inside;
    text-align: left;
}

#form > form > ul > li {
    display: block;
}

#form > form > ul > li > label {
    min-width: 16px;
    display: inline-block;
    margin-right: 1ex;
    vertical-align: top;
    zoom: 1;
    margin-bottom: 4%;
    /* Level with the text inside the field beside it (its 1px border + 5.5px top padding) */
    position: relative;
    top: 6.5px;
}

#form > form > ul > li > input {
    width: 250px;
    border: 1px solid white;
    border-radius: 1ex;
    -moz-border-radius: 1ex;
    -webkit-border-radius: 1ex;
    padding: 4px 6px;
    background-color: #ece9e1;
    box-shadow: inset 0px 2px 3px rgba(0,0,0,0.2);
    float: right;
}

/* The button row starts where the field does: it floats to the right edge and is 264px wide
   (250px + 6px padding and 1px border each side). */
#form > form > ul > li:has(> .submitbutton) {
    clear: both;
    padding-left: calc(100% - 264px);
    padding-top: 12px;
}

    /* The French button is wider than the field; keep it on one line rather than squeezing it
       into two (nothing sits to the right of this form) */
    #form > form > ul > li:has(> .submitbutton) > .submitbutton {
        white-space: nowrap;
    }

@media screen and (max-width: 950px) {
    /* The label goes above the field (like the other forms at this size), so the field - and
       the button - start at the left edge */
    #form > form > ul > li > label {
        display: block;
        top: 0;
    }

    #form > form > ul > li:has(> .submitbutton) {
        padding-left: 0;
        padding-top: 7px;
    }

        #form > form > ul > li:has(> .submitbutton) > .submitbutton {
            white-space: normal;
        }

    #headernav {
        float: none !important;
        clear: left;
    }

    #headernav > ul > li {
        text-align: left !important;
    }

    #form, form {
        width: 100% !important;
        text-align: left;
        float: left !important;
    }

    form > ul > li, form > ul, p, label, input {
        float: none !important;
        text-align: left;
    }

    input {
        width: 250px !important;
        margin-bottom: 13px !important;
    }

    button {
        float: none !important;
    }

    /* Same small gap above the field as the other forms (the desktop 4% was 13px here) */
    label {
        margin-bottom: 5px !important;
    }
}

@media screen and (max-width: 600px) {
    input {
        width: 90% !important;
    }
}
