/* Bg and Button Color; Title Color  */
:root {
    --main-color: #3f51b5;
    --title-color: #EF4B51;
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

body {
    font-family: Roboto,sans-serif;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.icon-style {
    position: absolute;
    right: 0px;
    top: 10px;
}

.v-icon {
    font-size: 24px !important;
}

#login, #register {
    height: 50%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    z-index: 0;
}

.primary {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.primary--title {
    color: var(--title-color);
    margin-top: 0px !important;
    margin-bottom: 10px !important;
}

/* Alert box styling */
.v-alert {
    width: 100%;
}

.v-alert i {
    color: #ffffff !important;
}

.success {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
}

.info {
    background-color: #2196f3 !important;
    border-color: #2196f3 !important;
}

.warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.error {
    background-color: #ff5252 !important;
    border-color: #ff5252 !important;
}

/* form starting stylings ------------------------------- */
form {
    width: 100%;
    margin-top: 15px;
}

.group {
    position: relative;
    margin-bottom: 45px;
}

.group-btn {
    position: relative;
    padding-top: 8px;
}

#login input {
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #757575;
}

input:focus {
    outline: none;
}

label {
    color: #999;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}


input:focus~label,
input:valid~label {
    top: -20px;
    color: var(--main-color);
}

input:focus~i,
input:valid~i {
    color: var(--main-color);
}

/* BOTTOM BARS ================================= */
.bar {
    position: relative;
    display: block;
    width: 100%;
    height: 2px;
}

.bar:before,
.bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: var(--main-color);
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.bar:before {
    left: 50%;
}

.bar:after {
    right: 50%;
}

/* active state */
input:focus~.bar:before,
input:focus~.bar:after {
    width: 50%;
}

/* HIGHLIGHTER ================================== */
.highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* active state */
input:focus~.highlight {
    -webkit-animation: inputHighlighter 0.3s ease;
    -moz-animation: inputHighlighter 0.3s ease;
    animation: inputHighlighter 0.3s ease;
}

/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
    from {
        background: var(--main-color);
    }

    to {
        width: 0;
        background: transparent;
    }
}

@-moz-keyframes inputHighlighter {
    from {
        background: var(--main-color);
    }

    to {
        width: 0;
        background: transparent;
    }
}

@keyframes inputHighlighter {
    from {
        background: var(--main-color);
    }

    to {
        width: 0;
        background: transparent;
    }
}

@media (min-width: 960px) {
    .primary--title {
        font-size: 35px;
    }
}

@media screen and (max-width: 479px) {
    .primary--title {
        font-size: 38px;
    }
}

@media screen and (max-width: 479px) {
    .primary--title {
        font-size: 30px;
    }
}
