/* embedded fonts */

@font-face {
    font-family: "Jost";
    font-weight: normal;
    font-style: normal;
    src: url("fonts/Jost-Regular.ttf") format('truetype');
}

@font-face {
    font-family: "Jost";
    font-weight: bold;
    font-style: normal;
    src: url("fonts/Jost-Bold.ttf") format('truetype');
}

@font-face {
    font-family: "Jost";
    font-weight: normal;
    font-style: italic;
    src: url("fonts/Jost-Italic.ttf") format('truetype');
}

@font-face {
    font-family: "Inter";
    font-weight: normal;
    font-style: normal;
    src: url("fonts/Inter-Regular.ttf") format('truetype');
}

@font-face {
    font-family: "Inter";
    font-weight: bold;
    font-style: normal;
    src: url("fonts/Inter-Bold.ttf") format('truetype');
}

/* general css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

a {
    text-decoration: none;
    color: #ffffff;
}

body {
    font-family: "Inter";
    font-size: 14px;
    line-height: 1.8em;
    color: #ffffff;
    height: 100vh;
    background-color: #080808;
    background-image: url("img/pirsm-login-back.jpg");
    background-size: cover;
    background-position: 50% 50%;
}

.align_center { text-align: center; }

/* login style */

#wrapper {
    width: 100%;
    height: 100%;
    background: radial-gradient(rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

@keyframes login_anim {
    from {
        opacity: 0;
        transform: scale(1.1, 1.1);
    }
    to {
        opacity: 1;
        transform: scale(1, 1);
    }
}

#login_form {
    animation: login_anim 800ms ease-in;
    margin-top: -10px;
    line-height: 2em;
    width: 80%;
    max-width: 450px;
    padding: 40px;
}

#login_form img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

#login_form input {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 3px;
}

#login_form input[type=text], #login_form input[type=password] {
    background-color: rgba(250, 250, 250, 0.8);
    padding: 0px 10px;
}

#login_form input[type=password] {
    letter-spacing: 2px;
    font-size: 15px;
}

#login_form input[type=submit] {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(184, 21, 217, 0.8) 0%, rgba(237, 54, 30, 0.8) 100%);
    box-shadow: 0px 0px 6px rgba(209, 122, 110, 0.3);
    cursor: pointer;
}

#login_form input[type=submit]:hover {
    background: linear-gradient(135deg, rgba(184, 21, 217, 1) 0%, rgba(237, 54, 30, 1) 100%);
    box-shadow: 0px 0px 12px rgba(209, 122, 110, 0.8);
}

#login_form input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

#login_form input[type=checkbox]:before {
    content: "";
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    background-color: rgba(250, 250, 250, 0.8);
    border-radius: 3px;
}

#login_form input[type=checkbox]:checked:after {
    content: "";
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, rgba(184, 21, 217, 0.8) 0%, rgba(237, 54, 30, 0.8) 100%);
    border-radius: 2px;
}

#login_form .input_app_id {
    text-transform: uppercase;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

#login_form label {
    vertical-align: middle;
}

#loading_button {
    display: none;
    width: 100%;
    height: 40px;
    line-height: 40px;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(184, 21, 217, 0.8) 0%, rgba(237, 54, 30, 0.8) 100%);
    box-shadow: 0px 0px 6px rgba(209, 122, 110, 0.3);
    border-radius: 3px;
    transition: 200ms all ease-in;
    cursor: default;
}

#loading_button img {
    display: inline-block;
    height: 38px;
    width: auto;
    vertical-align: middle;
    margin: 0;
    margin-right: 5px;
    margin-top: -3px;
}

.tick {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 40px;
    position: relative;
    width: 100px;
    height: 100px;
    border: 3px #ffffff solid;
    border-radius: 50%;
}

@keyframes tick_before_anim {
    from { width: 0px; }
    to { width: 32px; }
}

.tick:before {
    content: "";
    position: absolute;
    width: 0px;
    height: 3px;
    background-color: #ffffff;
    left: 18px;
    top: 44px;
    transform: rotateZ(45deg);
    transform-origin: 0 0;
    animation: tick_before_anim 400ms 800ms forwards;
}

@keyframes tick_after_anim {
    from { width: 0px; }
    to { width: 50px; }
}

.tick:after {
    content: "";
    position: absolute;
    width: 0px;
    height: 3px;
    background-color: #ffffff;
    right: 56px;
    top: 62px;
    transform: rotate(140deg);
    transform-origin: 100% 100%;
    animation: tick_after_anim 400ms 1200ms forwards;
}

#expand_menu_button {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 4px;
    text-align: center;
}

#expand_menu_button a {
    display: inline-block;
    position: relative;
}

#expand_menu_button a:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 2px;
    left: -22px;
    background-image: url("img/menu-icon.png");
    background-size: cover;
    transition: 200ms transform;
}

.expand_menu_icon a:before {
    transform: rotate(90deg);
}

#expand_menu {
    position: relative;
    overflow: hidden;
    transition: 300ms all ease-in;
}

#expand_menu:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    left: 50%;
    margin-left: -20px;
    border-bottom: 20px rgb(40, 40, 40) solid;
    border-left: 20px transparent solid;
    border-right: 20px transparent solid;
}

#expand_menu .expand_menu_content {
    margin-top: 18px;
    padding: 20px;
    background-color: rgb(40, 40, 40);
    border-radius: 3px;
}

#expand_menu .expand_menu_content p {
    width: 100%;
    line-height: 30px;
    margin-bottom: 6px;
}

#expand_menu .expand_menu_content label { vertical-align: middle; }

@keyframes error_animation {
    0% { transform: translateX(0px); }
    20% { transform: translateX(-20px); }
    40% { transform: translateX(20px); }
    60% { transform: translateX(-20px); }
    80% { transform: translateX(20px); }
    100% { transform: translateX(0px); }
}

.error_anim {
    animation: error_animation 800ms 400ms;
}

#footer {
    width: 100%;
    height: 50px;
    color: #b9b9b9;
    line-height: 50px;
    margin-top: -50px;
    text-align: center;
    z-index: 2;
}