@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
}

section {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#000, #0f0, #000);
    animation: animate 5s linear infinite;
}

@keyframes animate {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

section span {
    position: relative;
    display: block;
    width: calc(6.25vw - 2px);
    height: calc(6.25vw - 2px);
    background: #181818;
    z-index: 2;
    transition: 1.5s;
}

section span:hover {
    background: #0f0;
    transition: 0s;
}

section .signin {
    position: absolute;
    min-width: 400px;
    width: max-content;
    max-width: 80vw;
    max-height: 70vh;
    overflow: auto;
    background: #222;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 9);
}

section .signin .content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

section .signin .content .client-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f0;
    font-weight: 600;
    font-size: 18px;
}

section .signin .content .client-data .row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 24px;
}

section .signin .content .client-data .row .button {
    padding: 5px 8px;
    font-size: 16px;
    border-radius: 4px;
    margin-left: 10px;
}

section .signin .content h2 {
    font-size: 2em;
    color: #0f0;
    text-transform: uppercase;
    text-align: center;
}

section .signin .content h3 {
    font-size: 1.2em;
    color: #0f0;
    text-transform: uppercase;
    text-align: center;
}

section .signin .content .form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

section .signin .content .form .inputBox {
    position: relative;
    width: 100%;
}

section .signin .content .form .inputBox input,
section .signin .content .form .inputBox textarea {
    position: relative;
    width: 100%;
    background: #333;
    border: none;
    outline: none;
    padding: 25px 10px 7.5px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    font-size: 1em;
}

section .signin .content .form .inputBox i {
    position: absolute;
    left: 0;
    padding: 15px 10px;
    font-style: normal;
    color: #aaa;
    transition: 0.5s;
    pointer-events: none;
}

.signin .content .form .inputBox input:focus~i,
.signin .content .form .inputBox input:valid~i,
.signin .content .form .inputBox textarea:focus~i,
.signin .content .form .inputBox textarea:valid~i {
    transform: translateY(-7.5px);
    font-size: 0.8em;
    color: #fff;
}

.signin .content .form .links {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.signin .content .links a {
    text-decoration: none;
    color: #0f0;
    font-weight: 600;
    cursor: pointer;
}

.signin .content .form .inputBox input[type="submit"],
.button {
    padding: 10px;
    background: #0f0;
    color: #000;
    font-weight: 600;
    font-size: 1.35em;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.signin .content .buttons {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

input[type="submit"]:active,
.button:active {
    opacity: 0.6;
}

@media (max-width: 900px) {
    section span {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }
}

@media (max-width: 600px) {
    section span {
        width: calc(20vw - 2px);
        height: calc(20vw - 2px);
    }
}

/* Header style */

.header {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 9);
    width: 100vw;
    height: 70px;
    background: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header .home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0 20px;
}

.header .home a {
    color: #0f0;
    font-size: 1.5em;
    font-weight: 600;
    text-decoration: none;
}

.header .sessionTools {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 30px;
}

.header .sessionTools .user {
    color: #0f0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.header .sessionTools .user .username {
    font-size: 1.2em;
    font-weight: 600;
}

.header .sessionTools .user .role {
    font-size: 0.8em;
    font-weight: 500;
    text-decoration: underline;
}

.header .sessionTools .logout {
    padding: 10px;
    background-color: #a00;
    font-size: 1em;
    letter-spacing: 0.05em;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.header .sessionTools a {
    color: #b7b7b7;
    text-decoration: none;
}

/* Table style */

.table {
    width: 100%;
}

.table-header {
    display: flex;
    width: 100%;
    background: #151515;
    min-width: max-content;
    flex-wrap: nowrap;
    padding: calc(24px / 2 * 1.5) 10;
}

.table-row {
    display: flex;
    width: 100%;
    padding: calc(24px / 2 * 1.5) 10;
}

.table-row:nth-of-type(odd) {
    background: #333;
}

.table-data,
.header-cell {
    flex: 1 1 20%;
    text-align: center;
    color: #0f0;
    padding: 10px 6px;
}

.header-cell {
    text-transform: uppercase;
    white-space: nowrap;
}

/* Select style */

.select-style {
    border: 1px solid #0f0;
    width: 160px;
    border-radius: 4px;
    overflow: hidden;
    background: #333;
}

.select-style select {
    padding: 5px 8px;
    width: 130%;
    border: none;
    box-shadow: none;
    background: transparent;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px;
    color: #0f0;
}

.select-style select:focus {
    outline: none;
}