a, body, div, form, html, img, input, label, p, span {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: sans-serif, Arial;
}

body, html {
    min-height: 100%;
    overflow-x: hidden;
}

/* Background image */
body {
    background: url("../img/back.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: sans-serif, Arial;
}

/* Dark overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Darkened overlay */
    z-index: -1;
}

a {
    color: #486173;
}

input, label {
    vertical-align: middle;
    white-space: normal;
    background: 0 0;
    line-height: 1;
}

label {
    position: relative;
    display: block;
}

.main {
    min-height: calc(100vh - 90px);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ie-fixMinHeight {
    display: flex;
}

* {
    box-sizing: border-box;
    font-size: 16px;
}

/* Centered form container */
.wrap {
    margin: auto;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85); /* White w/ transparency */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form */
form {
    width: 100%;
    margin-bottom: 20px;
}

input {
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus {
    outline: 0;
}

/* Text fields */
input[type=password], input[type=text] {
    width: 100%;
    color: #333; /* visible text */
    background-color: rgba(255, 255, 255, 0.9);
    height: 50px;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: box-shadow .3s ease-in-out;
}

input[type=password]:focus, input[type=text]:focus {
    box-shadow: 0 0 5px 0 rgba(255, 255, 255, 1);
}

/* Button */
.button-container {
    display: flex;
    justify-content: center;
}

input[type=submit] {
    background: #ebb20c;
    color: #fff;
    border: 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 50px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background .3s ease-in-out;
}

input[type=submit]:hover {
    background: #f1cf82;
}

/* Footer info */
.info {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive */
@media (min-width: 576px) {
    .wrap {
        width: 410px;
    }

    * {
        font-size: 14px !important;
    }
}
.logo {
    max-width: 180px;  /* keep logo smaller */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}
