#loginform label {
    display: block;
}

#loginform input {
    width: 100%;
}

.forgetmenot input {
    width: unset !important;
}

.forgetmenot label {
    display: inline-block !important;
}

.f13-login-error, .f13-login-success, .f13-login-warning {
    padding: 5px;
    text-align: center;
    border: 1px solid #222;
}

.f13-login-error {
    background: #ffcccc;
}

.f13-login-success {
    background: #ccffcc;
}

#f13-accounts-popup-container {
    background: rgb(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 99999;
}

#f13-accounts-popup-window, #f13-accounts-popup-head {
    max-width: 98%;
    box-sizing: border-box;
}

.f13-accounts-form  input, .f13-accounts-form  select, .f13-accounts-form  textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: unset;
}

.f13-accounts-form  input[type=checkbox] {
    width: unset;
}

#f13-accounts-popup-window {
    position: fixed;
    top: calc(10vh + 43px);
    left: 10vw;
    right: 10vw;
    bottom: 10vh;
    background: #ffffff;
    border: 2px solid #222;
    padding: 10px;
    margin: auto;
    overflow: auto;
}

#f13-accounts-popup-head {
    position: fixed;
    top: 10vh;
    left: 10vw;
    right: 10vw;
    height: 45px;
    background: #ddd;
    border: 2px solid #222;
    line-height: 41px;
    font-size: 18px;
    padding-left: 10px;
    font-weight: bold;
    margin: auto;
}

#f13-accounts-popup-loading {
    position: fixed;
    top: 10vh;
    left: 10vw;
    right: 10vw;
    bottom: 10vh;
    z-index: 999;
    background: rgb(255, 255, 255, 0.6);
    background-image: url(../image/loading.gif);
    background-repeat: no-repeat;
    background-size: 100px 100px;
    background-position: center;
    margin: auto;
}

#f13-accounts-popup-close {
    position: absolute;
    right: 0;
    display: inline-block;
    text-align: right;
    height: 45px;
    width: 45px;
}

#f13-accounts-popup-close span {
    font-size: 25px;
    padding: 8px;
    position: absolute;
    margin-left: -41px;
    cursor: pointer;
    color: #993300;
    transition: color 0.5s;
}

#f13-accounts-popup-close span:hover {
    color: #cc3300;
}

.f13-accounts-form input, .f13-accounts-form label {
    display: block;
    width: 100%;
}

.f13-accounts-form .forgetmenot input, .f13-accounts-form .forgetmenot label {
    display: inline-block !important;
    width: auto !important;
}

.f13-accounts-error, .f13-accounts-success, .f13-accounts-notice {
    text-align: center;
    padding: 5px;
    border: 1px solid #222;
    background-color: #ffcccc;
    border-radius: 5px;
}

.f13-accounts-success {
    background-color: #ccffcc;
}

.f13-accounts-notice {
    background-color: #f5df8e;
}

.validation {
    border: 1px solid #222;
    border-radius: 5px;
    overflow: hidden;
}

.validation span {
    display: block;
    background-color: #ffcccc;
    padding: 5px;
}

.validation span:before {
    content: "\2717";
    font-weight: bold;
    margin-right: 5px;
}

.validation span.valid {
    background-color: #ccffcc;
}

.validation span.valid:before {
    content: "\2713";
    font-weight: bold;
    margin-right: 5px;
}

.f13-accounts-notice-close {
    border-radius: 0;
    cursor: pointer;
}

.f13-accounts-notice-close:after {
    content: "\2717";
    font-weight: bold;
    border: 1px solid #222;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    text-align: center;
    float: right;
    margin-right: 10px;
    background: #fff;
}

.f13-accounts-notice-close:hover:after {
    background: #eee;
}

#account_password_update_form {
    display: none;
}

.f13-accounts-checkbox input, .f13-accounts-checkbox label {
    display: inline-block;
    width: unset;
    margin-right: 10px;
}

.f13-half-form {
    display: inline-block;
    width: 50%;
    padding: 10px;
    vertical-align: top;
}

.f13-accounts-widget-link {
    padding: 12px;
    position:relative;
    top: 8px;
    line-height: 26px;
    font-family: sans-serif;
    width: calc(50% - 5px);
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
}

.f13-accounts-widget-link:nth-of-type(odd) {
    margin-right: 10px;
}

.f13-accounts-widget-link:hover,
.f13-accounts-widget-link:active,
.f13-accounts-widget-link:visited {
    filter: brightness(85%);
    color: #fff;
}

#account_password_update_form {
    display: none;
    border: 1px solid #ccc;
    margin-bottom: 30px;
    border-radius: 3px;
    padding: 10px 20px 0px 20px;
}

#update_password {
    margin-bottom: 30px;
}

#update_password:checked ~ #account_password_update_form {
    display: block;
}

#account_password_update_form label, #account_password_update_form input {
    width: 100%;
}

.f13-accounts-profile-table {
    width: auto;
}

.f13-accounts-profile-table th {
    border: 0;
    vertical-align: top;
}

.f13-accounts-profile-avatar {
    float: right;
}

@media only screen and (max-width: 1000px) {
    #f13-accounts-popup-window, #f13-accounts-popup-head, #f13-accounts-popup-loading {
        max-width: calc(100vw - 200px);
    }
}

@media only screen and (max-width: 800px) {
    #f13-accounts-popup-window, #f13-accounts-popup-head, #f13-accounts-popup-loading {
        left: 50px;
        right: 50px;
        max-width: 100%;
        width: auto !important;
    }
}

@media only screen and (max-width: 600px) {
    .f13-accounts-profile-table {
        width: 100%;
    }

    .f13-accounts-profile-avatar {
        float: none;
        display: block;
        margin: auto;
    }

    #f13-accounts-popup-window, #f13-accounts-popup-head, #f13-accounts-popup-loading {
        max-width: 100%;
    }

    #f13-accounts-popup-window {
        top: 53px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto !important;
    }

    #f13-accounts-popup-head {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto !important;
    }

    #f13-accounts-popup-loading {
        top: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

}

@media only screen and (max-width: 400px) {
    .f13-accounts-profile-avatar {
        width: 50%;
    }

}
