body {
    background: #e9e9e9;
    color: #666666;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body .ui-message {
    padding: 0.25rem 0.25rem;
    display: inline-block;
    border-radius: 4px;
    margin-left: 0;
}

.page-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.form-content {
    margin: 0 auto;
    width: 300px;
    font-size: 20px;
    padding-bottom: 30px;
}

.logo-panel {
    height: 130px;
    width: 600px;
}

.terms-of-use-dialog {
    background: white;
}

/* Pen Title */
.pen-title {
    margin-top: 5%;
    padding: 20px 0;
    text-align: center;
    letter-spacing: 2px;
}
.pen-title h1 {
    margin: 0 0 20px;
    font-size: 40px;
    font-weight: 300;
}
.pen-title span {
    font-size: 12px;
}
.pen-title span .fa {
    color: var(--primary-color);
}
.pen-title span a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.registration-form-info {
    border: 1px solid var(--gray-500);
    padding: 10px;
    border-radius: 5px;
    background-color: var(--gray-200);
    margin: 10px 0;
    font-size: smaller;
    color: var(--gray-600);
}

.registration-form-info i {
    margin-right: 5px;
    font-size: inherit;
}

.info-label {
    font-size: smaller;
    color: gray;
}

/* Rerun */
.rerun {
    margin: 0 0 30px;
    text-align: center;
}
.rerun a {
    cursor: pointer;
    display: inline-block;
    background: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}
.rerun a:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

/* Scroll To Bottom */
#codepen, #portfolio {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    color: #ffffff;
    text-align: center;
}
#codepen i, #portfolio i {
    line-height: 56px;
}
#codepen:hover, #portfolio:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

/* CodePen */
#portfolio {
    bottom: 96px;
    right: 36px;
    background: var(--primary-color);
    width: 44px;
    height: 44px;
    -webkit-animation: buttonFadeInUp 1s ease;
    animation: buttonFadeInUp 1s ease;
}
#portfolio i {
    line-height: 44px;
}

/* Container */
.login-container {
    position: relative;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    min-height: 750px;
}
.login-container.active .login-card:first-child {
    background: #f2f2f2;
    margin: 0 15px;
}
.login-container.active .login-card:nth-child(2) {
    background: #fafafa;
    margin: 0 10px;
}
.login-container.active .login-card.alt {
    top: 20px;
    right: 0;
    width: 100%;
    min-width: 100%;
    height: auto;
    border-radius: 5px;
    overflow: hidden;
    padding-top: 40px;
}
.login-container.active .login-card.alt .toggle {
    position: absolute;
    top: 40px;
    right: -70px;
    box-shadow: none;
    border-radius: unset;
    -webkit-transform: scale(14);
    transform: scale(15);
    -webkit-transition: -webkit-transform .5s ease;
    transition: -webkit-transform .5s ease;
    transition: transform .5s ease;
    transition: transform .5s ease, -webkit-transform .5s ease;
}
.login-container.active .login-card.alt .toggle:before {
    content: '';
}
.login-container.active .login-card.alt .title,
.login-container.active .login-card.alt .input-container,
.login-container.active .login-card.alt .button-container {
    left: 0;
    opacity: 1;
    visibility: visible;
    height: initial;
    -webkit-transition: .3s ease;
    transition: .3s ease;
}
.login-container.active .login-card.alt .title {
    -webkit-transition-delay: .3s;
    transition-delay: .3s;
}
.login-container.active .login-card.alt .input-container {
    -webkit-transition-delay: .4s;
    transition-delay: .4s;
}
.login-container.active .login-card.alt .input-container:nth-child(2) {
    -webkit-transition-delay: .5s;
    transition-delay: .5s;
}
.login-container.active .login-card.alt .input-container:nth-child(3) {
    -webkit-transition-delay: .6s;
    transition-delay: .6s;
}
.login-container.active .login-card.alt .button-container {
    -webkit-transition-delay: .7s;
    transition-delay: .7s;
}

.login-form-container {
    margin: 0;
    position: absolute;
    top: -5%;
    height: 100%;
    /* login form panel offset so it appears in center of screen*/
    left: -50px;
}

/* Card */
.login-card {
    position: relative;
    background: #ffffff;
    border-radius: 5px;
    padding: 60px 0 40px 0;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -webkit-transition: .3s ease;
    transition: .3s ease;
    /* Title */
    /* Inputs */
    /* Button */
    /* Footer */
    /* Alt Card */
}
.login-card:first-child {
    background: #fafafa;
    height: 10px;
    border-radius: 5px 5px 0 0;
    margin: 0 10px;
    padding: 0;
}
.login-card .title {
    position: relative;
    z-index: 1;
    border-left: 5px solid var(--primary-color);
    margin: 0 0 35px;
    padding: 10px 0 10px 50px;
    color:var(--primary-color);
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
}

.register-input .material-input-helper-text {
    color: white !important;
}

.input-container span {
    width: 100%;
}
.input-container .ui-message {
    width: 100%;
}

.login-card .input-container {
    position: relative;
    margin: 0 60px 20px;
}

.login-card .input-container .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #757575;
    width: 100%;
    height: 1px;
}
.login-card .input-container .bar:before, .login-card .input-container .bar:after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    width: 0;
    height: 2px;
    -webkit-transition: .2s ease;
    transition: .2s ease;
}
.login-card .input-container .bar:before {
    left: 50%;
}
.login-card .input-container .bar:after {
    right: 50%;
}
.login-card .button-container {
    margin: 0 60px;
    text-align: center;
}
.login-card .button-container button {
    width: 100%;
    font-size: x-large;
    height: 60px;
}
.login-card .footer {
    margin: 40px 0 0;
    color: #d3d3d3;
    font-size: 24px;
    font-weight: 300;
    text-align: center;
}
.login-card .footer a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: .3s ease;
    transition: .3s ease;
}
.login-card .footer a:hover {
    color: #bababa;
}
.login-card.alt {
    border: none;
    position: absolute;
    top: 40px;
    right: -70px;
    z-index: 10;
    width: 100px;
    height: 100px;
    background: none;
    border-radius: 100%;
    box-shadow: none;
    padding: 0;
    -webkit-transition: .3s ease;
    transition: .3s ease;
}
.login-card.alt .toggle {
    position: relative;
    background: var(--primary-color);
    width: 100px;
    height: 100px;
    border-radius: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    font-size: 42px;
    line-height: 100px;
    text-align: center;
    cursor: pointer;
}
.login-card.alt .toggle:before {
    content: "\e942";
    font-family: "primeicons";
    display: inline-block;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}
.login-card.alt .title,
.login-card.alt .input-container,
.login-card.alt .button-container {
    left: 100px;
    opacity: 0;
    visibility: hidden;
    height: 0;
}
.login-card.alt .title {
    position: relative;
    border-color: #ffffff;
    color: #ffffff;
}
.login-card.alt .title .close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 60px;
    display: inline;
    color: #ffffff;
    font-size: 58px;
    font-weight: 400;
}

.login-card.alt .input-container .material-input-helper-text {
    color: white !important;
}

.login-card.alt .title .close:before {
    content: '\00d7';
}

.login-card.alt .input-container .bar {
    background: rgba(255, 255, 255, 0.8);
}

.tos-accordion-panel .ui-accordion-header {
    font-weight: bold !important;
}

/* Keyframes */
@-webkit-keyframes buttonFadeInUp {
    0% {
        bottom: 30px;
        opacity: 0;
    }
}
@keyframes buttonFadeInUp {
    0% {
        bottom: 30px;
        opacity: 0;
    }
}

/* Smartphones and large smartphones (up to 767px) */
@media (max-width: 767px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html, body {
        height: 100%;
        width: 100%;
        background: linear-gradient(to bottom, #ffffff, #f3e6ff);
        overflow: hidden;
    }

    .container {
        height: 100%;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        background: white;
    }

    .header {
        background: var(--primary-color);
        height: 0;
        position: relative;
        overflow-x: clip;
    }

    .header-frame {
        height: 150px;
    }

    .cls-2 {
        fill:var(--primary-color);
    }

    .fingerprint-login {
        padding: 10px;
    }

    .fingerprint-login button {
        background: none;
        border: none;
    }

    .form-wrapper {
        flex: 1;
        padding: 30px 12%;
    }

    .form {
        display: none;
    }

    .form.active {
        display: block;
        margin-top: 130px;
    }

    h2 {
        text-align: center;
        margin-bottom: 10px;
        font-size: 26px;
        color: #333;
    }

    p.subtitle {
        text-align: center;
        color: #666;
        margin-bottom: 20px;
    }

    input {
        width: 100%;
        padding: 12px;
        margin: 8px 0;
        border: none;
        border-radius: 8px;
        background: #f0f0f0;
        font-size: 14px;
    }

    .small-link {
        text-align: right;
        font-size: 12px;
        margin-top: 5px;
        color: #666;
        cursor: pointer;
    }

    .social-buttons {
        text-align: center;
    }

    .toggle-link {
        text-align: center;
        font-size: 13px;
        margin-top: 15px;
    }

    .toggle-link span {
        color: var(--primary-color);
        cursor: pointer;
        font-weight: bold;
    }

    .mobile-content {
        height: 100vh;
        display: block;
        overflow-y: scroll;
    }

    .tablet-desktop-content {
        display: none;
    }
}

/* Tablets and larger devices (768px and up) */
@media (min-width: 768px) {
    .mobile-content {
        display: none;
    }

    .tablet-desktop-content {
        display: block;
    }
}