* { box-sizing: border-box; }

/* *************
*1: Font size: 62.5% computes to 10px if the user has not adjusted the browser's
    default font size. Now we can use rems easily for font-sizes.
*2: Specifies a size adjustment for displaying text content on smartphones.
*3: Improve text-rendering in Webkit browsers and firefox on OSX.
*4: To enable kerning in all browsers with kerning support, you’ll have to use a combination of
    the text-rendering and font-feature-settings CSS properties.
    http://blog.typekit.com/2014/02/05/kerning-on-the-web/
************* */

html {
    margin: 0;
    padding: 0;
    font-size: 62.5%; /* *1 */
    -webkit-font-smoothing: antialiased; /* *2 */
    -moz-osx-font-smoothing: grayscale; /* *3 */
    text-rendering: optimizeLegibility; /* *4 */
    -webkit-font-feature-settings: "kern"; /* *4 */
    font-feature-settings: "kern";
    font-kerning: normal;  /* *4 */
    font-family: Arial, sans-serif;
}

body {
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

/* block */
.login { width: 100%; }

@media screen and (max-width: 599px) {
    body { background-color: #f2f2f2; }

    form { padding: 2rem; }
}

@media screen and (min-width: 600px) {
    html,
    body {
        height: 100%;
    }

    body { background: url("../images/login.png") no-repeat center center; }

    .login {
        position: absolute;
        top: 50%;
        left: 50%;
        max-width: 460px;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        background-color: #f2f2f2;
        box-shadow: 0 10px 30px #777;
    }

    form { padding: 3rem; }
}

#password_field_with_icon {
    position: relative;
}
#password_field_with_icon input {
    padding-right: 3rem;
}
#password_field_with_icon img {
    position: absolute;
    right: 0.7rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

header {
    height: 6rem;
    background: #b1b1b1 url("../images/logo.svg") no-repeat;
    background-repeat: no-repeat;
    background-position: 20px 20px;
    background-size: 200px auto;
}

h1 {
    font-size: 18px;
    color: #004c6c;
    font-weight: normal;
    margin-top: 0;
}

[type="text"],
[type="password"],
[type="number"],
[type="email"],
[type="date"],
textarea,
select {
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
}

[type="text"],
[type="password"],
[type="number"],
[type="email"],
[type="date"],
textarea {
    width: 100%;
    margin-bottom: 1.4rem;
    padding: 0.8rem 0.7rem 0.6rem;
    border: 1px solid #ddd;
    -webkit-border-radius: 0;
    -webkit-appearance: none;
}


/* Override: hide the arrows in number field */
[type="number"]::-webkit-outer-spin-button,
[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Override: for Firefox */
[type="number"] { -moz-appearance: textfield; }

.button {
    background-color: #7d9c9f;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    vertical-align: middle;
    -webkit-transition: background-color, 0.3s;
    transition: background-color, 0.3s;
}

.button:hover {
    color: #fff;
    background-color: #547275;
}

.login-btn { text-align: right; }

.success {
    font-size: 1.4rem;
    color: green;
    margin-bottom: 0.5rem;
}
.alert {
    font-size: 1.4rem;
    color: red;
    margin-bottom: 0.5rem;
}

.time-out { margin-bottom: 1rem; }

.time-out > div {
    display: inline-block;
    height: 3rem;
    padding-right: 2rem;
    vertical-align: top;
}

#spinner_loading {
    display: none; /* initially hidden */
    width: 3.2rem;
    height: 3.2rem;
    vertical-align: middle;
    margin-right: 1rem;
}

#spinner_loading.visible { display: inline; }

.forgot-pw {
    margin: 1rem 0;
    font-size: 1.4rem;
    cursor: pointer;
}

.forgot-pw img {
    float: left;
    margin-top: -3px;
    margin-right: 1rem;
}

#token { max-width: 150px; }

.login-actions a {
    color: #004c6c;
    text-decoration: none;
    margin-right: 2rem;
}

.login-actions a:hover { color: #333; }

div#banner {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

/* Download Without Account page */
@media screen and (min-width: 600px) {
    form#downloaddirectform {
        max-height: 50rem;
        padding-bottom: 0px;
        overflow: auto;
    }
    form#downloaddirectform div#filelist_container {
        max-height: 20rem;
        margin-top: 0.5rem;
        overflow: auto;
    }
}
form#downloaddirectform div#filelist_container {
    margin-bottom: 0.5rem;
}
form#downloaddirectform ul#filelist {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}
form#downloaddirectform ul#filelist li {
    background-color: white;
    border: 1px solid #7d9c9f;
    border-left-width: 3px;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
form#downloaddirectform ul#filelist li.unavailable {
    text-decoration: line-through;
}
form#downloaddirectform div.downloaddirectform_spacer {
    margin-bottom: 3rem;
}
pre {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #94dcec;
    border-left-width: 3px;
    font-size: 1.4rem;
    overflow-x: auto;
    background-color: white;
    border-color: #7d9c9f;
    white-space: pre-wrap;
}
