/* ---- Base reset ---- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans",
                 "Helvetica Neue", Arial, sans-serif;

    background-color: #0f1720;       /* dark blue-grey */
    color: #e5e7eb;                  /* light text */

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Card container ---- */
.card {
    background-color: #18222f;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ---- Headings ---- */
h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    color: #f3f4f6;
}

/* ---- Forms ---- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* ---- Inputs ---- */
input[type="text"] {
    margin-top: 0.4rem;
    padding: 0.6rem 0.75rem;

    background-color: #0f1720;
    color: #e5e7eb;

    border: 1px solid #334155;
    border-radius: 8px;

    font-size: 1rem;
}

input[type="text"]::placeholder {
    color: #64748b;
}

input[type="text"]:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.6);
}

/* ---- Buttons ---- */
button {
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;

    background-color: #2563eb;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 500;

    cursor: pointer;
}

button:hover {
    background-color: #1d4ed8;
}

button:active {
    background-color: #1e40af;
}

/* ---- Preformatted output (team list) ---- */
pre {
    margin-top: 1rem;
    padding: 1rem;

    background-color: #0f1720;
    border-radius: 10px;
    border: 1px solid #334155;

    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.9rem;
    line-height: 1.4;

    overflow-x: auto;
    white-space: pre-wrap;
}

/* ---- Links ---- */
a {
    display: inline-block;
    margin-top: 1.2rem;

    color: #93c5fd;
    text-decoration: none;
    font-size: 0.9rem;
}

a:hover {
    text-decoration: underline;
}

/* ---- Link buttons ---- */
a.btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;

    background-color: #2563eb;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
}

a.btn:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

a.btn:active {
    background-color: #1e40af;
}

/* ---- Danger button ---- */
button.btn-danger,
.btn-danger {
    background-color: #dc2626;
}

button.btn-danger:hover,
.btn-danger:hover {
    background-color: #b91c1c;
}

button.btn-danger:active,
.btn-danger:active {
    background-color: #991b1b;
}

/* ---- Flash messages ---- */
.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.flash-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.flash-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.avatar {
        height: 2.4rem;
        width: 2.4rem;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 0.75rem;
        display: block;
}

.avatar,
.pixelated {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}
