@font-face {
    font-family: "JetBrains Mono NL";
    src: url("/static/fonts/JetBrainsMonoNL-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono NL";
    src: url("/static/fonts/JetBrainsMonoNL-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --page-background: #f8f8f8;
    --panel-background: #fff;
    --text: #111;
    --text-muted: #777;
    --text-subtle: #888;
    --border: #ddd;
    --divider: #e5e5e5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page-background);
    color: var(--text);
    font-family: "JetBrains Mono NL", monospace;
}

.panel {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background: var(--panel-background);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}

.panel-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px 12px;
}

.brand {
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.brand:hover {
    text-decoration: underline;
}

.tag {
    color: var(--text-subtle);
    font-size: 10px;
    text-align: right;
}

h1 {
    margin: 30px 0 8px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.8px;
}

p {
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
}

input {
    display: block;
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 20px;
    background: var(--panel-background);
    color: var(--text);
    border: 1px solid #ccc;
    border-radius: 5px;
    font: inherit;
    font-size: 13px;
    transition: border-color 0.15s;
}

input:focus {
    border-color: var(--text);
    outline: 1px solid var(--text);
    outline-offset: 1px;
}

input::placeholder {
    color: #aaa;
}

.button {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: var(--text);
    color: var(--panel-background);
    border: 1px solid var(--text);
    border-radius: 5px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.button:hover {
    background: #333;
}

.button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.button-secondary {
    background: var(--panel-background);
    color: var(--text);
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--page-background);
    border-color: var(--text);
}

.button:focus-visible,
.brand:focus-visible,
.service-link:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.status {
    margin: 16px 0 0;
    text-align: center;
    color: #444;
    font-size: 12px;
    line-height: 1.7;
}

.status:empty {
    display: none;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.service-link:hover {
    background: var(--page-background);
    border-color: var(--text);
}

.service-link + .service-link {
    margin-top: 10px;
}

.service-info {
    min-width: 0;
}

.service-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.service-description {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.7;
}

.service-arrow {
    flex-shrink: 0;
    font-size: 20px;
}

.logout-form .button {
    width: auto;
    margin: 0;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.panel-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    color: var(--text-subtle);
    text-align: center;
    font-size: 10px;
}

@media (max-width: 480px) {
    .panel {
        padding: 24px;
    }

    .tag {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    input,
    .button,
    .service-link {
        transition: none;
    }
}
