@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

* {
    margin: 0;
    padding: 0;

    font-family: "JetBrains Mono", Consolas, monospace;
    box-sizing: border-box;
}

/* Override link defaults */
a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: white;
}

iframe {
    border: none;
}

/* Common styles */
body {
    background: rgb(10, 10, 10);
    color: white;
}

input {
    padding: 10px;
    border: none;
    outline: none;

    background-color: rgb(50, 50, 50);
    color: white;
}

button {
    cursor: pointer;
}

/* HEADER */
header {
    display: flex;
    background-color: rgb(20, 20, 20);
    height: 30px;
    width: 100%;
}

header button {
    height: 30px;
    padding: 0 10px;

    outline: none;
    border: none;
    white-space: nowrap;

    color: white;
    background-color: transparent;
    font-size: 12pt;
    cursor: pointer;
}

header button:active {
    background-color: rgb(50, 50, 50);
}

header input {
    margin-left: auto;
    margin-right: auto;
}

/* LOGIN */

#login-dialog[open] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 15px;

    border: none;
    background-color: rgb(30, 30, 30);
    color: white;

    border-radius: 15px;
}

#login-dialog * {
    border-radius: 5px;
}

#dialog-error {
    display: inline-block;
    color: #d65f4a;
    text-align: center;
}

#dialog-error:empty {
    display: none;
}

.button-group {
    display: flex;
    width: 100%;
    gap: 15px;
}

#login-dialog button {
    flex: 1;
    padding: 10px;

    border: none;
    background-color: rgb(50, 50, 50);
    color: white;
}