/*
 * Sign-in page styles. The sign-in page loads no third-party code, so a problem
 * at a CDN cannot read the password. Colours match the Tailwind grays and blues
 * used on the rest of the site.
 */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #f9fafb;
    color: #111827;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.login-panel { width: 100%; max-width: 28rem; }

.login-brand { display: flex; justify-content: center; align-items: center; }
.login-brand img { width: 2.5rem; height: 2.5rem; margin-right: 0.75rem; }
.login-brand h2 { margin: 0; font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; }

.login-dev-tag {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: #facc15;
    color: #713f12;
    font-size: 0.75rem;
    font-weight: 600;
}

.login-version { margin: 0.5rem 0 0; text-align: center; font-size: 0.75rem; color: #6b7280; }

.login-message { margin-top: 2rem; padding: 0.75rem 1rem; border: 1px solid; border-radius: 0.25rem; }
.login-message-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.login-message-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

.login-form { margin-top: 2rem; }

.login-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-input {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    appearance: none;
}
.login-input::placeholder { color: #6b7280; }
.login-input:focus { z-index: 1; outline: none; border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.login-input-top { border-radius: 0.375rem 0.375rem 0 0; }
.login-input-bottom { margin-top: -1px; border-radius: 0 0 0.375rem 0.375rem; }
.login-input-single { border-radius: 0.375rem; }

.login-help { margin: 0 0 1rem; text-align: center; font-size: 0.875rem; color: #4b5563; }
.login-restart { margin: 1rem 0 0; text-align: center; font-size: 0.875rem; }
.login-restart a { color: #2563eb; }

.login-button {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 0.375rem;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    cursor: pointer;
}
.login-button:hover { background: #1d4ed8; }
.login-button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.login-button svg { position: absolute; left: 0.75rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem; fill: #93c5fd; }
