#mbg-popup-container {
    background-color:#fff;
    border-radius:15px;
    color:#000;
    display:none;
    padding:20px;
    min-width:350px;
    min-height: 100px;
}
#mbg-popup-content {
    width:100%;
    height:100%;
    min-height:100%;
}
    #mbg-popup-content h2 {
        font-size: 1.2em;
        margin-top: 10px;
    }
    #mbg-popup-content div {
        line-height: 150%;
        margin: 5px 0 24px;
        position: relative;
    }
    #mbg-popup-content div:last-child {
        line-height: 150%;
        margin: 5px 0 5px;
    }
    #mbg-popup-content .tab2 div {
        line-height: 150%;
        margin: 0;
        position: relative;
    }
        #mbg-popup-content div label {
            width: 60px;
            display: block;
            height: 22px;
            padding: 2px;
            line-height: 150%;
            float: left;
        }
        #mbg-popup-content div .help-block {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            color: red;
            padding: 0;
            margin: 0;
        }
        #mbg-popup-content div .help-block span:first-child {
            float: left;
            border-radius: 50%;
            border: 1px solid #DB4437;
            width: 12px;
            height: 12px;
            display: block;
            margin: 4px 5px 0 4px;
            font-size: 10px;
            line-height: 12px;
            text-align: center;
            padding: 0;
        }
        #mbg-popup-content div .oauth-connect.multi-lines .help-block span:first-child {
            margin-top: 2px;
            margin-left: 0px;
        }

.b-close{
    cursor:pointer;
    position:absolute;
    right:10px;
    top:5px;
}
#mbg-loading {
    margin: 80px 0 0 200px;
}

/* passport css */
#user-container {
    float: right;
    width: auto;
    padding-top: 0px;
}
#branding #searchform, #branding #searchform div {
    text-align: right;
    position: relative;
    width: auto;
    float: right;
}
#mbg-login, #mbg-register {
    line-height: 100%;
    margin: 10px 5px;
    padding: 10px 5px 5px;
    cursor: pointer;
}
#mbg-logout {
    padding: 0 5px 0 10px;
}
#mbg-logout span {
    cursor: pointer;
}
#mbg-logout .avatar {
    width:20px;height:20px;
    border-radius:10px;vertical-align:middle;
}
#mbg-logout .msg-box {
    display:-moz-inline-box;
    display:inline-block;position:relative;
    width: 20px;height: 20px;
    vertical-align:middle;
    background: url(../images/msg.png) no-repeat center 2px;
}
#mbg-logout .msg-box em {
    background: #eb7350;
    color: #fff;
    position: absolute;
    top: -5px;
    right: -10px;
    height: 13px;
    line-height: 13px;
    font-size: 7px !important;
    min-width: 20px;
    text-align: center;
}

#mbg-logout .msg-box ul {
    position:absolute;
    left:-9999px;
    top:-9999px;
    list-style-type:none;
    border:1px solid #CCCCCC;
    z-index:1;
    width: 100px;
    margin: 0;
    padding: 0;
}
#mbg-logout .msg-box ul li a em {
    position: static;
    right: auto;
    height: 20px;
    line-height: 20px;
    float: right;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
#mbg-logout .msg-box ul li a {
    display: block;
    position: relative;
    height: 20px;
    line-height: 20px;
}
/* shared with before and after */
#mbg-logout .msg-box ul:before, #mbg-logout .msg-box ul:after {
    content: ' ';
    height: 0;
    position: absolute;
    width: 0;
    left: 43px;
    border: 6px solid transparent; /* arrow size */
}
#mbg-logout .msg-box ul:before {
    position: absolute;
    display: inline-block;
    border-left: 6px solid transparent;
    border-bottom: 6px solid #eee;
    border-right: 6px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    top: -12px;
    content: '';
}
#mbg-logout .msg-box ul:after {
     position: absolute;
     display: inline-block;
     border-left: 6px solid transparent;
     border-bottom: 6px solid #eee;
     border-right: 6px solid transparent;
     top: -10px;
     content: '';
 }


#mbg-logout .msg-box ul li {
    text-align: left;
    padding: 5px;
}
#mbg-logout .msg-box ul li a{
    display: block;
}
#mbg-logout .msg-box ul li:hover {
    background: #eee;
}

#mbg-logout .msg-box:hover ul {
    left:-40px;
    top:24px;
    background:#fcfcfc;
    padding:0px;}


/* Set the size and font of the tab widget */
.tabGroup {
    font: 10pt arial, verdana;
}
#mbg-popup-content .tabGroup {
    margin: 10px 0 0 !important;
}

/* Configure the radio buttons to hide off screen */
.tabGroup > input[type="radio"] {
    position: absolute;
    left:-10000px;
    top:-10000px;
}

.tabGroup > label {
    cursor: pointer;
}

/* Configure labels to look like tabs */
.tabGroup > input[type="radio"] + label {
    /* inline-block such that the label can be given dimensions */
    display: inline-block;

    /* A nice curved border around the tab */
    border: 1px solid black;
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;

    /* the bottom border is handled by the tab content div */
    border-bottom: 0;

    /* Padding around tab text */
    padding: 5px 10px;

    /* Set the background color to default gray (non-selected tab) */
    background-color:#ddd;
}

/* Focused tabs need to be highlighted as such */
.tabGroup > input[type="radio"]:focus + label {
    border:1px dashed black;
}

/* Checked tabs must be white with the bottom border removed */
.tabGroup > input[type="radio"]:checked + label {
    background-color:white;
    font-weight: bold;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

/* The tab content must fill the widgets size and have a nice border */
.tabGroup > div {
    display: none;
    border: 1px solid black;
    background-color: white;
    padding: 20px;
    height: 100%;

    box-shadow: 0 0 20px #444;
    -moz-box-shadow: 0 0 20px #444;
    -webkit-box-shadow: 0 0 20px #444;

    border-radius: 0 5px 5px 5px;
    -moz-border-radius: 0 5px 5px 5px;
    -webkit-border-radius: 0 5px 5px 5px;
}

/* This matchs tabs displaying to thier associated radio inputs */
#mbg-popup-content .tab1:checked ~ .tab1,
#mbg-popup-content .tab2:checked ~ .tab2,
#mbg-popup-content .tab3:checked ~ .tab3 {
    display: block;
    margin-bottom: 0;
}

.tab2 {
    min-width: 500px;
    clear: both;
    overflow: hidden;
}
.tab2 #mbg-avatar-preview-box {
    width:180px;height:180px;line-height:180px !important;
    overflow: hidden;text-align: center;border: 1px solid #ddd;
}
.tab2 #mbg-avatar-preview {
    margin: 0;
    border: 1px solid #aaa;
    vertical-align: middle;
}
.tab2 div#mbg-avatar-crop {
    float: right;
    width: 300px;
    height: 300px;
    border: 1px solid #ddd;
    line-height: 300px !important;
    text-align: center;
    font-size: 20px;
    color: #aaa;
}
.tab2 div#mbg-avatar-crop img.crop {
    max-width: 300px;
    max-height: 300px;
}

.tab2 div#mbg-avatar-upload {
    cursor: pointer;
    background-color: yellow;
    padding: 10px;
    display: block;
    line-height: 150%;
    text-align: center;
    font-size: 18px;
    color: #000;
    position: relative;
}

.tab2 div#mbg-avatar-uploading {
    cursor: pointer;
    background-image: url("/images/uploading.gif");
    background-repeat-x: no-repeat;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    width: 0;
}

/* jquery.Jcrop.min.css v0.9.12 (build:20130126) */
.jcrop-holder{direction:ltr;text-align:left;}
.jcrop-vline,.jcrop-hline{background:#FFF url(data:image/gif;base64,R0lGODlhCAAIAJEAAKqqqv///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAAACwAAAAACAAIAAACDZQFCadrzVRMB9FZ5SwAIfkECQoAAAAsAAAAAAgACAAAAg+ELqCYaudeW9ChyOyltQAAIfkECQoAAAAsAAAAAAgACAAAAg8EhGKXm+rQYtC0WGl9oAAAIfkECQoAAAAsAAAAAAgACAAAAg+EhWKQernaYmjCWLF7qAAAIfkECQoAAAAsAAAAAAgACAAAAg2EISmna81UTAfRWeUsACH5BAkKAAAALAAAAAAIAAgAAAIPFA6imGrnXlvQocjspbUAACH5BAkKAAAALAAAAAAIAAgAAAIPlIBgl5vq0GLQtFhpfaIAACH5BAUKAAAALAAAAAAIAAgAAAIPlIFgknq52mJowlixe6gAADs=);font-size:0;position:absolute;}
.jcrop-vline{height:100%;width:1px!important;}
.jcrop-vline.right{right:0;}
.jcrop-hline{height:1px!important;width:100%;}
.jcrop-hline.bottom{bottom:0;}
.jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;height:100%;width:100%;}
.jcrop-handle{background-color:#333;border:1px #EEE solid;font-size:1px;height:7px;width:7px;}
.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px;}
.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%;}
.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%;}
.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0;}
.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0;}
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px;}
.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%;}
.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px;}
.jcrop-dragbar.ord-n{margin-top:-4px;}
.jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px;}
.jcrop-dragbar.ord-e{margin-right:-4px;right:0;}
.jcrop-dragbar.ord-w{margin-left:-4px;}
.jcrop-light .jcrop-vline,.jcrop-light .jcrop-hline{background:#FFF;filter:alpha(opacity=70)!important;opacity:.70!important;}
.jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#FFF;border-radius:3px;}
.jcrop-dark .jcrop-vline,.jcrop-dark .jcrop-hline{background:#000;filter:alpha(opacity=70)!important;opacity:.7!important;}
.jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#FFF;border-color:#000;border-radius:3px;}
.solid-line .jcrop-vline,.solid-line .jcrop-hline{background:#FFF;}
.jcrop-holder img,img.jcrop-preview{max-width:none;}

.mbg-register-captcha {
    position: relative;
}
.mbg-register-captcha span {
    position: absolute;
    top: -80px;
    right: -5px;
    cursor: pointer;
}

.oauth-connect {display: block;height: 35px;}

.oauth-connect a, .oauth-connect span {
    float: left;
    padding: 5px 0 5px 20px;
    margin-right: 10px;
    background-position-y:center;
    background-repeat: no-repeat;
}
.oauth-connect.multi-lines a, .oauth-connect.multi-lines span {
    float: none;
    margin-right: 0;
}
.oauth-connect.multi-lines a.unbind {
    margin-left: 20px;
    padding: 0;
}
.oauth-connect a.mobile, .oauth-connect span.mobile {
    background-image: url(../images/icon-mobile.png);
}
.oauth-connect a.weixin, .oauth-connect span.weixin {
    background-image: url(../images/icon-wx.png);
}
.oauth-connect a.qq, .oauth-connect span.qq {
    background-image: url(../images/icon-qq.png);
}
.oauth-connect a.weibo, .oauth-connect span.weibor {
    background-image: url(../images/icon-weibo.png);
}

.auth-type {
    list-style: none;
    border-bottom: 1px solid #ddd;
    display: block;
    clear: both;
    margin: 5px 0 30px;
    height: 32px;
}

.auth-type li {
    width: 50%;
    float: left;
    padding: 0;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: 500;
    margin-bottom: -1px;
}
.auth-type li.active {
    color: #14B9C8 !important;
    border: none;
}

.auth-type li.active a, .auth-type li.active span {
    border-bottom: 3px solid #fff;
    width: 100%;
    display: block;
}
.auth-type li.active span {
    border-bottom: 3px solid #14B9C8;
}
#mbg-register-login-mobile, #mbg-register-login-mobile-code {
    width: 130px;
}
.auth-submit a {
    float: right;
}