/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,
body {
    font-family: 'Poppins', sans-serif;
    background: #f3f3fd;
}

button {
    cursor: pointer;
}

/* IMPORTANT!!!!!
    CREATED BY MOBIL FIRST METHOD
*/

.page-wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 30px;
}

.w5host-logo{
    position: relative;
    display: block;
    width: 110px;
    height: auto;
    z-index: 1;
    margin: 35px auto 0;
}

@media (min-width: 760px) {
    .page-wrapper{
        min-height: 96vh;
        padding-bottom: 110px;
    }
    .w5host-logo{
        margin: 56px auto 0;
    }
}
@media (min-width: 1024px) {
    .page-wrapper{
        min-height: 100vh;
        padding-bottom: 110px;
    }
    .w5host-logo{
        position: absolute;
        top: 57px;
        left: 38px;
        width: 127px;
        margin: 0;
    }
}
@media (min-width: 1280px) {
    .w5host-logo{
        left: 58px;
    }
}

.login-content {
    position: relative;
    overflow: visible;
    margin-top: 93px;
}

@media (min-width: 568px){
    .login-content{
        margin-top: 129px;
    }
}
@media (min-width: 1024px){
    .login-content{
        margin-top: 0;
    }
}

/* CLOSE btn */

.login-close-btn {
    position: absolute;
    right: 10px;
    background: none;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    top: 10px;
    border: 1px solid #dadaef;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-close-btn .icon {
    display: block;
    background: url("../img/login/close.png") no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
}


@media (min-width: 1024px) {
    .login-close-btn {
        width: 50px;
        height: 50px;
        right: 22px;
        top: 22px;
    }
}

@media (min-width: 1400px) {
    .login-close-btn {
        width: 60px;
        height: 60px;
        right: 50px;
        top: 50px;
    }
}

/* login content */

.login-wrapper {
    padding: 35px 29px 0 29px;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 568px) {
    .login-wrapper {
        max-width: 322px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 700px) {
    .login-wrapper {
        max-width: 422px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .login-wrapper {
        max-width: 389px;
        padding-top: 156px;
    }
}

@media (min-width: 1280px) {
    .login-wrapper {
        padding-top: 121px;
    }
}

@media (min-width: 2000px) {
    .login-wrapper {
        padding-top: 7.813vw;
    }
}

/* LOGIN BOX */

.login__logo {
    position: relative;
    margin: 0 auto 35px auto;
}

.login .type {
    display: block;
    position: relative;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    width: 72%;
    margin: 0 auto;
}

.login .type h1{
    font-size: 21px;
    color: #4538f9;
    margin: 0 0 18px;
}
.login .type .details{
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
}

.login__box {
    background: #fff;
    padding: 45px 25px 19px;
    border-radius: 3px;
    position: relative;
    width: 100%;
    z-index: 10;
    box-shadow: 0 0 120px 20px rgba(0,0,0,0.1);
}

@media (min-width: 370px){
    .login__box{
        padding: 45px 25px 25px;
    }
}

@media (min-width: 700px) {
    .login__logo {
        margin-bottom: 40px;
    }

    .login .type h1{
        font-size: 23px;
        margin: 0 0 24px;
    }

    .login .type .details{
        height: 56px;
        font-size: 16px;
    }

    .login__box {
        padding: 60px 70px 31px;
    }
}

@media (min-width: 1024px) {
    .login__logo {
        margin-bottom: 15px;
    }

    .login__box {
        padding:40px 60px 27px;
    }
    .login .type h1{
        display: block;
    }
}

@media (min-width: 1400px) {
    .login__logo {
        margin-bottom: 51px;
    }

    .login__box {
        padding: 54px 60px 30px;
    }
}

/* - FORM */

.form input {
    background: transparent;
    border: none;
    font-size: 15px;
    /* reszpo */
    font-weight: 700;
    width: 100%;
    height: 38px;
    /* reszpo */
    font-size: 14px;
    letter-spacing: 0.01em;
    font-family: 'Poppins', sans-serif;
    border-bottom: 2px solid #dadaef;
    filter: none;
}

.form label {
    font-weight: 400;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.01em;
    display: block;
    position: absolute;
    left: 1px;
    top: 50%;
    margin-top: -14px;
    transition: all .35s ease-in-out;
    transform-origin: 0 0;
}

.form label.has-focus {
    transform: scale(0.75);
    top: 3px;
}

.form .form-group {
    position: relative;
    margin-bottom: 20px;
}
.form .form-group:first-of-type {
    margin-bottom: 33px;
}

.form .form-group--last {
    margin-bottom: 0;
    padding-top: 15px;
}

.form input:focus {
    outline: none;
}

.form .error-field input{
    border-bottom-color: #fe0058;
}
.form .error-field input::placeholder{
    color: #fe0058;
}
.form .error-field label{
    color: #fe0058;
}

@media (min-width: 1200px) {
    .form input {
        font-size: 16px;
        height: 58px;
    }

    .form .form-group {
        margin-bottom: 23px;
    }

    .form label {
        font-size: 14px;
        margin-top: -5px;
    }

    .form label.has-focus {
        top: 0;
    }

    .form .form-group--last {
        padding-top: 25px;
        margin-bottom: 0;
    }
}

.form-btn {
    border-radius: 5px;
    background: #4538f9;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    width: 100%;
    height: 40px;
    padding: 0 28px;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px 2px rgba(69, 56, 249, 0.4);
    transition: all .55s ease-in-out;
    text-align: right;
    justify-content: space-between;
    align-items: center;
}
.login-button-inner{
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.form-btn .icon + span,
.form-btn .icon {
    display: inline-block;
    position: relative;
    transition: all .55s ease-in-out;
}

.form-btn .icon {
    background: url("../img/login/next-arrow.svg") no-repeat;
    background-size: 100% 100%;
    background-position: center;
    width: 13px;
    height: 13px;
}

.form-btn:hover {
    background: #ef216d;
    box-shadow: 0 0 20px 2px rgba(239, 33, 109, 0.4);
}

.form-btn:hover .icon {
    transform: translate(100%, 0);
}

.form-btn:hover .icon + span {
    transform: translate(-10%, 0);
}

@media (min-width: 700px) {
    .form-btn {
        font-size: 14px;
        height: 52px;
        padding: 0 30px;
    }

    .form-btn .icon {
        width: 15px;
        height: 15px;
    }

    .form-btn:hover .icon {
        transform: translate(200%, 0);
    }

    .form-btn:hover .icon + span {
        transform: translate(-28%, 0);
    }
}

@media (min-width: 1440px){
    .form-btn:hover .icon {
        transform: translate(148%, 0);
    }
    .form-btn:hover .icon + span {
        transform: translate(-18%, 0);
    }
}

/* MESSAGE BOX */

.message {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    letter-spacing: 0.02em;
    border: 1px solid #dadaef;
}

.message a {
    color: #4538f9;
    font-weight: 700;
}

.message p {
    width: 74%;
    color: #191a1a;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
}

.message .icon {
    display: block;
    background: url("../img/login/warning-icon.png") no-repeat;
    background-position: center;
    width: 42px;
    height: 42px;
    position: relative;
}

@media (min-width: 700px) {
    .message {
        display: flex;
        align-items: center;
        padding: 12px;
    }

    .message p{
        width: unset;
    }

    .message .icon {
        margin-bottom: 0;
        margin-right: 8px;
        flex: 1 0 52px;
        left: 0;
    }
}

@media (min-width: 1024px) {
    .message {
        margin: 10px 0;
    }
}

@media (min-width: 1400px) {
    .message {
        margin: 42px 0;
    }
}

/* message versions */
.message--general {
    border: none;
}

.message--system {
    border: 1px solid #dadaef;
}

@media (min-width: 700px) {
    .message--general {
        font-size: 13px;
        padding: 24px;
    }
}

/* FOOTER */

.login-footer {
    color: #babacf;
    position: relative;
    width: 100%;
    text-align: center;
    height: auto;
    padding: 70px 0 20px;
}

.login-footer p {
    font-size: 12px;
    margin-top: 0;
}

.login-footer p:first-child {
    margin-bottom: 20px;
}

.support-container {
    text-align: center;
    margin-top: 20px;
}

.support-container a{
    position:relative;
    color: #b0b1b8;
    font-size: 12px;
    font-weight: 500;
    transition: color .2s ease-in-out;
}
.support-container a:hover{
    color: #4538f9;
}
.support-container a:not(:last-of-type){
    margin-right: 12px;
}

.support-container a:not(:last-of-type):after{
    content:"";
    display: block;
    position: absolute;
    background-color: #4538f9;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    height: 100%;
    width: 2px;
    opacity: 0.3;
}

@media (min-width: 768px){

    .support-container a:not(:last-of-type){
        margin-right: 20px;
    }
    .support-container a:not(:last-of-type):after{
        right: -10px;
    }
}

.login-footer__brand {
    text-transform: uppercase;
}

.login-footer__brand span {
    display: inline-block;
    line-height: 1;
    letter-spacing: 0.1em;
    font-size: 9px;
    font-weight: 700;
    position: relative;
    top: 2px;
    margin-right: 5px;
}
.login-footer__brand .w5labs-link i{
    display: inline-block;
    color: #babacf;
    font-size: 14px;
    margin: 0 auto;
    vertical-align: middle;
    transition: color .2s ease-in-out;
}
.login-footer__brand .w5labs-link i:before{
    vertical-align: middle;
}
.login-footer__brand .w5labs-link i:hover{
    color: #4538f9;
}

@media (min-width: 768px) {
    .login-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        bottom: 0;
        padding: 40px 50px 20px;
    }
    .login-footer__brand{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    .login-footer p:first-child {
        margin-bottom: 0;
    }
    .support-container{
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .login-footer{
        padding: 40px 50px;
    }
    .login-footer__brand span {
        margin-right: 17px;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
    /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
    visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}

.login-loader-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.login-loader-wrapper img {
    height: 30px;
    width: 30px;
}
