﻿/* Base styles */
.profile {
    position: relative;
}

.profile--open {
}

    .profile--open .profile__form {
        visibility: visible;
        height: auto;
        opacity: 1;
        transform: translateY(-6em);
        margin-top: 8em;
        padding-top: 3em;
    }

    .profile--open .profile__fields {
        opacity: 1;
        visibility: visible;
    }

    .profile--open .profile__avatar {
        transform: translate(-50%, -1.5em);
    }

.profile__form {
    position: relative;
    visibility: hidden;
    opacity: 0;
    height: 0;
    padding: 3em;
    border-radius: .25em;
    transition: opacity .4s ease-in-out, height .4s ease-in-out, transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile__fields {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile__avatar img {
    width: 10em;
    margin-bottom: 1em;
}

.profile__avatar {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.25em;
    overflow: hidden;
    width: 15em;
    height: 10em;
    display: block;
    transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    top: -3em;
}

    .profile__avatar:focus {
        outline: 0;
    }

.profile__footer {
    padding-top: 1em;
}


/* Form */
.field {
    position: relative;
    margin-bottom: 2em;
}

.label {
    position: absolute;
    height: 2rem;
    line-height: 2rem;
    bottom: 0;
    color: #999;
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    left: 0px;
}

.input {
    width: 100%;
    border: 0;
    padding: 0;
    background-color: transparent;
    height: 2rem;
    line-height: 2rem;
    border-bottom: 1px solid #eee;
    color: #777;
    transition: all .2s ease-in;
}

    .input:focus {
        outline: 0;
        border-color: #999;
    }

        /* Using required and a faux pattern to see if input has text from http://stackoverflow.com/questions/16952526/detect-if-an-input-has-text-in-it-using-css */
        .input:focus + .label,
        input:valid + .label {
            transform: translateY(-100%);
            font-size: 0.75rem;
            color: #ccc;
        }

/* Button */
.btn {
    border: 0;
    font-size: 0.75rem;
    height: 2.5rem;
    line-height: 2.5rem;
    padding: 0 1.5rem;
    color: white;
    background: #295f7f;
    text-transform: uppercase;
    border-radius: .25rem;
    letter-spacing: .2em;
    transition: background .2s;
}

    .btn:focus {
        outline: 0;
    }

    .btn:hover,
    .btn:focus {
        background: #3185b2;
    }


/* Intro animation */
@keyframes intro {
    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 50%;
    }
}




input[type="checkbox"] {
    vertical-align: middle;
}

label {
    font-size: 12px;
}

.insertUserPwd {
    font-size: 18px;
    margin-bottom: 40px;
    display: block;
}




@media only screen and (max-width : 800px) and (orientation: landscape) {
    .profile--open .profile__form {
        margin-top: 4em;
        position: relative;
    }

    .insertUserPwd {
        font-size: 10px;
        margin-bottom: 20px;
        position: absolute;
        top: 40px;
        left: 0px;
        width: 70px;
        text-align: left;
        overflow: hidden;
    }

    .label {
        font-size: 0.6rem !important;
        font-weight: normal;
    }

    .input:focus + .label, input:valid + .label {
        transform: translateY(-60%);
    }

    input[type="text"], input[type="password"] {
        height: 20px;
        font-size: 12px;
        margin-bottom: 0.5em;
    }

    .profile__form {
        padding-left: 8em;
        padding-right: 3em;
    }

    .field {
        margin-bottom: 0;
        margin-top: 1em;
    }

    #linkbuttonLogin {
        position: absolute;
        top: 170px;
        left: 0;
        zoom: 60%;
    }

    .field.check {
        position: absolute;
        top: 280px;
        left: -7px;
        zoom: 40%;
    }

    .cookieLink {
        text-align: left;
        position: absolute;
        top: 140px;
        left: 0;
        font-size: 8px;
    }
}
