.registration, .profile-edit, .login-page{
    text-align: center;
}

.custom-form{
    display: inline-block;
}

.custom-form label{
    margin: 0;
}

.registration .control-group,
.profile-edit .control-group,
.login-page .control-group{
    margin-bottom: 5px;
}

.registration .control-label,
.profile-edit .control-label,
.login-page .control-label{
    text-align: left;
    min-width: 300px;
}

.registration .control-label,
.profile-edit .control-label,
.registration .controls,
.profile-edit .controls,
.login-page .control-label,
.login-page .controls{
    display: inline-block;
}

.custom-form input, .custom-form textarea{
    padding: 5px 10px;
    font-size: 18px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#member-registration fieldset:last-of-type legend, #member-profile fieldset:last-of-type legend{
    display: none;
}

#member-registration fieldset:first-of-type,
#member-profile fieldset:first-of-type,
#users-profile-core{
    margin-bottom: 0;
}

.custom-form-btns{
    text-align: right;
}

.custom-form-btns .btn.btn-primary{
    width: 39%;
}

.custom-form-btns .btn{
    width: 15%;
}

.reset .custom-form .btn.btn-primary, .remind .custom-form .btn.btn-primary{
    width: 365px;
}

.reset .custom-form fieldset, .remind .custom-form fieldset{
    margin-bottom: 5px;
}

#member-registration textarea{
    vertical-align: text-top;
}

.login-page .btn.btn-primary, .login-page #remember{
    width: 310px;
}

.login-page .nav-tabs.nav-stacked{
    text-align: left;
    border-bottom: 0;
    margin-top: 10px;
    width: 310px;
    float: right;
}

.login-page .nav-tabs.nav-stacked > li > a{
    padding: 0;
}

.login-page .nav-tabs.nav-stacked > li > a:hover{
    background: none;
    border-color: transparent;
}

@media (max-width: 767px) {
    .registration .control-label, .profile-edit .control-label, .registration .controls, .profile-edit .controls, .login-page .control-label, .login-page .controls{
        display: block;
    }

    .custom-form input, .custom-form textarea, .custom-form-btns .btn.btn-primary, .custom-form-btns .btn{
        width: 100%;
    }

    .registration .control-label, .profile-edit .control-label, .login-page .control-label{
        text-align: center;
        max-width: 100%;
    }

    .custom-form-btns{
        text-align: center;
    }
}