.modal-wrapper {
  @include background-image(radial-gradient(50% 50%, circle cover, rgba(0,0,0, 0.3), rgba(0,0,0, 0.7)));
  bottom: 0;
  content: "";
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 5;

  &.visible {
    display: block;
  }

  .login-modal {
    background: rgba(0,0,0, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.9);
    @include border-radius(4px);
    @include box-shadow(0 10px 60px 10px rgba(0,0,0, 0.5));
    color: #fff;
    padding: 10px;
    width: grid-width(7);
    @include vertically-and-horizontally-centered(400px, grid-width(7));
    z-index: 10;

    .inner-wrapper {
      @include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(225,225,225)));
      @include border-radius(4px);
      border: 1px solid rgba(0, 0, 0, 0.9);
      @include box-shadow(inset 0 1px 0 0 rgba(255, 255, 255, 0.7));
      height: 380px;
      overflow: hidden;
      padding: 30px;
      position: relative;

      &::before {
        @include background-image(radial-gradient(50% 50%, circle closest-side, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0) 100%));
        content: "";
        display: block;
        height: 400px;
        left: 0px;
        margin: 0 auto;
        position: absolute;
        bottom: -140px;
        width: 100%;
      }

      header {
        margin-bottom: 30px;
        padding-top: 5px;
        position: relative;
        z-index: 2;

        &::after {
          @extend .faded-hr-divider;
          bottom: 0px;
          content: "";
          display: block;
          position: absolute;
        }

        h3 {
          color: $lighter-base-font-color;
          font: normal 1.4rem/1.8rem $serif;
          padding-bottom: 20px;
          text-align: center;
          text-shadow: 0 1px rgba(255,255,255, 0.4);
          text-transform: uppercase;
          vertical-align: middle;
        }

      }

      form {
        @include clearfix;
        position: relative;
        z-index: 2;

        label {
          display: none;
        }

        label.remember-me {
          background: rgb(230,230,230);
          border: 1px solid rgb(200,200,200);
          @include border-radius(3px);
          @include box-shadow(0 1px 0 0 rgba(255,255,255, 0.6));
          display: block;
          margin-bottom: 60px;
          padding: 8px 10px;
          position: relative;

          &::before {
            @extend .faded-hr-divider;
            bottom: -30px;
            content: "";
            display: block;
            position: absolute;
          }
        }

        input[type="checkbox"] {
          margin-right: 5px;
        }

        input[type="email"],
        input[type="password"] {
          display: block;
          height: 45px;
          margin-bottom: 20px;
          width: 100%;
        }

        input[type="submit"] {
          display: block;
          height: 45px;
          margin: 0 auto;
          width: 70%;
        }
      }

      .login-extra {
        padding: 15px 0px;
        position: relative;


        p {
          color: $lighter-base-font-color;
          font: normal italic 1.2rem/1.6rem $serif;
          text-align: center;

          a {
            color: $lighter-base-font-color;
            font: normal italic 1.2rem/1.6rem $serif;
            text-decoration: underline;
          }

          span + a {
            margin-left: 15px;
          }
        }
      }

      .close-modal {
        //background: rgb(240,240,240);
        //border: 1px solid rgba(180,180,180, 0.7);
        @include border-radius(2px);
        //@include box-shadow(0 1px 0 0 rgba(255,255,255, 0.4), inset 0 0 2px 0 rgba(0,0,0, 0.1));
        cursor: pointer;
        @include inline-block;
        padding: 5px 10px;
        position: absolute;
        right: 5px;
        top: 5px;
        @include transition(all, 0.15s, ease-out);

        .inner {
          p {
            color: $lighter-base-font-color;
            font: normal 1.2rem/1.2rem $sans-serif;
            text-align: center;
            text-shadow: 0 1px rgba(255,255,255, 0.8);
            @include transition(all, 0.15s, ease-out);
          }
        }

        &:hover {
          //background: rgb(235,235,235);
          //@include box-shadow(0 1px 0 0 rgba(255,255,255, 0.4), inset 0 0 2px 0 rgba(0,0,0, 0.125));

          p {
            color: $base-font-color;
          }
        }
      }
    }
  }
}
