﻿* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@font-face {
  font-family: 'IRANSans-web';
  src: url("../fonts/IRANSansWeb_800.woff") format("woff");
  font-weight: 800;
}

@font-face {
  font-family: 'IRANSans-web';
  src: url("../fonts/IRANSansWeb_600.woff") format("woff");
  font-weight: 600;
}

@font-face {
  font-family: 'IRANSans-web';
  src: url("../fonts/IRANSansWeb_400.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: 'IRANSans-web';
  src: url("../fonts/IRANSansWeb_200.woff") format("woff");
  font-weight: 200;
}

@font-face {
  font-family: 'IRANSans-web';
  src: url("../fonts/IRANSansWeb_100.woff") format("woff");
  font-weight: 100;
}

html, body,
[type='text'], [type='email'], [type='password'],
textarea, .button, button {
    font-family: IRANSans-web, Tahoma, Arial;   
}

html, body {
    height: 100%;
    margin: 0;
    min-width: 290px;
    font-size: 15px;
    direction: rtl;
    display: flex;
    flex-direction: column;
}
body{
    background-color: #2ea8ff;
    background-image: url(/static/template/bg-pattern.jpg);
}
.collapse {
    display: none;
}
.flash-message {
    max-width: 644px;
    margin: 10px auto -13px;
    padding: 10px;
    font-size: 13px;
    color: #fff;
}
@media (max-width: 767px){
    .flash-message {
        max-width: 389px;
    }
}
.fm-danger {
    background-color: #ff5252;
}
.fm-success {
    background-color: #24cd68;
}
.fm-info {
    background-color: #52b7ff;
}
.form-control {
    background-color: #ebeaf0;
    width: 100%;
    height: 40px;
    padding: 0 45px 0 15px;
    text-align: center;
    border: 1px solid #e7e7e7;
    color: #323232;
    direction: ltr;
    font-family: inherit;
}
.form-control.rtl {
    direction: rtl;
}
.form-control:focus {
    outline: none;
    border-color: #86aed2;
}

.login-header {
    text-align: center;
    margin: auto auto 0;
    background-color: #ffffff;
    padding: 10px 0 13px;
    width: 332px;
    box-shadow: 0 2px 20px #003a63;
    border-radius: 10px 10px 0 0;
}
.login-header img {
    height: 124px;
}
.login-panel-wrapper {
    text-align: center;
    margin: 0 auto auto;
    position: relative;
}
.login-panel {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 15px #003a63;
    position: relative;
}
.subtle {
    font-size: 12px;
    color: #858585;
    display: inline-block;
}
.login-body {
    width: 330px;
    background-color: white;
    height: 302px;
    overflow: hidden;
    transition: height 0.5s;
    position: relative;
}
.login-body.expand {
    height: 341px;
}
.login-body.expand2 {
    height: 400px;
}
.form-field {
    position: relative;
    text-align: right;
    margin: 5px 15px;
}
.field-icon {
    position: absolute;
    right: 8px;
    width: 24px;
    bottom: 9px;
    height: 24px;
    color: #aeaeae;
    font-size: 19px;
    text-align: center;
}
.form-field .field-error {
    color: #ff4545;
    font-size: 12px;
    position: absolute;
    bottom: 41px;
    left: 2px;
    transition: 0.2s opacity;
    opacity: 0;
    visibility: hidden;
}
.form-field.has-error .field-error {
    visibility: visible;
    opacity: 1;
}
.form-field.has-error .form-control {
    border-color: #ffb2b2;
    background-color: #fff1f1;
}
.button {
    font-size: 20px;
    border: 0;
    width: 100%;
    height: 40px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}
.button:focus {
    outline: none;
}
.button.solid-blue{
    background-color: #1857b6;
}
.button.solid-green {
    background-color: #18b659;
}
.button.solid-purple {
    background-color: #6f5da5;
}
.button.solid-blue:hover{
    background-color: #1a61cb;
}
.button.solid-green:hover {
    background-color: #1acb64;
}
.button.solid-purple:hover {
    background-color: #7f6eaf;
}
.form-footer {
    padding: 15px;
}
.forgotten-password {
    font-size: 12px;
    color: #989898;
    border-bottom: 1px solid #cccccc;
    margin-top: 10px;
    cursor: pointer;
    display: inline-block;
}
.forgotten-password:hover {
    color: #3c3c3c;
    border-bottom-color: #8a8a8a;
}

/* Mobile */
#mobile_buttons {
    height: 45px;
    margin-bottom: 15px;
}
#mobile_buttons div {
    width: 50%;
    float: right;
    padding: 10px 0;
    color: #adadad;
    cursor: pointer;
    background-color: #f3f3f3;
    font-weight: 600;
}
#mb_login.active {
    color: #fff;
    background-color: #13b55a;
}
#mb_signup.active {
    color: #fff;
    background-color: #1857b6;
}
@media (max-width: 767px){
    .login-header {
        width: 95%;
    }
    .login-panel-wrapper {
        width: 95%;
    }
    .login-panel {
        padding-left: 0;
        display: block;
        margin: 0 auto 15px;
    }
    .login-body {
        width: 100%;
    }
}
#set_password_form p.subtle {
    margin: 0 15px 0;
}
#resend_code {
    margin: 0;
    font-size: 12px;
    color: #51b7fe;
}
#resend_code.clickable:hover {
    cursor: pointer;
    color: #1866d3;
}
/* Spinner */
.busy-overlay {
    position: absolute;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    top: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
    flex-direction: column;
    display: none;
}
.busy-overlay.visible {
    display: flex;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #39b549;
  border-right: 3px solid transparent;
  border-radius: 50%;
  animation: spinner .5s linear infinite;
  margin: auto;
}

@keyframes spinner{
  to {
      -webkit-transform:rotate(1turn);
      transform:rotate(1turn)
  }
}
/* end Spinner */