/* Scaffolding */
body, html {
    height: 100%;
}

#background {
    position: relative;
    background: url("/static/userman/img/message_texture.png");
}

/* Помещаем окно точно по центру экрана */
#horizontal_wrapper {
    width: 405px;
    display: table;
    margin: auto;
    height: 100%;
}
*:first-child+html #horizontal_wrapper {position:relative;}/*ie7*/
* html #horizontal_wrapper{position:relative;}/*ie6*/

#vertical_wrapper {
    padding: 20px;
    display: table-cell;
    vertical-align: middle;
}
*:first-child+html #vertical_wrapper{position:absolute;top:50%;}/*ie7*/
* html #vertical_wrapper{position:absolute;top:50%;}/*ie6*/

#message_window {
    background-color: #FFF;
    width: 405px;
    max-width: 405px;
    min-height: 280px;
    padding-bottom: 30px;
    display: inline-block;
}
*:first-child+html #message_window{position:relative;top:-50%;}/*ie7*/
* html #message_window{position:relative;top:-50%;}/*ie6*/
#message_window.long {
    max-height: 380px;
}

#top_pane {
    width: 100%;
    height: 10px;
    background-color:#526163
}

#message_title {
    margin: 26px 33px 24px 33px;
    color: #526163;
    font-weight: bold;
    font-size: 150%;
    padding-left: 1px;
}

/* Стили формы */
input[type="submit"] {
    border: 1px solid;
    background: #40AE77;
    background: linear-gradient(to top, #44AE77, #04B071);
    border-color: #068B64;
    width: 117px;
    height: 40px;
    color: #FFFFFF;
    border-radius: 1px;
    margin-top: 4px;
    font-weight:bold;
}

input[type="submit"]:disabled{
    background: #ECEDE9;
    border-color:#DBDEDA;
    color: #B5BBBB;
}

input[type="submit"].wide {
    width: 347px;
}

input[type="submit"].signup {
    height: 30px;
    width: 337px;
}

input[type="submit"].settings {
    height: 30px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 329px;
    height: 40px;
    margin-top: 4px;
    border: 1px solid #DBDEDA;
    border-radius: 2px;
    padding: 0 3px;
    line-height: normal;
}

input[type="text"]:focus, 
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #7CB9BE;
}

input[type="text"].error,
input[type="password"].error,
input[type="email"].error {
    border-color: #FD2400;
}

input[type="text"].signup,
input[type="password"].signup,
input[type="email"].signup {
    height: 30px;
}

input[type="text"].settings,
input[type="password"].settings,
input[type="email"].settings {
    height: 30px;
}

.inside {
    margin: 4px 33px 4px 33px;
}

.warning {
    color: #FD2400;
}

div.inside.error{
    color: #FD2400;
    font-size: 13px;
}

.underline{
    border-bottom: 1px solid lightgray;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.attention {
    border-color: lightgrey;
    border-style: solid;
    border-width: 1px 0;
    font-size: 120%;
    text-align: center;
    padding: 10px 0;
}

.social-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.btn a, .btn a:hover {
  color: white;
  text-decoration: none ;
}

.social-container .fa {
  padding: 10px;
  font-size: 16px;
  min-width: 30px;
  color: #FFFFFF;
  border-radius: 2px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
}

.social-container a {
    padding: 10px;
    border-radius: 3px;
}

.social-container .fa:hover {
    opacity: 0.7;
}

.social-container .fa-facebook {
  background: #3B5998;
  color: white;
}

.social-container .fa-twitter {
  background: #55ACEE;
  color: white;
}

.social-container .fa-google {
  background: #dd4b39;
  color: white;
}

.social-container .fa-vk {
  background: #007bb5;
  color: white;
}

p.mini {
    font-size: 10px;
    color: gray;
}