/* Based on the website's 2027 comic palette; scoped to Elastic. */
@font-face {
    font-family: 'CGJ Alumni Sans SC';
    src: url('assets/alumni-sans-sc.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

body.task-login {
    background: #20202a;
}

body.task-login #layout-content {
    background: #20202a;
    color: #fff;
}

body.task-login #logo {
    max-width: min(220px, 70vw);
    max-height: 160px;
    object-fit: contain;
}

body.task-login #login-form {
    border: 2px solid #111;
    background: #fff;
    color: #20202a;
    padding: 1.5rem;
    box-shadow: 7px 7px 0 #fdef1d;
}

body.task-login #login-form button[type=submit] {
    background: #1b4090;
    border-color: #1b4090;
    color: #fff;
    font-weight: 700;
    font-family: 'CGJ Alumni Sans SC', sans-serif;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.2;
}

body.task-login #login-footer { color: #475569; }
body.task-login #login-form :focus-visible { outline: 3px solid #d85445; outline-offset: 2px; }

body.task-login #login-form h1,
body.task-login #login-form legend {
    font-family: 'CGJ Alumni Sans SC', sans-serif;
}

body:not(.task-login) #taskmenu {
    background: #20202a;
    border-right: 2px solid #1b4090;
}

body:not(.task-login) #taskmenu a.selected {
    background: #1b4090;
    color: #fff;
    box-shadow: inset 4px 0 #fdef1d;
}

body:not(.task-login) .toolbar a.button {
    color: #1b4090;
}

body:not(.task-login) h2 {
    font-family: 'CGJ Alumni Sans SC', sans-serif;
}

body:not(.task-login) #taskmenu #logo {
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 480px) {
    body.task-login #login-form { padding: 1rem; }
}
