/*
 * ~~~~~~~~~~~~~~~~~~~~
 * General document styling
 * ~~~~~~~~~~~~~~~~~~~~
 */
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: #0a111b;
    background: -moz-linear-gradient(0deg, #0a111b 0%, #314a72 125%);
    background: -webkit-linear-gradient(0deg, #0a111b 0%, #314a72 125%);
    background: linear-gradient(90deg, #0a111b 0%, #314a72 125%);
    overflow: hidden;
}

body,
input,
select,
textarea {
    font: normal 13px Arial, Sans-Serif;
}

/*
 * ~~~~~~~~~~~~~~~~~~~~
 * Button styling from https://github.com/pandell/web-pli/blob/v9.9.2/packages/components/src/Button.module.css
 * ~~~~~~~~~~~~~~~~~~~~
 */
.button {
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    height: 38px;
    line-height: 38px;
    margin: 0;
    padding: 0 13px;
    text-align: center;
    white-space: nowrap;
    position: relative; /* Create a new stacking context for .button (in combination with z-index below). The desired order is as follows: (1) .button, (2) ::before, (3) ::after, (4) .buttonContent */
    z-index: 0; /* Creates the stacking context */
}

.button:focus {
    outline: black dotted 1px;
}

.buttonContent {
    position: relative;
    user-select: none;
    z-index: 1; /* stack on top of ::after element */
}

.button::before,
.button::after {
    /* Button backgrounds are rendered with before & after pseudo-elements: - before: slightly darker background that fills the button content, - after: lighter, primary background of the button, that is 1px smaller than the button content in every dimension */
    content: "";
    border-radius: 13px;
    position: absolute;
}

.button::before {
    background: #b0b0b0;
    background: linear-gradient(to bottom, #d6d6d6 0, #969696 100%);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.button::after {
    background: #e0e0e0;
    background: linear-gradient(to bottom, #f5f5f5 0, #ccc 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    top: 1px;
    bottom: 1px;
    left: 1px;
    right: 1px;
}

.button:hover::after {
    background: #cdcccc; /* Use slightly darker fill colour when hovering. */
    background: linear-gradient(to bottom, #e6e6e6 0%, #b5b4b4 100%);
}

.button_default::before {
    background: #9fb3d2; /* "default" buttons are blueish. */
    background: linear-gradient(to bottom, #c5d3ea 0%, #7790b9 100%);
}

.button_default::after {
    background: #c3d7f7;
    background: linear-gradient(to bottom, #e7f0fd 0%, #a4c1f2 100%);
}

.button_default:hover::before {
    background: #a8c1ea;
    background: linear-gradient(to bottom, #c5d3ea 0%, #758eb8 100%);
}

.button_default:hover::after {
    background: #a3bde7;
    background: linear-gradient(to bottom, #cadaf1 0%, #8dade1 100%);
}

/*
 * ~~~~~~~~~~~~~~~~~~~~
 * Background particles styling
 * ~~~~~~~~~~~~~~~~~~~~
 */
#particles-noise {
    background-image: url("../img/particles-noise.png?v=1");
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#particles-main {
    background: -moz-linear-gradient(0deg, rgba(8, 8, 8, 0.9) 0%, rgba(0, 29, 255, 0.3) 125%);
    background: -webkit-linear-gradient(0deg, rgba(8, 8, 8, 0.9) 0%, rgba(0, 29, 255, 0.3) 125%);
    background: linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(0, 29, 255, 0.3) 125%);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/*
 * ~~~~~~~~~~~~~~~~~~~~
 * Sign in dialog styling
 * ~~~~~~~~~~~~~~~~~~~~
 */
#signInDialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 600px;
    border: none;
    padding: 0;
    margin: -300px 0 0 -400px;
    background-color: #fff;
    -webkit-box-shadow: 0 8px 15px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 15px 0 rgba(0, 0, 0, 0.5);

    will-change: opacity, transform;
    -webkit-animation: show 0.4s ease-in-out; /* generated with https://autoprefixer.github.io/ */
    animation: show 0.4s ease-in-out;
}

@-webkit-keyframes show {
    from {
        opacity: 0;
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes show {
    from {
        opacity: 0;
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

#signInDialog > label {
    display: block;
    color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    background: #094494 url("../img/signIn-background.jpg?v=1") no-repeat 0 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 500px;
}

#signInDialog > form {
    margin: 10px;
    padding: 161px 15px 15px 15px;
    position: absolute;
    left: 500px;
    top: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #dcdcdc;
    background-color: #f2f2f2;
}

#signInDialog > form > h1 {
    margin: 0 0 20px 0;
    color: #2665bb;
    font-size: 24px;
}

#signInDialog > form > button {
    width: 100%;
    margin: 0 0 15px 0;
}

#signInDialog > form > footer {
    border-top: 1px solid #dcdcdc;
    color: #333;
    font-size: 12px;
    line-height: 19px;
    margin: 0;
    padding: 10px 0 0 0;
}

#signInDialog > form.error > h1 {
    color: #bc3636;
    margin-bottom: 10px;
}

#signInDialog > form.error > footer {
    color: #333333;
}

#signInDialogInfoLeft,
#signInDialogInfoRight {
    position: absolute;
    bottom: -24px;
    padding: 0;
    margin: 0;
    border: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
}

#signInDialogInfoRight {
    right: 0;
}
