@charset "UTF-8";

:root {
    --color-rx:#B629DC;
    --color-gn:#56DBA9;
    --color-cn:#618678;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

html, body {
    background-color:var(--color-rx);
    height: 100vh;
    width: 100vw;
}

main {
    position: relative;
    height: 100vh;
    width: 100vw;
}

section#login {
    position: absolute;
    background-color: white;
    width: 300px;
    height: 515px;
    border-radius: 20px;
    top: 50%;
    left: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: width .3s, height .3s;
    transition-timing-function: ease;
    transform: translate(-50%, -50%);

} 

section#login > div#img {
    display: block;
    border-radius: 20px 20px 0px 0px;
    background: var(--color-rx) url(../images/purple.jpg) no-repeat center ;
    background-size: cover;
    height: 200px;
}

section#login > div#form {
    display: block;
    padding: 10px;

}

section#login > div#form > h1 {
    text-align: center;
    margin-bottom: 10px;
}

section#login > div#form > p {
    font-size: 0.8em;
}

div.campo {
    background-color: var(--color-rx);
    height: 50px;
    border-radius: 5px;
    margin: 5px 0px;
}

div.campo > span {
    color: white;
    font-size: 2em;
    width: 40px;
    padding: 5px;
}

div.campo > input {
    background-color:#a1f4d4;
    height: 90%;
    width: calc(100% - 46.5px);
    border: 0px;
    border-radius: 8px;
    padding: 4px;
    transform: translateY(-6.5px);
}

div.campo > input:focus {
    background-color: white;
    border: none;
}

form label {
    position: absolute;
    left: -9999px;  /*I made this for screen readers (accessibility).*/
}


form > input[type=submit]{
    display: block;
    font-size: 1em;
    width: 100%;
    height: 40px;
    background-color: var(--color-gn);
    color: white;
    border: none;
    border-radius: 5px;
    transition: .3s;
}

form > input[type=submit]:hover{
    background-color: #3a9371;
    border: 3px solid #255b46;
    cursor: pointer;
} 

form > a.btt {
    text-align: center;
    display: block;
    font-size: 1em;
    width: 100%;
    height: 40px;
    padding-top: 5px;
    margin-top: 5px;
    background-color:white;
    border-radius: 5px;
    border: 1px solid var(--color-gn);
    text-decoration: none;
    color: #255b46;
    transition: .3s;
}

form > a.btt:hover{
    background-color: #3a9371;
    color: white;
    border: 3px solid #255b46;
    cursor: pointer;
}
