*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Center the mainbox */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f7fb;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Card-like rounded rectangle */
.mainbox {
    width: 100%;
    max-width: 420px;          /* controls the card width */
    padding: 24px 28px;
    border-radius: 12px;       /* rounded corners */
    background: #ffffff;
    box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.06),
            0 12px 24px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

/* Optional: nicer inputs and buttons */
.mainbox input[type="text"],
.mainbox input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d9e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.mainbox input[type="text"]:focus,
.mainbox input[type="password"]:focus {
    border-color: #6b8cff;
    box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.15);
}

.mainbox button {
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #3b6cff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.mainbox button#newRegistrationBtn {
    background: #5f6c7b;
}

.mainbox button#cancelRegBtn {
    background: #5f6c7b;
}

.mainbox button:hover {
    filter: brightness(1.03);
}

.mainbox h1 {
    margin: 0 0 8px 0;
    font-size: 20px;
}
.workbox {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    background-color: #ffffff;
    color: #24292f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

div#header {
    padding: 0.5% 0.5% 0.5% 0.5%;
    background-color: #e0e0e0;
    background-image: repeating-linear-gradient(transparent, transparent 2px, white 2px, white 4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
    min-height: 64px;
}
div#header img {
    display: block;
    object-fit: contain;
}
.field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 0.75rem;
}
.options {
    display: flex;
    gap: 1rem;
}
.infotext {
    color: green;
}
.errortext {
    color: red;
}

