/*******************
SELECTION STYLING
*******************/
::selection {
    color: #fff;
    background: #f676b2; /* Safari */
}

::-moz-selection {
    color: #fff;
    background: #f676b2; /* Firefox */
}

/*******************
BODY STYLING
*******************/
* {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    background: url(../images/bg.png) repeat;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
    text-align: left;
    text-decoration: none;
}

#wrapper {
    /* Center wrapper perfectly */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index:2;
}

.gradient {
    /* Center Positioning */
    width: 600px;
    height: 600px;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -300px;
    margin-top: -300px;
    z-index: 1;
}

.page-notification {
    background-color: #41cac0;
    color: white;
    padding: 10px 20px 10px 10px;
    position: fixed;
    top: 80px;
    right: 20px;
    border-radius: 5px;
    display: none;
    z-index: 9999;
}
@media (max-width: 768px) {
    .page-notification {
        top: 120px;
    }
}
.page-notification .close-btn {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}
/*******************
LOGIN FORM
*******************/

.login-form {
    width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 5;

    background: #f3f3f3;
    border: 1px solid #fff;
    border-radius: 5px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/*******************
HEADER
*******************/

.login-form .header {
    padding: 20px 30px 20px 30px;
}

.login-form .header h1 {
    font-family: 'Bree Serif', serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 34px;
    color: #414848;
    text-shadow: 1px 1px 0 rgba(256, 256, 256, 1.0);
    margin-bottom: 10px;
}

.login-form .header span {
    font-size: 11px;
    line-height: 16px;
    color: #678889;
    text-shadow: 1px 1px 0 rgba(256, 256, 256, 1.0);
}

/*******************
CONTENT
*******************/

.login-form .content {
    padding: 0 30px 25px 30px;
}

/* Input field */
.login-form .content .input {
    /*width: 188px;*/
    padding: 15px 25px;

    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #9d9e9e;
    text-shadow: 1px 1px 0 rgba(256, 256, 256, 1.0);

    background: #fff;
    border: 1px solid #fff;
    border-radius: 5px;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.50);
    -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.50);
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.50);
    margin-bottom: 5px;
}

/* Second input field */
.login-form .content .email, .login-form .content .password, .login-form .content .pass-icon, .login-form .content .fio, .login-form .content .phone_number {
    margin-top: 5px;
}

.login-form .content .input:hover {
    background: #dfe9ec;
    color: #414848;
}

.login-form .content .input:focus {
    background: #dfe9ec;
    color: #414848;

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.user-icon, .pass-icon, .user-email {
    width: 46px;
    height: 47px;
    display: block;
    position: absolute;
    left: 0px;
    padding-right: 2px;
    z-index: 3;

    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
}

.user-icon {
    top: 121px; /* Positioning fix for slide-in, got lazy to think up of simpler method. */
    background: rgba(65, 72, 72, 0.75) url(../images/user-icon.png) no-repeat center;
}

.pass-icon {
    top: 180px;
    background: rgba(65, 72, 72, 0.75) url(../images/pass-icon.png) no-repeat center;
}

.user-email {
    top: 107px; /* Positioning fix for slide-in, got lazy to think up of simpler method. */
    background: rgba(65, 72, 72, 0.75) url(../images/email-icon.png) no-repeat center;
}

/* Animation */
.input, .user-icon, .user-email, .pass-icon, .button, .register {
    transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    outline: none;
}

/*******************
FOOTER
*******************/

.login-form .footer {
    padding: 22px 20px 20px 20px;
    overflow: auto;

    background: #d4dedf;
    border-top: 1px solid #fff;

    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
    -moz-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* Login button */
.login-form .footer .button {
    float: right;
    padding: 11px 10px;
    width: 50%;
    font-family: 'Bree Serif', serif;
    font-weight: 300;
    font-size: 18px;
    color: #fff;
    text-shadow: 0px 1px 0 rgba(0, 0, 0, 0.25);

    background: #56c2e1;
    border: 1px solid #46b3d3;
    border-radius: 5px;
    cursor: pointer;

    box-shadow: inset 0 0 2px rgba(256, 256, 256, 0.75);
    -moz-box-shadow: inset 0 0 2px rgba(256, 256, 256, 0.75);
    -webkit-box-shadow: inset 0 0 2px rgba(256, 256, 256, 0.75);
}

.login-form .footer .button[disabled="disabled"] {
    background: #4d98b5;
    border: 1px solid #4d98b5;
    color: grey;
}

.login-form .footer .button:hover {
    background: #3f9db8;
    border: 1px solid rgba(256, 256, 256, 0.75);

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.backbtn {
    margin-top: 55px;
    margin-left: 110px;
    text-align: center;

    padding: 15px;
    color: #999;
    text-decoration: none;
    border-radius: 5px;
    background: #f3f3f3;
    border: 1px solid #fff;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.backbtn:hover {
    color: #000;
    box-shadow: 0 3px 2px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 3px 2px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 3px 2px rgba(0, 0, 0, 0.5);
}

.login-form .footer .button:focus {
    position: relative;
    bottom: -1px;

    background: #56c2e1;

    box-shadow: inset 0 1px 6px rgba(256, 256, 256, 0.75);
    -moz-box-shadow: inset 0 1px 6px rgba(256, 256, 256, 0.75);
    -webkit-box-shadow: inset 0 1px 6px rgba(256, 256, 256, 0.75);
}

/* Register button */
.login-form .footer .register {
    display: block;
    float: left;

    padding: 5px 5px 5px 0;
    margin-right: 5px;

    background: none;
    border: none;
    cursor: pointer;

    font-family: 'Bree Serif', serif;
    font-weight: 300;
    font-size: 13px;
    color: #414848;
    text-shadow: 0px 1px 0 rgba(256, 256, 256, 0.5);
}

.login-form .footer .register:hover {
    color: #3f9db8;
}

.login-form .footer .register:focus {
    position: relative;
    bottom: -1px;
}

.forgot {
    font-size: 11px;
    padding-top: 6px;
}

.login-form .footer .forgot a {
    font-family: 'Bree Serif', serif;
    font-weight: 300;
    font-size: 12px;
    color: #414848;
    text-shadow: 0px 1px 0 rgba(256, 256, 256, 0.5);
}

.login-form .footer .forgot a:hover {
    color: #3f9db8;
}

#result {
    font-size: 11px;
    padding: 0 10px 10px 30px;

}

.result-error {
    color: red;
}

.result-success {
    color: green;
}

.forgot-pass-form.user-icon {
    top: 145px;
}

.forgot-pass-form.pass-icon {
    top: 170px;
}

.first-init-block > div {
    margin-top: 10px;
}

.content label {
    font-size: 12px;
    line-height: 16px;
    /*color: #678889;*/
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
    padding-left: 2px;

}

.recover-link {
    display: none;
    color: orange;
}


/*******************
Mobile styles
*******************/

@media(max-width: 768px) {
    .user-icon{
        display: none;
    }
    .pass-icon{
        display: none;
    }
    .user-email{
        display: none;
    }
    body {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #wrapper {
        width: calc(100% - 20px);
        max-width: 300px;
        margin: 0 auto !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: #f3f3f3;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        min-height: auto;
        height: auto;
    }

    .login-form {
        width: 100%;
        box-sizing: border-box;
    }
    .content label {
        font-size: 13px;
    }
    .login-form input {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }
    .login-form .content .input:not(:last-child) {
        margin-bottom: 15px;
    }

    .login-form .button {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
        color: white;
        background-color: #007bff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .login-form .button:hover {
        background-color: #0056b3;
    }

    .login-form .register, .login-form .forgot a {
        font-size: 0.9rem;
        color: #007bff;
        text-decoration: none;
        transition: color 0.3s;
    }

    .login-form .register:hover, .login-form .forgot a:hover {
        color: #0056b3;
    }


}
@media (max-width: 300px) {
    #wrapper {
        width: calc(100% - 10px);
        margin: 0 auto !important;
    }
    .login-form .header{
        padding: 20px 15px 20px 15px;
    }
    .login-form .content{
        padding: 0 15px 25px 15px
    }
    .login-form .footer {
        padding: 22px 15px 20px 15px;
    }
    .login-form input, .login-form .button {
        font-size: 0.9rem;
        padding: 8px;
    }

    .login-form .register, .login-form .forgot a {
        font-size: 0.8rem;
    }
}
