body {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('images/darktext.jpg') no-repeat center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: arial;
}

.login {
    width: 400px;
    margin: 100px auto;
    font-family: arial;
}


/* Reset top and bottom margins from certain elements */

.login-header,
.login p {
    margin-top: 0;
    margin-bottom: 0;
}


/* The triangle form is achieved by a CSS hack */

.login-triangle {
    width: 0;
    margin-right: auto;
    margin-left: auto;
    border: 12px solid transparent;
    border-bottom-color: #341187;
}

.login-header {
    background: #341187;
    padding: 20px;
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.login-container {
    background: #ebebeb;
    padding: 12px;
}


/* Every row inside .login-container is defined with p tags */

.login p {
    padding: 12px;
}

.login input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border-width: 1px;
    border-style: solid;
    padding: 16px;
    outline: 0;
    ;
}

.login input[type="email"],
.login input[type="password"] {
    background: #fff;
    border-color: #bbb;
    color: #555;
}


/* Text fields' focus effect */

.login input[type="email"]:focus,
.login input[type="password"]:focus {
    border-color: #888;
}

.login input[type="submit"] {
    background: #341187;
    border-color: transparent;
    color: #fff;
    cursor: pointer;
}

.login input[type="submit"]:hover {
    background: #341187;
}


/* Buttons' focus effect */

.login input[type="submit"]:focus {
    border-color: #341187;
}

@media screen and (max-width: 398px) {
    .login {
        width: 100%;
        margin: 0;
    }
    .login-container {
        background: transparent;
        padding: 12px;
    }
    .login-header {
        background: Transparent;
    }
}