@import "utils.css";

* { 
    box-sizing: border-box; 
    font-family: "Graphik Web", "Helvetica Neue", Helvetica, Arial, Tahoma, sans-serif;
    text-rendering: optimizelegibility;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: absolute;
    background: 
        -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.65))), 
        url('../images/background.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    --background-size: cover;
    background-size: cover;
    z-index: 1;
}

#powered {
    position: absolute;
    padding:24px;
    right: 0;
    bottom: 0;
    font-size: 16px;
    color: #FFF;
    z-index: 2;
}

main {
    width: 312px;
    height: auto;
    position: absolute;
    z-index: 2;
}

header, form { width: 100%; }

span {
    color: #FFF;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    height: 42px;   
    margin-top: 16px;
    padding: 4px;
    background: transparent;
    border: 1px solid #FFF;
    border-radius: 2px;
    color: #FFF;
    font-size: 16px;
}

input[type="submit"] {
    width: 100%;
    height: 42px;
    margin-top: 24px;
    padding: 4px;
    background: #FFF;
    border: 1px solid #FFF;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    font-size: 16px;
}

input[type=text]:focus, input[type=password]:focus {
    outline: none; 
    border: 1px solid #FFF;
}

input[type=submit]:focus { outline: none; }
input[type=submit]:hover { opacity: 0.9; }
input[type=submit]:active { opacity: 0.9; }

::-webkit-input-placeholder { color: #FFF; }
::-moz-input-placeholder { color: #FFF; }

.message {
    width: 100%;
    margin-top: 14px;
    color: #FFF;
    word-wrap: break-word;
}

/* Iphone 5/SE */
@media only screen and (max-width: 320px) {

    span { font-size: 24px; }

    main {
        width: 250px;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    #powered { font-size: 14px; }
}

/* Smartphones, iPhone, portrait 480x320 phones */
@media only screen and (min-width: 321px) and (max-width: 481px) {
    
    main {
        width: 285px;  
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    span { font-size: 28px; }
}

/* Portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
@media only screen and (min-width: 481px) and (max-width: 640px) {
    main {
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

/* Portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
@media only screen and (min-width: 641px) and (max-width: 960px) {
    main {
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

/* Tablet, landscape iPad, low resolution laptops and desktops */
@media only screen and (min-width: 961px) and (max-width: 1024px) {
    main {
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

/* Big landscape tablets, laptops and desktops */
@media only screen and (min-width: 1025px) and (max-width: 1280px) {
    main {
        left: 85%;
        top: 50%;
        -webkit-transform: translate(-85%, -50%);
        transform: translate(-85%, -50%);
    }
}

/* High resolution laptops and desktops */
@media only screen and (min-width: 1281px) {
    main {
        left: 85%;
        top: 50%;
        -webkit-transform: translate(-85%, -50%);
        transform: translate(-85%, -50%);
    }
}