@import "partials/toast";

@extra-large: ~"only screen and (min-width: 1200px)";
@large: ~"only screen and (min-width: 992px) and (max-width:1200px)";
@medium: ~"only screen and (min-width: 768px) and (max-width:991px)";
@small: ~"only screen and (min-width: 577px) and (max-width:767px)";
@mobile-only:~"only screen and (max-width:576px)";

body{
  background-position: top;
  @media @mobile-only{
    background: #eee none !important;
  }
}

.main-container{
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}

i, cite, em, var, address, dfn {
  font-style: italic;
}
strong, b {
  font-weight: bold;
}
button{
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 14px;
  box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  border:none;
  background-color: transparent;
  &.close{
    box-shadow: none !important;
  }
  &.no-shadow{
    box-shadow: none;
  }
}
.accent-button{
  background-color:@communityButtonBackgroundColor;
  color: @communityFontColor;
}
nav{
  background-color:#fff;
}
a {
  &.disabled {
    pointer-events: none;
  }
}
.toast-close-button{
  box-shadow: none;
}
.modal-body{
  word-break: break-word;
}
#main-content{
  min-width: 300px;
  padding:60px 0px;
  width:400px;
  min-height: 100vh;

  @media @small{
    width: 100%;
  }
  @media @mobile-only{
    padding:0px;
    width: 100%;
  }
  .login-page-form-container{
    width:auto;
    background-color: #fff;
    display: flex;
    box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.12), inset 0 -1px 0 0 #dadce0;
    .access-denied-container{
      background-color: #fff;
      color: #000;
      padding:20px;
    }
    .login-page-form{
      width:400px;
      background-color: @communityButtonBackgroundColor;
      padding:30px 30px 20px 30px;
      input[type=text],input[type=password]{
        border-bottom: 1px solid @communityFontColor;
        color:@communityFontColor;
        padding-bottom: 10px;
        position: relative;
        z-index:2
      }
      input:-webkit-autofill,
      input:-webkit-autofill:hover,
      input:-webkit-autofill:focus,
      input:-webkit-autofill:active {
        transition: background-color 5000s ease-in-out 0s;
        -webkit-text-fill-color: @communityFontColor;
        -webkit-background-size: 5px;
      }
      input[type=password]:focus:not([readonly]),input[type=text]:focus:not([readonly]){
        border-bottom: 1px solid @communityFontColor;
        box-shadow: 0 1px 0 0 @communityFontColor;
      }
      [type=checkbox]+label:before{
        border-color:@communityFontColor;
      }
      [type=checkbox]:checked+label:before{
        border-color: transparent @communityFontColor @communityFontColor transparent;
      }
      label{
        color:@communityFontColor !important;
        font-weight: 300;
      }
      .form-check{
        padding-left: 0px;
        margin-bottom: 20px;
      }
      .login-form-button-container{
        margin-bottom: 20px;
        button{
          margin: 0px;
          padding:10px 40px;
          background-color: @communityFontColor !important;
          color: @communityButtonBackgroundColor !important;
        }
        a{
          color: @communityFontColor !important;
          float: right;
          margin-top: 5px;
          font-weight: 300;
        }
      }
      .social-login-container{
        margin:40px 0px;
        text-align: center;
        color: @communityFontColor;
        a{
          color:@communityFontColor !important;
          margin:0px 5px;
          font-size: 20px;
        }
      }
      .login-join-app-container{
        margin-top: 40px;
        button{
          margin: 0px;
          width: 100%;
          padding:10px 50px;
          background-color: @communityFontColor !important;
          color: @communityButtonBackgroundColor !important;
        }
        .app-download-links{
          margin-top: 40px;
          a{
            display: inline-block;
            &:nth-child(2){
              float: right;
            }
            img{
              height: 40px;
            }
          }
        }
      }
      .welcome-message-container{
        margin:40px 0px 0px 0px;
        text-align: center;
        color:@communityFontColor;
        font-weight: 300;
        font-size: 16px;
        cursor: pointer;

        i{
          position: relative;
          top: 1px;
        }
      }
      @media @small{
        width: 100%;
      }
      @media @mobile-only{
        width: 100%;
      }
    }
    @media @mobile-only{
      width: 100%;
      box-shadow: none;
    }
  }
  &.simple-layout{
    width:100%;
    .login-page-logo-container{
      text-align: left;
      @media @small{
        text-align: center;
      }
      @media @mobile-only{
        text-align: center;
      }
    }
    .login-page-form{
      display: inline-block;
    }
    .login-page-info{
      width: calc(100% - 400px);
      vertical-align: top;
      .access-denied-container{
        padding:30px;
      }
      .login-media-container{
        width: 100%;
        video , img{
          width: 100%;
          height: auto;
        }
      }
      .login-info-title-description{
        padding:30px;
        .title{
          font-size: 28px;
          margin-bottom: 20px;
        }
        .description{
          font-size:14px;
        }
      }
    }
  }
  .login-page-logo-container{
    box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.12), inset 0 -1px 0 0 #dadce0;
    height: 100px;
    background-color: #fff;
    padding:20px 30px;
    width: 100%;
    text-align: center;
    img{
      height: 60px;
      max-width: 100%;
      object-fit: contain;
    }
  }
}
.modal-dialog{
  margin-top: 60px;
}
#internal-footer-page-modal{
  .modal-header{
    background-color: @communityButtonBackgroundColor;
    color: @communityFontColor;
    border-radius: 0px;
    button{
      color: @communityFontColor;
      text-shadow: none;
    }
  }
}
#processing-indicator{
  position: fixed;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000;
  opacity: 0.8;
  z-index: 999999;
  display:none;
  img{
    width: 200px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -100px 0 0 -100px;
  }
}
.data-for-footer-overlay{
  display:none;
}
footer{
  box-shadow:0 0 5px 0 rgba(0,0,0,.16), 0 0 10px 0 rgba(0,0,0,.12);
  background-color: #fff;
  padding:30px;
  text-align: center;
  font-size: 14px;
  bottom: 0px;
  width: 100%;
  color: #666;
  .footer-logo-links-container{
    margin-bottom: 10px;
    a{
      color: inherit;
    }
  }
  .footer-text-container{
    font-size: 12px;
    text-align: center !important;
  }
  .footer-powered-by-container{
    color:#6d6d6d;
    padding:10px 0px 0px 0px;
    text-align: right;
    img{
      height:17px;
      position:relative;
      bottom:2px;
    }
    @media @small{
      text-align: center;
      width: 100%;
      padding-top: 10px;
    }
    @media @mobile-only{
      text-align: center;
      width: 100%;
      padding-top: 10px;
    }
  }
}
#login-info-modal{
  .modal-body{
    padding:0px;
    .join-modal-login-info{
      .access-denied-container{
        padding:30px;
      }
      .login-media-container{
        width: 100%;
        video , img{
          width: 100%;
          height: auto;
        }
      }
      .login-info-title-description{
        padding:30px;
        .title{
          font-size: 28px;
          margin-bottom: 20px;
        }
        .description{
          font-size:14px;
        }
      }
    }
    .button-container{
      width: 100%;
      text-align: center;
      margin:20px 0px;
      button{
        margin: 0px;
        padding:10px 50px;
        background-color: @communityButtonBackgroundColor !important;
        color:  @communityFontColor !important;
      }
    }
  }
}
#join-modal,#message-modal,#forgot-password-link-sent-modal,#not-member-modal, #passwordless-login-link-sent-modal{
  .modal-header{
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    background-color:@communityButtonBackgroundColor !important;
    color:@communityFontColor !important;
    i,button{
      color:@communityFontColor !important;
    }
  }
  .button-container{
    width: 100%;
    text-align: center;
    margin:20px 0px 10px 0px;
    button{
      margin: 0px;
      padding:10px 50px;
      background-color: @communityButtonBackgroundColor !important;
      color:  @communityFontColor !important;
    }
  }
}
#forgot-password-modal,#reset-password-modal,#passwordless-login-modal{
  .modal-header{
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    background-color:@communityButtonBackgroundColor !important;
    color:@communityFontColor !important;
    i,button{
      color:@communityFontColor !important;
    }
  }
  .modal-body{
    .forgot-password-description{
      margin-bottom: 30px;
    }f
    .md-form{
      input{
        font-size:12px;
      }
      input[type=text],input[type=password]{
        border-bottom: 1px solid @communityButtonBackgroundColor;
      }
      input[type=password]:focus:not([readonly]),input[type=text]:focus:not([readonly]){
        border-bottom: 1px solid @communityButtonBackgroundColor;
        box-shadow: 0 1px 0 0 @communityButtonBackgroundColor;
      }
      [type=checkbox]+label:before{
        border-color:@communityButtonBackgroundColor;
      }
      [type=checkbox]:checked+label:before{
        border-color: transparent @communityButtonBackgroundColor @communityButtonBackgroundColor transparent;
      }
      label{
        color:@communityButtonBackgroundColor !important;
        font-weight: 300;
      }
      .subtext{
        font-size: 10px;
        margin-top: -10px;
        font-weight: 300;
      }
    }
    .modal-button{
      text-align: center;
      button{
        color:@communityFontColor !important;
        background-color: @communityButtonBackgroundColor !important;
        padding: 10px 50px;
      }
    }
  }
}
#mobile-app-message-container{
  position: fixed;
  width: 100%;
  bottom: 0;
  margin: 0;
  color: #fff;
  text-align: center;
  padding: 0px;
  display: none;
  z-index: 1;
  .mobile-app-message-background{
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .9;
    position: absolute;
    z-index: 0;
  }
  .mobile-app-message-content{
    padding: 0px 50px;
    color: #fff;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    .close{
      top: -25px;
      &:hover{
        color: #fff;
      }
    }
    .mobile-app-message-logo{
      width: 75px;
      height: 75px;
      background-color: #fff;
      -webkit-border-radius: 100px;
      -moz-border-radius: 100px;
      border-radius: 100px;
      padding: 15px;
      margin: 10px auto;
    }
    .mobile-app-message-title{
      font-size: 18px;
      font-weight: 400;
      margin: 10px 0px;
    }
    .mobile-app-message-button-container{
      margin: 20px 0px;
      .mobile-app-message-button{
        background-color:@communityColor !important;
        color:@communityFontColor !important;
        padding: 10px 30px;
        margin-bottom: 5px;
        font-weight: 400;
      }
    }
  }
}
