body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #121214;
    color: #1f2937;
    overflow-x: hidden;
}

body.auth-page {
    text-align: center;
    background: #f5f7fb;
}

#reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#status {
    color: #a1a1aa;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.login-card p {
    margin: 0 0 24px;
    color: #64748b;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-weight: 600;
    color: #334155;
}

.field input {
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
}

.login-form button,
.install-button {
    padding: 12px 16px;
    border-radius: 999px;
    background: #1976d2;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.install-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.login-message {
    min-height: 20px;
    font-size: 14px;
    font-weight: 600;
}

.login-message.success {
    color: #15803d;
}

.login-message.error {
    color: #dc2626;
}
