@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

body {
    background: #c0c0c0;
    font-family: Raleway, sans-serif;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

form {
    margin: 20px;
    padding: 50px 60px;
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 1px 1px 1px #666;
    box-sizing: border-box;
}

form input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin: 15px 0;
    padding: 16px 14px;
    font-size: 18px;
    border-radius: 4px;
    font-family: Raleway, sans-serif;
}

form input[type=text],
form input[type=password] {
    border: 1px solid #c0c0c0;
    transition: .2s;
}

form input[type=text]:hover,
form input[type=password]:hover {
    border-color: #5f74a0;
    outline: none;
    transition: all .2s ease-in-out;
}

form button[type=submit] {
    width: 100%;
    border: none;
    background: #5f74a0;
    color: white;
    font-weight: bold;
    padding: 16px 14px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    margin: 25px 0px;
    box-sizing: border-box;
    font-family: Raleway, sans-serif;
}

form button[type=submit]:hover {
    background: #5f74a0;
}

form h2 {
    margin: 20px 0;
    color: #5f74a0;
    font-size: 32px;
}

form p {
    margin-bottom: 40px;
}

.links {
    display: table;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #c0c0c0;
    margin-bottom: 10px;
}

.links a {
    display: table-cell;
    padding-top: 10px;
}

.links a:first-child {
    text-align: left;
}

.links a:last-child {
    text-align: right;
}

form h2,
form p,
form a {
    text-align: center;
}

form a {
    text-decoration: none;
    font-size: 1em;
}

form a:visited {
    color: inherit;
}

form a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    form {
        padding: 40px 30px;
    }

    form input, form button {
        padding: 14px 12px;
        font-size: 16px;
    }

    form h2 {
        font-size: 28px;
    }

    form p {
        margin-bottom: 30px;
    }
}

/* Error Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
    max-width: 400px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Popup container - can be anything you want */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Popup content */
.popup-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px; /* Max width for larger screens */
    font-size: 15px;
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
